diff --git a/src/components/utils/modules.js b/src/components/utils/modules.js index 9860740..1ea8efb 100644 --- a/src/components/utils/modules.js +++ b/src/components/utils/modules.js @@ -70,6 +70,7 @@ export const user = { //checkType 1、登录认证 2、居民认证 3、党员认证 //判断是否需要校验认证信息 let {user: userInfo, token} = rootState + console.log(); if (!checkType) { //如果需要校验认证信息,必定要先验证是否登录 uni.navigateTo({url: modulePath}); @@ -94,6 +95,19 @@ export const user = { return uni.showToast({title: "您还不是党员,暂时无法使用该功能", icon: "none"}); } uni.navigateTo({url: modulePath}); + } else if (checkType == 4) { + if (!token) { + return dispatch('autoLogin').then(() => dispatch('authCheck', { checkType, modulePath })); + } + if (!userInfo.areaId) { + this.$dialog.confirm({ + content: '您只有完成信息认证后,才可进行相关操作。', + confirmText: '去认证' + }).then(() => { + uni.switchTab({ url: '/pages/AppMine/userInfo' }) + }).catch(() => { + }) + } } } } diff --git a/src/project/fengdu/AppCircle/Add.vue b/src/project/fengdu/AppCircle/Add.vue index 87d8eb9..77e83ed 100644 --- a/src/project/fengdu/AppCircle/Add.vue +++ b/src/project/fengdu/AppCircle/Add.vue @@ -53,6 +53,8 @@ export default { name: 'Add', appName: '发新贴', + navigationBarBackgroundColor: '#ffffff', + navigationBarTextStyle: 'black', data () { return { diff --git a/src/project/fengdu/AppCircle/AppCircle.vue b/src/project/fengdu/AppCircle/AppCircle.vue index 633b75f..d3d88b4 100644 --- a/src/project/fengdu/AppCircle/AppCircle.vue +++ b/src/project/fengdu/AppCircle/AppCircle.vue @@ -96,6 +96,9 @@ } }, + onReady () { + }, + onLoad () { this.getTopicList() diff --git a/src/project/fengdu/AppCircle/Detail.vue b/src/project/fengdu/AppCircle/Detail.vue index e9f5ddf..2c392db 100644 --- a/src/project/fengdu/AppCircle/Detail.vue +++ b/src/project/fengdu/AppCircle/Detail.vue @@ -1,4 +1,4 @@ -