登录校验
This commit is contained in:
@@ -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'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user