补齐登录成功后跳转tab页面
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<application
|
||||
android:label="捷兑通-商家端"
|
||||
android:name="${applicationName}"
|
||||
|
||||
@@ -36,7 +36,8 @@ class LoginLogic extends GetxController {
|
||||
await Request.post<Map<String, dynamic>>(LoginApi.getCode, data: {
|
||||
"phone": state.phone,
|
||||
});
|
||||
TDToast.showText(res["msg"].toString(), context: context);
|
||||
// TDToast.showText(res["msg"].toString(), context: context);
|
||||
ToolFn.tips(res["msg"].toString());
|
||||
state.countTime = 60;
|
||||
startCountdownTimer();
|
||||
}
|
||||
@@ -60,5 +61,7 @@ class LoginLogic extends GetxController {
|
||||
StorageUtil().putString("token", res["data"]["token"]);
|
||||
// 保存用户信息
|
||||
StorageUtil().putJSON("userInfo", res["data"]["data"]);
|
||||
ToolFn.tips(res["msg"]);
|
||||
Get.offAllNamed("/tab");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user