登录校验

This commit is contained in:
shijingjing
2023-03-31 16:00:28 +08:00
parent c5861c685a
commit 3fd7aca320
2 changed files with 59 additions and 15 deletions

View File

@@ -343,7 +343,24 @@ export default {
getAuth() {
this.$nextTick(() => {
this.token && this.getUserInfo('qujing')
this.$nextTick(() => {
this.toAuth()
})
})
},
toAuth() {
if (!this.user.idNumber) {
this.$dialog.confirm({
content: '您只有完成信息认证后,才可进行相关操作。',
confirmText: '去认证'
}).then(() => {
this.$linkTo('/pages/AppMine/userInfo')
}).catch(() => {
})
} else {
this.getDetail()
this.showPages = true
}
}
},
onLoad(o) {
@@ -356,19 +373,9 @@ export default {
});
if (!this.token) {
this.$refs.login.show()
}
if (!this.user.idNumber) {
this.$dialog.confirm({
content: '您只有完成信息认证后,才可进行相关操作。',
confirmText: '去认证'
}).then(() => {
this.$linkTo('/pages/AppMine/userInfo')
}).catch(() => {
})
} else {
this.getDetail()
this.showPages = true
}
this.toAuth()
}
this.qqmapsdk = new QQMapWX({
key: process.env.NODE_ENV == 'production' ? 'RWWBZ-64BEJ-MVLFJ-FTHLQ-JTR6J-SAB2S' : '3RZBZ-LZUCF-CT6J5-NWKZH-FCWOQ-UUFKY'
})