Commit 5548c62a authored by 朱璇's avatar 朱璇

Merge branch 'zx/gmFlutter' into 'test'

Zx/gm flutter

See merge request !68
parents f86da3ee d7458324
......@@ -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(
......
......@@ -18,8 +18,8 @@ NavigationService navigationService;
bool inProduction = true;
void main() {
inProduction = bool.fromEnvironment("dart.vm.product");
print("DEBUG?? ${inProduction}");
// inProduction = bool.fromEnvironment("dart.vm.product");
// print("DEBUG?? ${inProduction}");
navigationService = NavigationService();
WidgetsFlutterBinding.ensureInitialized();
FlutterError.onError = (FlutterErrorDetails details) async {
......
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