Commit 2f318eac by 张立顺

fix bug

1 parent 65baba75
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
<img class="icon" src="./images/picIcon.png" /> <img class="icon" src="./images/picIcon.png" />
<span class="label">图片.jpg</span> <span class="label">图片.jpg</span>
<span class="handle" @click=" <span class="handle" @click="
handleEnlargeImg(detail.customerPhotos, 'customerPhoto') handleImg(detail.customerPhotos, 'customerPhoto')
">点击查看({{ detail.customerPhotos.length }}张)</span> ">点击查看({{ detail.customerPhotos.length }}张)</span>
</div> </div>
</el-form-item> </el-form-item>
...@@ -443,6 +443,14 @@ export default { ...@@ -443,6 +443,14 @@ export default {
this.imgVisible = !this.imgVisible this.imgVisible = !this.imgVisible
// this.imgList = url // this.imgList = url
console.log("url", url) console.log("url", url)
this.imgList = url.map((item) => item[name])
// this.imgList = url
this.imgUrlName = name
},
handleImg(url, name) {
this.imgVisible = !this.imgVisible
// this.imgList = url
console.log("url", url)
// this.imgList = url.map((item) => item[name]) // this.imgList = url.map((item) => item[name])
this.imgList = url this.imgList = url
this.imgUrlName = name this.imgUrlName = name
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!