bug
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
<span @click="changeTab(0)" :class="[currIndex === 0 ? 'active' : '']">广场</span>
|
||||
<span @click="changeTab(1)" :class="[currIndex === 1 ? 'active' : '']">社区</span>
|
||||
</div>
|
||||
<div class="right" @click="$linkTo('./MyPostList')">
|
||||
<div class="right" @click="$linkTo('./MyPostList')" hover-class="text-hover">
|
||||
<span>我的贴子</span>
|
||||
<i>1</i>
|
||||
<i v-if="total > 0">{{ total }}</i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nav" v-if="topic.length">
|
||||
@@ -46,7 +46,7 @@
|
||||
<i>{{ item.sharedCount }}</i>
|
||||
</div>
|
||||
<div>
|
||||
<image src="https://cdn.cunwuyun.cn/wxmp/fengdu/zan.png" />
|
||||
<image :src="item.appreciateStatus ? 'https://cdn.cunwuyun.cn/wxmp/fengdu/zan-active.png' : 'https://cdn.cunwuyun.cn/wxmp/fengdu/zan.png'" />
|
||||
<i>{{ item.appreciateCount }}</i>
|
||||
</div>
|
||||
<div>
|
||||
@@ -76,7 +76,8 @@
|
||||
topicList: [],
|
||||
list: [],
|
||||
isMore: false,
|
||||
current: 1
|
||||
current: 1,
|
||||
total: 0
|
||||
}
|
||||
},
|
||||
|
||||
@@ -94,12 +95,31 @@
|
||||
uni.$on('updateList', () => {
|
||||
this.changeTab(this.currIndex)
|
||||
})
|
||||
|
||||
if (this.token) {
|
||||
this.getMyPublishCount()
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
getMyPublishCount () {
|
||||
this.$instance.post(`/app/appneighborhoodassistance/list`, null, {
|
||||
params: {
|
||||
current: 1,
|
||||
size: 10,
|
||||
listType: 0,
|
||||
createUserId: this.user.id
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.total = res.data.total
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
getTopicList () {
|
||||
this.$instance.post(`/app/appneighborhoodassistancetheme/list`, null, {
|
||||
// withoutToken: true,
|
||||
withoutToken: true,
|
||||
params: {
|
||||
current: 1,
|
||||
size: 100
|
||||
|
||||
Reference in New Issue
Block a user