瀏覽代碼

1.消息详情修改。

shihuiyun 2 年之前
父節點
當前提交
57720183b5

+ 7 - 1
app/src/main/java/com/zswc/creativity/activity/ArticleDetailActivity.kt

@@ -5,6 +5,7 @@ import android.graphics.Color
 import android.os.Build
 import android.os.Bundle
 import android.text.Html
+import android.text.method.LinkMovementMethod
 import android.view.View
 import android.view.View.OnLongClickListener
 import android.webkit.WebSettings
@@ -43,7 +44,12 @@ class ArticleDetailActivity: MBActivity<ArticleDetailVModel, ActivityArticleDeta
             val item: MsgList = Gson().fromJson(data, MsgList::class.java)
             vm.msgGetInfo.value=item
             vm.isShow.value=true
-            binding.tvContent.text=Html.fromHtml(item.content)
+            binding.tvContent.visibility=View.GONE
+           // binding.tvContent.text=Html.fromHtml(item.content)
+            //激活超链接,设置为可点击模式
+           // binding.tvContent.movementMethod = LinkMovementMethod.getInstance();
+
+            inData(item.content)
 
             titleBar()!!.setTitle("消息详情")
 

+ 1 - 0
app/src/main/java/com/zswc/creativity/fragment/HomeMyFragment.kt

@@ -181,6 +181,7 @@ class HomeMyFragment : MBFragment<HomeMyVModel, FragmentHomeMyToBinding>() {
     override fun onRefresh() {
         super.onRefresh()
         vm.getUserInfo()
+        vm.getIntegel()
         vm.getMyCollection()
     }
 

+ 2 - 2
app/src/main/java/com/zswc/creativity/utils/PopuExtenSionUtils.kt

@@ -47,9 +47,9 @@ object  PopuExtenSionUtils {
         var code=User.get()?.inviteCode
 
         //http://120.79.86.50:8082?invite=100
-        var url= BApp.instance()!!.config()!!.searchUrl()+"h5/pages/mine/zhuce?invite=$code"
+         var url= BApp.instance()!!.config()!!.searchUrl()+"h5/pages/mine/zhuce?invite=$code"
 
-        //var url= BApp.instance()!!.config()!!.searchUrl()+"h5/pages/mine/zhuce?invite_code=$code"
+       // var url="http://120.79.86.50:8082/?invite=$code"
         //生成二维码
         var  mBitmap   = CodeUtils.createImage(url, 400, 400, null)
         imgCode.setImageBitmap(mBitmap)

+ 4 - 4
app/src/main/java/com/zswc/creativity/vmodel/HomeMyVModel.kt

@@ -242,10 +242,6 @@ open class HomeMyVModel(application: Application) : BViewModel<BRepository>(appl
                     walletAddress.value=it.result?.walletAddress
 
                 }
-
-                view().refreshing(false)
-            }else{
-                view().refreshing(false)
             }
         }
     }
@@ -297,6 +293,10 @@ open class HomeMyVModel(application: Application) : BViewModel<BRepository>(appl
                     }
                     num.value= "($number)"
                 }
+
+                view().refreshing(false)
+            }else{
+                view().refreshing(false)
             }
 
         }

+ 0 - 1
app/src/main/res/layout/activity_article_detail.xml

@@ -22,7 +22,6 @@
             android:orientation="vertical"
             android:layout_marginTop="28dp"
             android:visibility="@{vm.isShow?View.VISIBLE:View.GONE}"
-            android:layout_marginBottom="14dp"
             android:layout_height="wrap_content">
 
             <TextView

二進制
app/src/main/res/mipmap-hdpi/ic_launcher.png


二進制
app/src/main/res/mipmap-mdpi/ic_launcher.png


二進制
app/src/main/res/mipmap-xhdpi/ic_launcher.png


二進制
app/src/main/res/mipmap-xxhdpi/ic_launcher.png


二進制
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png