修复bug,未登录时不校验实名状态
This commit is contained in:
@@ -87,6 +87,8 @@
|
||||
},
|
||||
methods: {
|
||||
checkOaAuth() {
|
||||
const token = this.$getToken()
|
||||
if (!token) return
|
||||
const userInfo = uni.getStorageSync('userInfo')
|
||||
if (!userInfo || !userInfo.oaAuth) {
|
||||
uni.showModal({
|
||||
@@ -159,8 +161,13 @@
|
||||
},
|
||||
addFallback() {
|
||||
const content = this.newMessageContent.trim();
|
||||
const token = this.$getToken()
|
||||
if (!token) {
|
||||
uni.showToast({ title: '请先登录', icon: 'none' });
|
||||
return
|
||||
}
|
||||
let userInfo = uni.getStorageSync('userInfo');
|
||||
if(!userInfo.cusNo) {
|
||||
if(!userInfo || !userInfo.cusNo) {
|
||||
uni.showToast({ title: '您还未实名', icon: 'none' });
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user