Commit d7458324 authored by 朱璇's avatar 朱璇

登录判断

parent 086462c8
......@@ -144,23 +144,24 @@ class LevelOneListState extends State<LevelOneList>
: "");
},
ask: () {
if (CacheManager.getInstance()
.get(MEMORY_CACHE)
.get(USER_ID) ==
null &&
RouterCenterImpl()
.findMainRouter()
.isWithNative()) {
RouterCenterImpl().findMainRouter().jumpPage(
context, "show_login", null, true);
return;
}
var data2 = _model.data[index];
if (data2.cardType == "doctor") {
if (!data2.doctor.accept_private_msg) {
NativeToast.showNativeToast("该机构未开通私信功能");
return;
}
if (CacheManager.getInstance()
.get(MEMORY_CACHE)
.get(USER_ID) ==
null &&
RouterCenterImpl()
.findMainRouter()
.isWithNative()) {
RouterCenterImpl().findMainRouter().jumpPage(
context, "show_login", null, true);
return;
}
buried_on_click_button(index, "consult",
"doctor", data2.doctor.doctor_id);
RouterCenterImpl().findMainRouter().jumpPage(
......
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