Commit 4b83f313 by 张立顺

fix bug

1 parent 2f318eac
......@@ -143,8 +143,8 @@
<img class="icon" src="./images/picIcon.png" />
<span class="label">图片.jpg</span>
<span class="handle" @click="
handleEnlargeImg(
[detail.electronicSignature],
handleImg(
detail.electronicSignature,
'electronicSignature'
)
">点击查看</span>
......@@ -155,7 +155,7 @@
<img class="icon" src="./images/picIcon.png" />
<span class="label">图片.jpg</span>
<span class="handle" @click="
handleImg(detail.customerPhotos, 'customerPhoto')
handleEnlargeImg(detail.customerPhotos, 'customerPhoto')
">点击查看({{ detail.customerPhotos.length }}张)</span>
</div>
</el-form-item>
......@@ -279,24 +279,6 @@
</p>
</div>
<!-- <el-dialog :visible="imgVisible"
:before-close="handleEnlargeImg">
<el-carousel :autoplay="false"
arrow="always"
trigger="click"
height="695px"
:initial-index="index"
ref="carousel">
<el-carousel-item v-for="(item, index) in imgList"
:key="index"
class="carousel">
<img :src="item[imgUrlName]"
alt=""
class="carousel-img">
</el-carousel-item>
</el-carousel>
</el-dialog> -->
<el-image-viewer v-if="imgVisible" :on-close="closeImgViewer" :url-list="imgList" :initial-index="initialIndex" />
<!-- 标记退款 -->
......@@ -441,6 +423,7 @@ export default {
},
handleEnlargeImg(url, name) {
this.imgVisible = !this.imgVisible
this.initialIndex = 0
// this.imgList = url
console.log("url", url)
this.imgList = url.map((item) => item[name])
......@@ -449,10 +432,11 @@ export default {
},
handleImg(url, name) {
this.imgVisible = !this.imgVisible
this.initialIndex = 0
// this.imgList = url
console.log("url", url)
// this.imgList = url.map((item) => item[name])
this.imgList = url
this.imgList = [url]
console.log("url", this.imgList)
this.imgUrlName = name
},
handleEnlargeFile(url) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!