bug
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
</div>
|
||||
<div class="img-list" v-if="data.files && data.files.length">
|
||||
<div class="title">图片</div>
|
||||
<img :src="item.accessUrl" alt="" v-for="(item, index) in data.files" :key="index" />
|
||||
<img :src="item.accessUrl" alt="" v-for="(item, index) in data.files" :key="index" @click="previewImage(data.files, item.accessUrl)" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -52,6 +52,12 @@ export default {
|
||||
},
|
||||
mounted() {},
|
||||
methods: {
|
||||
previewImage(images, img) {
|
||||
uni.previewImage({
|
||||
urls: images.map(v => v.url),
|
||||
current: img
|
||||
})
|
||||
},
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appcontentinfo/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res?.data) {
|
||||
|
||||
Reference in New Issue
Block a user