Fix:【商城小程序】登录--勾选《用户协议》后取消勾选,仍可成功登录
This commit is contained in:
@@ -146,7 +146,7 @@
|
|||||||
>
|
>
|
||||||
</u-checkbox>
|
</u-checkbox>
|
||||||
</u-checkbox-group>
|
</u-checkbox-group>
|
||||||
<text @click="changeShow">我已阅读并同意
|
<text @click="changeShow">我已阅读并同意
|
||||||
<text class="btn-show">《用户服务协议及隐私政策》</text>
|
<text class="btn-show">《用户服务协议及隐私政策》</text>
|
||||||
</text>
|
</text>
|
||||||
<!-- <checkbox-group @change="changeAgree">
|
<!-- <checkbox-group @change="changeAgree">
|
||||||
@@ -173,7 +173,7 @@ export default {
|
|||||||
authorize: false,
|
authorize: false,
|
||||||
canIUseGetUserProfile: false,
|
canIUseGetUserProfile: false,
|
||||||
agreeInfo: {},
|
agreeInfo: {},
|
||||||
isAgree: false,
|
isAgree: [],
|
||||||
show: false,
|
show: false,
|
||||||
showFillOut: false,
|
showFillOut: false,
|
||||||
nickname: '',
|
nickname: '',
|
||||||
@@ -209,7 +209,7 @@ export default {
|
|||||||
this.show=!this.show;
|
this.show=!this.show;
|
||||||
},
|
},
|
||||||
changeAgree(event) {
|
changeAgree(event) {
|
||||||
// this.isAgree = event.detail.value.length > 0
|
this.isAgree = event
|
||||||
},
|
},
|
||||||
clearName() {
|
clearName() {
|
||||||
this.nickname = ''
|
this.nickname = ''
|
||||||
@@ -238,7 +238,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getUserInfoProfile() {
|
getUserInfoProfile() {
|
||||||
if (this.isAgree !== 'yes') {
|
if (!this.isAgree[0]) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "请先阅读并同意《用户服务协议及隐私政策》",
|
title: "请先阅读并同意《用户服务协议及隐私政策》",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
|
|||||||
Reference in New Issue
Block a user