接单详情增加图片预览
This commit is contained in:
parent
a66bc6a6ce
commit
e3945d058b
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue