接单详情增加图片预览

This commit is contained in:
TOP糯米 2023-03-30 22:03:24 +08:00
parent a66bc6a6ce
commit e3945d058b
1 changed files with 15 additions and 1 deletions

View File

@ -41,7 +41,12 @@
</view>
<view class="demand-item">
<view class="demand-images">
<view class="image-box" v-for="(item, index) in order.images" :key="index">
<view
class="image-box"
v-for="(item, index) in order.images"
:key="index"
@click="previewImages(order.images, index)"
>
<image class="image" :src="item" mode="aspectFill" />
</view>
</view>
@ -250,6 +255,15 @@ export default {
this.order = order;
});
},
/**
* 预览图片
*/
previewImages(list, index) {
uni.previewImage({
urls: list,
current: index,
});
},
},
};
</script>