用户协议、隐私政策以明示同意的方式征得用户同意

This commit is contained in:
Daisy 2024-03-07 12:00:10 +08:00
parent a980f5f250
commit 564608f482
2 changed files with 7 additions and 3 deletions

View File

@ -45,8 +45,7 @@ class StarLockLoginLogic extends BaseGetXController {
}
void _resetCanNext() {
state.canNext.value =
state.pwdIsOK && state.isEmailOrPhone && state.agree.value;
state.canNext.value = state.pwdIsOK && state.isEmailOrPhone;
}
@override

View File

@ -165,7 +165,12 @@ class _StarLockLoginPageState extends State<StarLockLoginPage> {
isDisabled: state.canNext.value,
onClick: state.canNext.value
? () {
logic.login();
if (state.agree.value == false) {
logic.showToast('请先同意用户协议');
return;
} else {
logic.login();
}
}
: null)),
SizedBox(height: 50.w),