This commit is contained in:
花有清香月有阴
2021-12-27 10:15:15 +08:00
parent 3d14a4b682
commit 974877ac56

View File

@@ -32,7 +32,7 @@
<div class="areaNmae" v-if="item.areaName || item.address">{{ item.areaName }}{{ item.address }}</div>
</div>
<img :src="item.url[0].url" alt="" @click.stop="previewImage(item.url, item.url[0].url)" />
<img :src="items.url" alt="" v-for="(items, index) in JSON.parse(item.url || '[]')" :key="index" @click.stop="previewImage(item.url, item.url[0].url)" />
<div class="hints" :style="{ background: item.status == 0 ? '#000000' : item.status == 1 ? '#42D784' : '#E4E4E4' }">{{ $dict.getLabel('villageActivityStatus', item.status) }}</div>
</template>
@@ -103,15 +103,6 @@ export default {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.total = res.data.total
this.pages = res.data.pages
if (this.datas) {
this.datas.map((item) => {
if (item.url) {
item.url = JSON.parse(item.url || '[]')
}
return item
})
}
}
})
},