BUG 135
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
<image :src="user.avatarUrl || 'https://cdn.cunwuyun.cn/wxmp/fengdu/avatar.png'"/>
|
<image :src="user.avatarUrl || 'https://cdn.cunwuyun.cn/wxmp/fengdu/avatar.png'"/>
|
||||||
<h2>{{ user.nickName }}</h2>
|
<h2>{{ user.nickName }}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="add-btn" hover-class="text-hover" @click="$linkTo('./Add')">发贴</div>
|
<div class="add-btn" hover-class="text-hover" @click="handleAdd">发贴</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<div class="bottom-item" @click="changeTab(0)" :class="[currIndex === 0 ? 'active' : '']">
|
<div class="bottom-item" @click="changeTab(0)" :class="[currIndex === 0 ? 'active' : '']">
|
||||||
@@ -106,7 +106,8 @@
|
|||||||
<div class="comment-item" v-for="(item, index) in list" :key="index">
|
<div class="comment-item" v-for="(item, index) in list" :key="index">
|
||||||
<div class="comment-top">
|
<div class="comment-top">
|
||||||
<span>{{ item.myComment.createTime }}</span>
|
<span>{{ item.myComment.createTime }}</span>
|
||||||
<image hover-stop-propagation @click.stop="removeComment(item.myComment.id)" class="remove" src="https://cdn.cunwuyun.cn/wxmp/fengdu/ic-delete.png" />
|
<image hover-stop-propagation @click.stop="removeComment(item.myComment.id)" class="remove"
|
||||||
|
src="https://cdn.cunwuyun.cn/wxmp/fengdu/ic-delete.png"/>
|
||||||
</div>
|
</div>
|
||||||
<p>{{ item.myComment.content }}</p>
|
<p>{{ item.myComment.content }}</p>
|
||||||
<div
|
<div
|
||||||
@@ -154,6 +155,7 @@
|
|||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user', 'token']),
|
...mapState(['user', 'token']),
|
||||||
|
isAuth: v => !!v.user.areaId
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@@ -205,7 +207,8 @@
|
|||||||
this.changeTab(this.currIndex)
|
this.changeTab(this.currIndex)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}).catch(() => {})
|
}).catch(() => {
|
||||||
|
})
|
||||||
},
|
},
|
||||||
removeLike(id) {
|
removeLike(id) {
|
||||||
this.$dialog.confirm({
|
this.$dialog.confirm({
|
||||||
@@ -235,7 +238,8 @@
|
|||||||
this.changeTab(this.currIndex)
|
this.changeTab(this.currIndex)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}).catch(() => {})
|
}).catch(() => {
|
||||||
|
})
|
||||||
},
|
},
|
||||||
changeTab(index) {
|
changeTab(index) {
|
||||||
this.currIndex = index
|
this.currIndex = index
|
||||||
@@ -382,6 +386,18 @@
|
|||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$hideLoading()
|
this.$hideLoading()
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
handleAdd() {
|
||||||
|
if (this.isAuth) {
|
||||||
|
this.$linkTo('./Add')
|
||||||
|
} else {
|
||||||
|
this.$dialog.confirm({
|
||||||
|
content: '您只有完成信息认证后,才可进行相关操作。',
|
||||||
|
confirmText: '去认证'
|
||||||
|
}).then(() => {
|
||||||
|
this.$linkTo('/pages/AppMine/userInfo')
|
||||||
|
}).catch(() => 0)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user