更新小e
This commit is contained in:
@@ -309,7 +309,8 @@ class BindTelWidget extends GetView<AuthBindTelController> {
|
||||
}
|
||||
String msg =
|
||||
await controller
|
||||
.getCode(context,img);
|
||||
.getCode(
|
||||
context, img);
|
||||
if (msg.isNotEmpty) {
|
||||
return;
|
||||
}
|
||||
@@ -427,28 +428,30 @@ class BindTelWidget extends GetView<AuthBindTelController> {
|
||||
gradientDirection:
|
||||
GradientDirection.vertical,
|
||||
onTap: () async {
|
||||
// String msg = await controller.bindTel();
|
||||
// if (msg == null || msg.isEmpty) {
|
||||
// MHTLoginController loginController =
|
||||
// Get.find();
|
||||
// //TODO 微信回调监听操作全部跳转页面前成功以后移除监听,防止重复监听,其他方式登录成功也需要移出监听
|
||||
// loginController.fluwxCancelable
|
||||
// ?.cancel();
|
||||
// // 登录成功移出网络检查监听
|
||||
// Checknetwork.subscription?.cancel();
|
||||
// final box = GetStorage();
|
||||
// box.remove('countdown');
|
||||
// CountdownController
|
||||
// countdownController = Get.find();
|
||||
// countdownController.countdown = 0.obs;
|
||||
// Get.offAndToNamed(
|
||||
// "/mianPageBottomChange");
|
||||
// } else {
|
||||
// showToast(msg);
|
||||
// }
|
||||
String msg = await controller.bindTel();
|
||||
if (msg == null || msg.isEmpty) {
|
||||
MHTLoginController loginController =
|
||||
Get.find();
|
||||
//TODO 微信回调监听操作全部跳转页面前成功以后移除监听,防止重复监听,其他方式登录成功也需要移出监听
|
||||
loginController.fluwxCancelable
|
||||
?.cancel();
|
||||
// 登录成功移出网络检查监听
|
||||
Checknetwork.subscription?.cancel();
|
||||
final box = GetStorage();
|
||||
box.remove('countdown');
|
||||
CountdownController
|
||||
countdownController = Get.find();
|
||||
countdownController.countdown = 0.obs;
|
||||
Get.offAndToNamed(
|
||||
"/mianPageBottomChange");
|
||||
} else {
|
||||
TopSlideNotification.show(context,
|
||||
text: msg!,
|
||||
textColor: themeController
|
||||
.currentColor.sc9);
|
||||
}
|
||||
ApiResponse apiResponse =
|
||||
await controller.updateUserPhone();
|
||||
|
||||
if (apiResponse.code ==
|
||||
HttpStatusCodes.ok) {
|
||||
UserInfoController userInfoController =
|
||||
|
||||
Reference in New Issue
Block a user