From 72d5d3dc2078df02017744f792df2742a0e38a29 Mon Sep 17 00:00:00 2001 From: Liuyf Date: Mon, 23 Sep 2024 15:45:39 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E3=80=90=E5=85=B6=E4=BB=96-?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E3=80=91=20=20=20=20=20https://www.tapd.cn/6?= =?UTF-8?q?9273997/bugtrace/bugs/view/1169273997001002903?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../register/starLock_register_xhj_page.dart | 40 +++++++++---------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/lib/login/register/starLock_register_xhj_page.dart b/lib/login/register/starLock_register_xhj_page.dart index 6fc7fbbd..811fe1bd 100755 --- a/lib/login/register/starLock_register_xhj_page.dart +++ b/lib/login/register/starLock_register_xhj_page.dart @@ -194,31 +194,27 @@ class _StarLockRegisterPageState extends State { ]), ), Obx(() => GestureDetector( - onTap: - (state.canSendCode.value && state.canResend.value) - ? () async { - // Navigator.pushNamed(context, Routers.safetyVerificationPage, arguments: {"countryCode":"+86", "account":state.phoneOrEmailStr.value}); - if (state.pwd.value != state.surePwd.value) { - logic.showToast('密码不一致哦'.tr); - return; - } - final result = await Get.toNamed( - Routers.safetyVerificationPage, - arguments: { - 'countryCode': state.countryCode, - 'account': state.phoneOrEmailStr.value - }); - state.xWidth.value = - (result as Map)['xWidth']; - logic.sendValidationCode(); - } - : null, + onTap: (state.canSendCode.value && state.canResend.value) + ? () async { + // Navigator.pushNamed(context, Routers.safetyVerificationPage, arguments: {"countryCode":"+86", "account":state.phoneOrEmailStr.value}); + final result = await Get.toNamed( + Routers.safetyVerificationPage, + arguments: { + 'countryCode': state.countryCode, + 'account': state.phoneOrEmailStr.value + }); + state.xWidth.value = + (result as Map)['xWidth']; + logic.sendValidationCode(); + } + : null, child: Container( padding: EdgeInsets.all(10.h), decoration: BoxDecoration( - color: (state.canSendCode.value && state.canResend.value) - ? AppColors.mainColor - : AppColors.btnDisableColor, + color: + (state.canSendCode.value && state.canResend.value) + ? AppColors.mainColor + : AppColors.btnDisableColor, borderRadius: BorderRadius.circular(5)), child: Center( child: Text(state.btnText.value,