修复bugID1000271----优化实名认证点击逻辑处理
This commit is contained in:
parent
6a83797003
commit
d23e0a121f
@ -233,7 +233,9 @@ class AuthorizedAdminLogic extends BaseGetXController {
|
||||
if (entity.errorCode!.codeIsSuccessful) {
|
||||
//打开实名认证,需要弹出输入身份证信息框
|
||||
state.isRequireAuth.value = true;
|
||||
state.isAuthentication.value = true;
|
||||
} else {
|
||||
//432--余量不足,需购买
|
||||
ShowTipView().showBuyTipWithContentAlert(
|
||||
titleStr: '实名认证为付费功能,请购买后再使用'.tr,
|
||||
sureClick: () {
|
||||
|
||||
@ -471,11 +471,11 @@ class _AuthorizedAdminPageState extends State<AuthorizedAdminPage>
|
||||
value: state.isAuthentication.value,
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
state.isAuthentication.value = !state.isAuthentication.value;
|
||||
if (state.isAuthentication.value == true) {
|
||||
if (logic.state.isAuthentication.value == false) {
|
||||
logic.keyCheckFace();
|
||||
} else {
|
||||
state.isRequireAuth.value = false;
|
||||
logic.state.isAuthentication.value = false;
|
||||
logic.state.isRequireAuth.value = false;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@ -190,7 +190,9 @@ class SendElectronicKeyViewLogic extends BaseGetXController {
|
||||
if (entity.errorCode!.codeIsSuccessful) {
|
||||
//打开实名认证,需要弹出输入身份证信息框
|
||||
state.isRequireAuth.value = true;
|
||||
state.isAuthentication.value = true;
|
||||
} else {
|
||||
//432--余量不足,需购买
|
||||
ShowTipView().showBuyTipWithContentAlert(
|
||||
titleStr: '实名认证为付费功能,请购买后再使用'.tr,
|
||||
sureClick: () {
|
||||
|
||||
@ -553,11 +553,10 @@ class _SendElectronicKeyViewState extends State<SendElectronicKeyView>
|
||||
if (isRemote) {
|
||||
logic.state.isRemoteUnlock.value = !logic.state.isRemoteUnlock.value;
|
||||
} else {
|
||||
logic.state.isAuthentication.value =
|
||||
!logic.state.isAuthentication.value;
|
||||
if (logic.state.isAuthentication.value == true) {
|
||||
if (logic.state.isAuthentication.value == false) {
|
||||
logic.keyCheckFace();
|
||||
} else {
|
||||
logic.state.isAuthentication.value = false;
|
||||
logic.state.isRequireAuth.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user