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

Merge branch 'zx/gmFlutter' into 'test'

Zx/gm flutter

See merge request !68
parents f86da3ee d7458324
...@@ -144,12 +144,6 @@ class LevelOneListState extends State<LevelOneList> ...@@ -144,12 +144,6 @@ class LevelOneListState extends State<LevelOneList>
: ""); : "");
}, },
ask: () { ask: () {
var data2 = _model.data[index];
if (data2.cardType == "doctor") {
if (!data2.doctor.accept_private_msg) {
NativeToast.showNativeToast("该机构未开通私信功能");
return;
}
if (CacheManager.getInstance() if (CacheManager.getInstance()
.get(MEMORY_CACHE) .get(MEMORY_CACHE)
.get(USER_ID) == .get(USER_ID) ==
...@@ -161,6 +155,13 @@ class LevelOneListState extends State<LevelOneList> ...@@ -161,6 +155,13 @@ class LevelOneListState extends State<LevelOneList>
context, "show_login", null, true); context, "show_login", null, true);
return; return;
} }
var data2 = _model.data[index];
if (data2.cardType == "doctor") {
if (!data2.doctor.accept_private_msg) {
NativeToast.showNativeToast("该机构未开通私信功能");
return;
}
buried_on_click_button(index, "consult", buried_on_click_button(index, "consult",
"doctor", data2.doctor.doctor_id); "doctor", data2.doctor.doctor_id);
RouterCenterImpl().findMainRouter().jumpPage( RouterCenterImpl().findMainRouter().jumpPage(
......
...@@ -18,8 +18,8 @@ NavigationService navigationService; ...@@ -18,8 +18,8 @@ NavigationService navigationService;
bool inProduction = true; bool inProduction = true;
void main() { void main() {
inProduction = bool.fromEnvironment("dart.vm.product"); // inProduction = bool.fromEnvironment("dart.vm.product");
print("DEBUG?? ${inProduction}"); // print("DEBUG?? ${inProduction}");
navigationService = NavigationService(); navigationService = NavigationService();
WidgetsFlutterBinding.ensureInitialized(); WidgetsFlutterBinding.ensureInitialized();
FlutterError.onError = (FlutterErrorDetails details) async { 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