补齐登录成功后跳转tab页面

This commit is contained in:
2023-12-23 00:00:14 +08:00
parent a16d808d2d
commit d444a4c838
2 changed files with 5 additions and 1 deletions

View File

@@ -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}"

View File

@@ -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");
}
}