bug
This commit is contained in:
@@ -37,14 +37,14 @@
|
|||||||
<text>{{ item.content }}</text>
|
<text>{{ item.content }}</text>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-imgs" v-if="item.files.length">
|
<div class="item-imgs" v-if="item.files.length">
|
||||||
<image mode="aspectFill" v-for="(item, index) in item.files" :key="index" :src="item.url" />
|
<image mode="aspectFill" @click.stop="previewImage(e.url, item.files)" v-for="(e, i) in item.files" :key="i" :src="e.url" />
|
||||||
</div>
|
</div>
|
||||||
<p>{{ item.createTime }}</p>
|
<p>{{ item.createTime }}</p>
|
||||||
<div class="item-bottom">
|
<div class="item-bottom">
|
||||||
<div>
|
<button @click.stop="onBtnClick" open-type="share" :data-themeid="item.themeId" :data-id="item.id" :data-name="item.topicName">
|
||||||
<image src="https://cdn.cunwuyun.cn/wxmp/fengdu/ic-zhuanfa.png" />
|
<image src="https://cdn.cunwuyun.cn/wxmp/fengdu/ic-zhuanfa.png" />
|
||||||
<i>{{ item.sharedCount }}</i>
|
<i>{{ item.sharedCount }}</i>
|
||||||
</div>
|
</button>
|
||||||
<div>
|
<div>
|
||||||
<image :src="item.appreciateStatus ? 'https://cdn.cunwuyun.cn/wxmp/fengdu/zan-active.png' : '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>
|
<i>{{ item.appreciateCount }}</i>
|
||||||
@@ -108,6 +108,18 @@
|
|||||||
methods: {
|
methods: {
|
||||||
...mapActions(['autoLogin']),
|
...mapActions(['autoLogin']),
|
||||||
|
|
||||||
|
previewImage (url, files) {
|
||||||
|
console.log(url, files)
|
||||||
|
uni.previewImage({
|
||||||
|
current: url,
|
||||||
|
urls: files.map(v => v.url)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
onBtnClick (e) {
|
||||||
|
console.log(e)
|
||||||
|
},
|
||||||
|
|
||||||
getMyPublishCount () {
|
getMyPublishCount () {
|
||||||
this.$instance.post(`/app/appneighborhoodassistance/list`, null, {
|
this.$instance.post(`/app/appneighborhoodassistance/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
@@ -202,6 +214,13 @@
|
|||||||
|
|
||||||
onReachBottom () {
|
onReachBottom () {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
},
|
||||||
|
|
||||||
|
onShareAppMessage (e) {
|
||||||
|
return {
|
||||||
|
title: this.title,
|
||||||
|
path: `/pages/AppCircle/Detail?id=${this.id}&themeId=${e.themeid}&name=${e.name}`
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -322,7 +341,7 @@
|
|||||||
height: 88px;
|
height: 88px;
|
||||||
border-top: 1px solid #eeeeee;
|
border-top: 1px solid #eeeeee;
|
||||||
|
|
||||||
div {
|
div, button {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
@@ -341,10 +360,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.item-content {
|
.item-content {
|
||||||
margin: 16px 0;
|
margin: 16px 0;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
|
word-break: break-all;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
|
|||||||
Reference in New Issue
Block a user