Commit bd66a82e by 万齐军

feat: 评价跳转url修改

parent b7e127a6
...@@ -21,6 +21,8 @@ import com.ydl.confide.home.ConfideBottomSheetDialogFragment ...@@ -21,6 +21,8 @@ import com.ydl.confide.home.ConfideBottomSheetDialogFragment
import com.ydl.confide.home.bean.ConfideHomeBodyBean import com.ydl.confide.home.bean.ConfideHomeBodyBean
import com.ydl.confide.home.modular.service.ConfideWebServiceImpl import com.ydl.confide.home.modular.service.ConfideWebServiceImpl
import com.ydl.confide.router.PhoneCallIn import com.ydl.confide.router.PhoneCallIn
import com.ydl.webview.H5Params
import com.ydl.webview.NewH5Activity
import com.ydl.ydlcommon.base.config.HttpConfig import com.ydl.ydlcommon.base.config.HttpConfig
import com.ydl.ydlcommon.modular.findRouteService import com.ydl.ydlcommon.modular.findRouteService
import com.ydl.ydlcommon.utils.LogUtil import com.ydl.ydlcommon.utils.LogUtil
...@@ -97,12 +99,14 @@ internal class ItemIntroHolder(binding: ItemExpertIntroBinding) : ...@@ -97,12 +99,14 @@ internal class ItemIntroHolder(binding: ItemExpertIntroBinding) :
if (item.isVideo) "1" else "2", if (item.isVideo) "1" else "2",
"8" "8"
) )
ConfideBottomSheetDialogFragment() val url = HttpConfig.MH5_URL + ConfideRoute.h5ExpertEval(it, item.confideId ?: "")
.showBottomSheetDialog( NewH5Activity.start(itemView.context, H5Params(url, ""))
itemView.context as FragmentActivity, // ConfideBottomSheetDialogFragment()
HttpConfig.MH5_URL + ConfideRoute.h5ExpertEval(it, item.confideId ?: ""), // .showBottomSheetDialog(
it, uid = item.uid // itemView.context as FragmentActivity,
) // HttpConfig.MH5_URL + ConfideRoute.h5ExpertEval(it, item.confideId ?: ""),
// it, uid = item.uid
// )
} }
} }
binding.tvName.setOnClickListener { binding.tvName.setOnClickListener {
...@@ -345,7 +349,7 @@ internal fun VideoViewModel.mapOf(bean: ConfideHomeBodyBean): VideoViewModel { ...@@ -345,7 +349,7 @@ internal fun VideoViewModel.mapOf(bean: ConfideHomeBodyBean): VideoViewModel {
name.set(bean.confidedName) name.set(bean.confidedName)
avatar.set(bean.confidedIcon) avatar.set(bean.confidedIcon)
val num = bean.confideNum?.replace("人", "") ?: "0" val num = bean.confideNum?.replace("人", "") ?: "0"
count.set("倾人次 $num") count.set("倾人次 $num")
intro.set(bean.confideContent) intro.set(bean.confideContent)
title.set(bean.title) title.set(bean.title)
val sb = StringBuilder() val sb = StringBuilder()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment