Fix:【商城小程序】登录--勾选《用户协议》后取消勾选,仍可成功登录
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user