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, 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",