修复bug以及优化
This commit is contained in:
@@ -40,6 +40,7 @@ export default {
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
},
|
||||
// ✅ 删除和 scroll-view 冲突的 onReachBottom
|
||||
computed: {
|
||||
@@ -48,6 +49,20 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
checkOaAuth() {
|
||||
const userInfo = uni.getStorageSync('userInfo')
|
||||
if (!userInfo || !userInfo.oaAuth) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您还未实名认证,请先完成实名认证',
|
||||
showCancel: false,
|
||||
confirmText: '去认证',
|
||||
success: () => {
|
||||
uni.redirectTo({ url: '/pages-biz/profile/profile' })
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
loadAssets() {
|
||||
// ✅ 正确判断加载状态
|
||||
if (this.loadStatus !== 'more') return;
|
||||
|
||||
Reference in New Issue
Block a user