Commit d7d4dbeb authored by xinzhedeai's avatar xinzhedeai

Merge branch 'gaoqucodecheck' of...

Merge branch 'gaoqucodecheck' of http://h.gemho.cn:7099/zhaojunbao/gaoquyingjih5-asd into gaoqucodecheck
合并from 杨磊
parents 8b99a8c4 cc003ba0
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
v-for="(imgItem, subIndex) in formData.photos" v-for="(imgItem, subIndex) in formData.photos"
:src="imgItem" :src="imgItem"
alt="" alt=""
@click="showImage(formData.photos, subIndex)"
style="width: 1.4rem; height: 1.4rem; margin-right: 0.2rem" style="width: 1.4rem; height: 1.4rem; margin-right: 0.2rem"
/> />
</div> </div>
......
...@@ -49,6 +49,13 @@ window.addEventListener('load', function () { ...@@ -49,6 +49,13 @@ window.addEventListener('load', function () {
} }
}) })
}, },
showImage(list, index) {
vant.ImagePreview({
images: list,
startPosition: index,
closeable: true,
});
},
}, },
}) })
}) })
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
</van-tabs> </van-tabs>
<!-- 隐患列表 --> <!-- 隐患列表 -->
<van-list> <van-list>
<van-cell v-for="item in filteredHazards" :key="item.id" > <van-cell v-for="item in filteredHazards" :key="item.id" @click="viewDetail(item,'YH_XQ')">
<div style="width: 100%;"> <div style="width: 100%;">
<!-- 第一行:隐患描述 --> <!-- 第一行:隐患描述 -->
<div style=" <div style="
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment