This commit is contained in:
weipengfei 2024-04-03 11:32:25 +08:00
parent 5877142f01
commit ddaeb2cf42

View File

@ -337,13 +337,9 @@
this.type = 'register' this.type = 'register'
} }
}, },
isAgree: function(n, o){
uni.setStorageSync('isAgree', n);
}
}, },
onLoad() { onLoad() {
let self = this let self = this
this.isAgree = uni.getStorageSync('isAgree')
uni.getSystemInfo({ uni.getSystemInfo({
success: function(res) { success: function(res) {
if (res.platform.toLowerCase() == 'ios' && self.getSystem(res.system) >= 13) { if (res.platform.toLowerCase() == 'ios' && self.getSystem(res.system) >= 13) {
@ -624,6 +620,7 @@
url: backUrl url: backUrl
}); });
} else { } else {
that.isAgree = false;
that.auth_token = res.data.result.key; that.auth_token = res.data.result.key;
that.bindStatus = true; that.bindStatus = true;
} }
@ -680,6 +677,7 @@
url: backUrl url: backUrl
}); });
} else { } else {
that.isAgree = false;
that.auth_token = res.data.result.key; that.auth_token = res.data.result.key;
that.bindStatus = true; that.bindStatus = true;
} }