Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix(group): (#578) 用户若在审核中,在资讯列表页点击投稿会跳到认证表单页面的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Oct 15, 2018
1 parent 2c62828 commit 3c6fdb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/page/news/NewsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export default {
computed: {
...mapState({
advertiseList: state => state.news.advertise.list,
advertiseIndex: state => state.news.advertise.index
advertiseIndex: state => state.news.advertise.index,
newsVerified: state => state.CONFIG["news:contribute"].verified,
userVerify: state => state.USER_VERIFY || {}
}),
after() {
const len = this.newsList.length;
Expand All @@ -75,6 +77,7 @@ export default {
mounted() {
this.$store.dispatch("news/getAdvertise");
if (!this.newsList.length) this.$refs.loadmore.beforeRefresh();
if (this.newsVerified) this.$store.dispatch("FETCH_USER_VERIFY");
},
methods: {
onCateChange({ id = 0 } = {}) {
Expand Down Expand Up @@ -131,7 +134,9 @@ export default {
!this.$store.state.CONFIG["news:contribute"].verified ||
!_.isEmpty(this.$store.state.CURRENTUSER.verified);
if (noNeedVerify) return this.$router.push({ path: "/post/release" });
else {
else if (this.userVerify.status === 0) {
this.$Message.error("您的认证正在等待审核,通过审核后可发布帖子");
} else {
const actions = [
{
text: "个人认证",
Expand Down
1 change: 1 addition & 0 deletions src/routers/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default [
meta: { title: "申请认证" }
},
{
name: "ProfileCertification",
path: "/profile/certification",
component: ProfileCertification,
meta: { title: "认证信息" }
Expand Down

0 comments on commit 3c6fdb4

Please sign in to comment.