接单详情增加图片预览
This commit is contained in:
parent
a66bc6a6ce
commit
e3945d058b
|
@ -41,7 +41,12 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="demand-item">
|
<view class="demand-item">
|
||||||
<view class="demand-images">
|
<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" />
|
<image class="image" :src="item" mode="aspectFill" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -250,6 +255,15 @@ export default {
|
||||||
this.order = order;
|
this.order = order;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 预览图片
|
||||||
|
*/
|
||||||
|
previewImages(list, index) {
|
||||||
|
uni.previewImage({
|
||||||
|
urls: list,
|
||||||
|
current: index,
|
||||||
|
});
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue