mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-06-07 14:32:27 +08:00
修复bug,未登录时不校验实名状态
This commit is contained in:
@@ -143,8 +143,16 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
const token = this.$getToken()
|
||||||
|
if (!token) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请先登录',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
return
|
||||||
|
}
|
||||||
let userInfo = uni.getStorageSync('userInfo');
|
let userInfo = uni.getStorageSync('userInfo');
|
||||||
if(!userInfo.cusNo) {
|
if(!userInfo || !userInfo.cusNo) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '您还未实名',
|
title: '您还未实名',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|||||||
@@ -68,6 +68,8 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkOaAuth() {
|
checkOaAuth() {
|
||||||
|
const token = this.$getToken()
|
||||||
|
if (!token) return
|
||||||
const userInfo = uni.getStorageSync('userInfo')
|
const userInfo = uni.getStorageSync('userInfo')
|
||||||
if (!userInfo || !userInfo.oaAuth) {
|
if (!userInfo || !userInfo.oaAuth) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
@@ -87,6 +87,8 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkOaAuth() {
|
checkOaAuth() {
|
||||||
|
const token = this.$getToken()
|
||||||
|
if (!token) return
|
||||||
const userInfo = uni.getStorageSync('userInfo')
|
const userInfo = uni.getStorageSync('userInfo')
|
||||||
if (!userInfo || !userInfo.oaAuth) {
|
if (!userInfo || !userInfo.oaAuth) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
@@ -159,8 +161,13 @@
|
|||||||
},
|
},
|
||||||
addFallback() {
|
addFallback() {
|
||||||
const content = this.newMessageContent.trim();
|
const content = this.newMessageContent.trim();
|
||||||
|
const token = this.$getToken()
|
||||||
|
if (!token) {
|
||||||
|
uni.showToast({ title: '请先登录', icon: 'none' });
|
||||||
|
return
|
||||||
|
}
|
||||||
let userInfo = uni.getStorageSync('userInfo');
|
let userInfo = uni.getStorageSync('userInfo');
|
||||||
if(!userInfo.cusNo) {
|
if(!userInfo || !userInfo.cusNo) {
|
||||||
uni.showToast({ title: '您还未实名', icon: 'none' });
|
uni.showToast({ title: '您还未实名', icon: 'none' });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,6 +112,8 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkOaAuth() {
|
checkOaAuth() {
|
||||||
|
const token = this.$getToken()
|
||||||
|
if (!token) return
|
||||||
const userInfo = uni.getStorageSync('userInfo')
|
const userInfo = uni.getStorageSync('userInfo')
|
||||||
if (!userInfo || !userInfo.oaAuth) {
|
if (!userInfo || !userInfo.oaAuth) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
@@ -84,6 +84,8 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkOaAuth() {
|
checkOaAuth() {
|
||||||
|
const token = this.$getToken()
|
||||||
|
if (!token) return
|
||||||
const userInfo = uni.getStorageSync('userInfo')
|
const userInfo = uni.getStorageSync('userInfo')
|
||||||
if (!userInfo || !userInfo.oaAuth) {
|
if (!userInfo || !userInfo.oaAuth) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkOaAuth() {
|
checkOaAuth() {
|
||||||
|
const token = this.$getToken()
|
||||||
|
if (!token) return
|
||||||
const userInfo = uni.getStorageSync('userInfo')
|
const userInfo = uni.getStorageSync('userInfo')
|
||||||
if (!userInfo || !userInfo.oaAuth) {
|
if (!userInfo || !userInfo.oaAuth) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkOaAuth() {
|
checkOaAuth() {
|
||||||
|
const token = this.$getToken()
|
||||||
|
if (!token) return
|
||||||
const userInfo = uni.getStorageSync('userInfo')
|
const userInfo = uni.getStorageSync('userInfo')
|
||||||
if (!userInfo || !userInfo.oaAuth) {
|
if (!userInfo || !userInfo.oaAuth) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
@@ -90,6 +90,8 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
checkOaAuth() {
|
checkOaAuth() {
|
||||||
|
const token = this.$getToken()
|
||||||
|
if (!token) return
|
||||||
const userInfo = uni.getStorageSync('userInfo')
|
const userInfo = uni.getStorageSync('userInfo')
|
||||||
if (!userInfo || !userInfo.oaAuth) {
|
if (!userInfo || !userInfo.oaAuth) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
@@ -89,6 +89,8 @@
|
|||||||
// ❌ 已删除冲突的 onReachBottom
|
// ❌ 已删除冲突的 onReachBottom
|
||||||
methods: {
|
methods: {
|
||||||
checkOaAuth() {
|
checkOaAuth() {
|
||||||
|
const token = this.$getToken()
|
||||||
|
if (!token) return
|
||||||
const userInfo = uni.getStorageSync('userInfo')
|
const userInfo = uni.getStorageSync('userInfo')
|
||||||
if (!userInfo || !userInfo.oaAuth) {
|
if (!userInfo || !userInfo.oaAuth) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
@@ -86,6 +86,8 @@
|
|||||||
// ❌ 已删除冲突的 onReachBottom
|
// ❌ 已删除冲突的 onReachBottom
|
||||||
methods: {
|
methods: {
|
||||||
checkOaAuth() {
|
checkOaAuth() {
|
||||||
|
const token = this.$getToken()
|
||||||
|
if (!token) return
|
||||||
const userInfo = uni.getStorageSync('userInfo')
|
const userInfo = uni.getStorageSync('userInfo')
|
||||||
if (!userInfo || !userInfo.oaAuth) {
|
if (!userInfo || !userInfo.oaAuth) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
|
|||||||
Reference in New Issue
Block a user