This commit is contained in:
shijingjing
2022-05-16 13:59:25 +08:00
parent 2c73f6616e
commit b916295a8e
2 changed files with 30 additions and 15 deletions

View File

@@ -36,23 +36,20 @@ export default {
};
},
onLoad() {
let {status} = this.user
if (status == 2) {
uni.redirectTo({url: "./authInfo"})
} else if (status == 0) {
//停留此页
} else {
uni.redirectTo({url: "./authSuccess"})
}
// let {status} = this.user
// if (status == 2) {
// uni.redirectTo({url: "./authInfo"})
// } else if (status == 0) {
// //停留此页
// } else {
// uni.redirectTo({url: "./authSuccess"})
// }
},
methods: {
toAgreement() {
uni.navigateTo({url: "./agreement"})
},
confirm() {
if(this.isChecked == flase) {
return this.$u.toast('请勾选用户服务及隐私协议')
}
let {name, idNumber} = this
if (!name) {
return this.$u.toast('请填写姓名')
@@ -64,6 +61,9 @@ export default {
if (!this.$idCardNoUtil.checkIdCardNo(idNumber)) {
return this.$u.toast('请输入正确的身份证号码')
}
if(!this.isChecked) {
return this.$u.toast('请勾选用户服务及隐私协议')
}
this.$instance.post(`/app/appwechatuser/idNumberAttestation`, {
idNumber, name
}).then(res => {