diff --git a/src/views/PublicAdvice.vue b/src/views/PublicAdvice.vue index d0bf5d5..07be4e5 100644 --- a/src/views/PublicAdvice.vue +++ b/src/views/PublicAdvice.vue @@ -31,7 +31,7 @@ :key="index" :src="item1.url" style="width: 100px; height: 50px; margin-top: 5px; padding-left: 5px" - @click="clickImg(item1)" + @click="clickImg(item.filelist)" /> @@ -154,7 +154,11 @@ // 点击预览大图//照片弹框 function clickImg(url) { - showImagePreview([url.url]); + let params = []; + url.forEach((item) => { + params.push(item.url); + }); + showImagePreview(params); } // 我想说点击事件 function sayClick() {