Fix:【商城小程序】登录--勾选《用户协议》后取消勾选,仍可成功登录

This commit is contained in:
linxi
2024-09-19 10:00:53 +08:00
parent 427d33b550
commit bf5b30ae93
+3 -3
View File
@@ -173,7 +173,7 @@ export default {
authorize: false,
canIUseGetUserProfile: false,
agreeInfo: {},
isAgree: false,
isAgree: [],
show: false,
showFillOut: false,
nickname: '',
@@ -209,7 +209,7 @@ export default {
this.show=!this.show;
},
changeAgree(event) {
// this.isAgree = event.detail.value.length > 0
this.isAgree = event
},
clearName() {
this.nickname = ''
@@ -238,7 +238,7 @@ export default {
})
},
getUserInfoProfile() {
if (this.isAgree !== 'yes') {
if (!this.isAgree[0]) {
uni.showToast({
title: "请先阅读并同意《用户服务协议及隐私政策》",
icon: "none",