增加订单图片预览
This commit is contained in:
parent
ab60413070
commit
466a803253
|
@ -104,7 +104,7 @@
|
|||
<view class="common-form-container">
|
||||
<view class="upload-item">
|
||||
<view class="image-box" v-for="(item, index) in order.images" :key="index">
|
||||
<image class="image" :src="item" mode="aspectFill" />
|
||||
<image class="image" :src="item" mode="aspectFill" @click="previewImage(index)" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -268,9 +268,21 @@ export default {
|
|||
});
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 刷新页面
|
||||
*/
|
||||
refresh() {
|
||||
this.loadDetail();
|
||||
},
|
||||
/**
|
||||
* 预览图片
|
||||
*/
|
||||
previewImage(index) {
|
||||
uni.previewImage({
|
||||
urls: this.order.images,
|
||||
current: index,
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue