bug
This commit is contained in:
@@ -40,10 +40,10 @@
|
||||
<div class="item-content">
|
||||
<span hover-stop-propagation v-if="item.themeId"
|
||||
@click.stop="$linkTo('./TopicDetail?themeId=' + item.themeId + '&name=' + item.topicName)">#【{{ item.topicName }}】</span>
|
||||
<text class="row2">{{ item.content }}</text>
|
||||
<text>{{ item.content }}</text>
|
||||
</div>
|
||||
<div class="item-imgs" v-if="item.files.length">
|
||||
<image mode="aspectFill" @click.stop="previewImage(e.url, item.files)" v-for="(e, i) in item.files.slice(0,3)" :key="i" :src="e.url"/>
|
||||
<image mode="aspectFill" @click.stop="previewImage(e.url, item.files)" v-for="(e, i) in item.files" :key="i" :src="e.url"/>
|
||||
</div>
|
||||
<p>{{ item.createTime }}</p>
|
||||
<div class="item-bottom">
|
||||
@@ -99,6 +99,10 @@ export default {
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
uni.setNavigationBarTitle({
|
||||
title: '邻里互助'
|
||||
});
|
||||
|
||||
this.getTopicList()
|
||||
|
||||
uni.$on('updateList', () => {
|
||||
@@ -107,7 +111,7 @@ export default {
|
||||
})
|
||||
|
||||
if (!this.token) {
|
||||
this.autoLogin().then(() => {
|
||||
this.autoLogin({ loginWay: 'qujing' }).then(() => {
|
||||
this.getMyPublishCount()
|
||||
})
|
||||
} else {
|
||||
@@ -211,6 +215,7 @@ export default {
|
||||
this.list = [...this.list, ...res.data.records.map(e => {
|
||||
return {
|
||||
...e,
|
||||
files: e.files.filter((v, index) => index < 3),
|
||||
topicName: this.topicList.filter(v => v.id === e.themeId).length ? this.topicList.filter(v => v.id === e.themeId)[0].title : ''
|
||||
}
|
||||
})]
|
||||
@@ -218,6 +223,7 @@ export default {
|
||||
this.list = res.data.records.map(e => {
|
||||
return {
|
||||
...e,
|
||||
files: e.files.filter((v, index) => index < 3),
|
||||
topicName: this.topicList.filter(v => v.id === e.themeId).length ? this.topicList.filter(v => v.id === e.themeId)[0].title : ''
|
||||
}
|
||||
})
|
||||
|
||||
@@ -168,7 +168,7 @@ div<template>
|
||||
},
|
||||
|
||||
showComment () {
|
||||
if (!this.user.AreaId) {
|
||||
if (!this.user.areaId) {
|
||||
this.$dialog.confirm({
|
||||
content: '您只有完成信息认证后,才可进行相关操作。',
|
||||
confirmText: '去认证'
|
||||
|
||||
@@ -41,10 +41,10 @@
|
||||
</div>
|
||||
<div class="item-content">
|
||||
<span v-if="item.themeId" @click.stop="$linkTo('./TopicDetail?themeId=' + item.themeId + '&name=' + item.topicName)">#【{{ item.topicName }}】</span>
|
||||
<text class="row2">{{ item.content }}</text>
|
||||
<text>{{ item.content }}</text>
|
||||
</div>
|
||||
<div class="item-imgs" v-if="item.files.length">
|
||||
<image mode="aspectFill" hover-stop-propagation @click.stop="previewImage(e.url, item.files)" v-for="(e, i) in item.files.slice(0,3)" :key="i" :src="e.url"/>
|
||||
<image mode="aspectFill" hover-stop-propagation @click.stop="previewImage(e.url, item.files)" v-for="(e, i) in item.files" :key="i" :src="e.url"/>
|
||||
</div>
|
||||
<p>{{ item.createTime }}</p>
|
||||
<div class="item-bottom">
|
||||
@@ -275,6 +275,7 @@ export default {
|
||||
this.list = [...this.list, ...res.data.records.map(e => {
|
||||
return {
|
||||
...e,
|
||||
files: e.files.filter((v, index) => index < 3),
|
||||
topicName: this.topicList.filter(v => v.id === e.themeId).length ? this.topicList.filter(v => v.id === e.themeId)[0].title : ''
|
||||
}
|
||||
})]
|
||||
@@ -282,6 +283,7 @@ export default {
|
||||
this.list = res.data.records.map(e => {
|
||||
return {
|
||||
...e,
|
||||
files: e.files.filter((v, index) => index < 3),
|
||||
topicName: this.topicList.filter(v => v.id === e.themeId).length ? this.topicList.filter(v => v.id === e.themeId)[0].title : ''
|
||||
}
|
||||
})
|
||||
@@ -317,6 +319,7 @@ export default {
|
||||
this.list = [...this.list, ...res.data.records.map(e => {
|
||||
return {
|
||||
...e,
|
||||
files: e.files.filter((v, index) => index < 3),
|
||||
topicName: this.topicList.filter(v => v.id === e.themeId).length ? this.topicList.filter(v => v.id === e.themeId)[0].title : ''
|
||||
}
|
||||
})]
|
||||
@@ -324,6 +327,7 @@ export default {
|
||||
this.list = res.data.records.map(e => {
|
||||
return {
|
||||
...e,
|
||||
files: e.files.filter((v, index) => index < 3),
|
||||
topicName: this.topicList.filter(v => v.id === e.themeId).length ? this.topicList.filter(v => v.id === e.themeId)[0].title : ''
|
||||
}
|
||||
})
|
||||
@@ -361,6 +365,7 @@ export default {
|
||||
this.list = [...this.list, ...res.data.records.map(e => {
|
||||
return {
|
||||
...e,
|
||||
files: e.files.filter((v, index) => index < 3),
|
||||
topicName: this.topicList.filter(v => v.id === e.themeId).length ? this.topicList.filter(v => v.id === e.themeId)[0].title : ''
|
||||
}
|
||||
})]
|
||||
@@ -368,6 +373,7 @@ export default {
|
||||
this.list = res.data.records.map(e => {
|
||||
return {
|
||||
...e,
|
||||
files: e.files.filter((v, index) => index < 3),
|
||||
topicName: this.topicList.filter(v => v.id === e.themeId).length ? this.topicList.filter(v => v.id === e.themeId)[0].title : ''
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user