Commit 213c6ba2 by 万齐军

feat: 再换一位处理

parent 432a724d
...@@ -67,12 +67,12 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() { ...@@ -67,12 +67,12 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
activity: FragmentActivity, activity: FragmentActivity,
jumpUrl: String, jumpUrl: String,
doctorId: String, doctorId: String,
shouldShow: Boolean? = false shouldShow: Boolean = false
) { ) {
arguments = Bundle().apply { arguments = Bundle().apply {
putString(KEY_JUMP_URL, jumpUrl) putString(KEY_JUMP_URL, jumpUrl)
putString(KEY_DOCTOR_ID, doctorId) putString(KEY_DOCTOR_ID, doctorId)
shouldShow?.let { putBoolean(KEY_SHOULD_SHOW, it) } putBoolean(KEY_SHOULD_SHOW, shouldShow)
} }
show(activity.supportFragmentManager, "confide_bottom_showdialog") show(activity.supportFragmentManager, "confide_bottom_showdialog")
} }
...@@ -145,11 +145,6 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() { ...@@ -145,11 +145,6 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
first_order = itemView.findViewById<TextView>(R.id.first_order) first_order = itemView.findViewById<TextView>(R.id.first_order)
val isLogin = findRouteService(IUserService::class.java)?.isLogin() ?: false val isLogin = findRouteService(IUserService::class.java)?.isLogin() ?: false
first_order.visibility = if (isLogin) View.GONE else View.VISIBLE first_order.visibility = if (isLogin) View.GONE else View.VISIBLE
if (shouldShow == true) {
layoutChange.visibility = View.VISIBLE
} else {
layoutChange.visibility = View.GONE
}
layoutCall.setOnClickListener { layoutCall.setOnClickListener {
callJsFun(wv_content, "listenCallClick()") callJsFun(wv_content, "listenCallClick()")
} }
...@@ -165,6 +160,11 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() { ...@@ -165,6 +160,11 @@ class ConfideBottomSheetDialogFragment : BottomSheetDialogFragment() {
val dialog = super.onCreateDialog(savedInstanceState) as BottomSheetDialog val dialog = super.onCreateDialog(savedInstanceState) as BottomSheetDialog
onShowReady() onShowReady()
dialog.setOnShowListener { dialog.setOnShowListener {
if (shouldShow == true) {
layoutChange.visibility = View.VISIBLE
} else {
layoutChange.visibility = View.GONE
}
val layoutParams = FrameLayout.LayoutParams( val layoutParams = FrameLayout.LayoutParams(
FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT,
FrameLayout.LayoutParams.WRAP_CONTENT FrameLayout.LayoutParams.WRAP_CONTENT
......
...@@ -127,6 +127,8 @@ public class WebUrlParamsUtils { ...@@ -127,6 +127,8 @@ public class WebUrlParamsUtils {
if (userInfo != null) { if (userInfo != null) {
mTree.put("uid", userInfo.getUserId()); mTree.put("uid", userInfo.getUserId());
mTree.put("accessToken", userInfo.getToken()); mTree.put("accessToken", userInfo.getToken());
} else {
mTree.put("uid", "0");
} }
mTree.put("v", RxAppTool.getAppVersionName(BaseApp.Companion.getApp())); mTree.put("v", RxAppTool.getAppVersionName(BaseApp.Companion.getApp()));
mTree.put("isFromApp", "1");//1表示用户版调用接口 mTree.put("isFromApp", "1");//1表示用户版调用接口
......
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