Merge branch 'develop_account_password' into 'release'

feat: 1,注册页面根据类型限制输入格式 2,删除锁无需再次验证登录密码

See merge request StarlockTeam/app-starlock!205
This commit is contained in:
吴亚茜 2025-07-17 01:24:23 +00:00
commit e08e39fce6
2 changed files with 24 additions and 3 deletions

View File

@ -135,6 +135,17 @@ class _StarLockRegisterPageState extends State<StarLockRegisterXHJPage> {
Widget middleTFWidget() {
return Column(
children: <Widget>[
// Obx(() => LoginInput(
// controller: state.phoneOrEmailController,
// onchangeAction: (v) {
// logic.checkNext(state.phoneOrEmailController);
// },
// leftWidget: SizedBox(),
// label: state.isIphoneType.value ? '请输入手机号'.tr : '请输入邮箱'.tr,
// keyboardType: TextInputType.number,
// inputFormatters: <TextInputFormatter>[
// LengthLimitingTextInputFormatter(30),
// ])),
Obx(() => LoginInput(
controller: state.phoneOrEmailController,
onchangeAction: (v) {
@ -142,9 +153,18 @@ class _StarLockRegisterPageState extends State<StarLockRegisterXHJPage> {
},
leftWidget: SizedBox(),
label: state.isIphoneType.value ? '请输入手机号'.tr : '请输入邮箱'.tr,
keyboardType: TextInputType.number,
keyboardType: state.isIphoneType.value
? TextInputType.number
: TextInputType.emailAddress,
inputFormatters: <TextInputFormatter>[
LengthLimitingTextInputFormatter(30),
//
if (state.isIphoneType.value)
FilteringTextInputFormatter.digitsOnly //
else
// @._-
FilteringTextInputFormatter.allow(
RegExp(r'[a-zA-Z0-9@._-]'))
])),
LoginInput(
controller: state.pwdController,

View File

@ -563,8 +563,9 @@ class LockSetLogic extends BaseGetXController {
.showIosTipWithContentDialog('删除锁后,所有信息都会一起删除,确定删除锁吗?'.tr, () {
//
state.showTipView.resetGetController();
state.showTipView.showTFViewAlertDialog(
state.passwordTF, '请输入登录密码'.tr, '请输入登录密码'.tr, checkLoginPassword);
factoryDataResetAction();
// state.showTipView.showTFViewAlertDialog(
// state.passwordTF, '请输入登录密码'.tr, '请输入登录密码'.tr, checkLoginPassword);
});
} else if (state.lockBasicInfo.value.keyRight == 1) {
//