Commit 322f2e2c authored by fengruiyu's avatar fengruiyu

修改搜索页面的登录不是会员状态处理

parent c4ab24f7
......@@ -23,9 +23,8 @@ class SearchAfterItem(viewModel: SearchMapViewModel,val name:String?
* 点击名称回调回调
*/
val onClick = BindingCommand<Any>(BindingAction {
if(viewModel.index.value==1||
!UserManager.INSTANCE.userIsLogin() ||
!UserManager.INSTANCE.getVipFlag()){
if(viewModel.index.value==1&&( !UserManager.INSTANCE.userIsLogin() ||
!UserManager.INSTANCE.getVipFlag())){
viewModel.startActivity(OpenvipActivity::class.java)
return@BindingAction
}
......
......@@ -49,7 +49,7 @@ class UpgradeVipDialog(context: Context)
}
RxUtils.onMultiClick(bt_upgrade){
startActivity(Intent(context,OpenvipActivity::class.java))
// dismiss()
dismiss()
}
}
}
\ No newline at end of file
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