增加订单图片预览

This commit is contained in:
TOP糯米 2023-03-26 21:59:03 +08:00
parent ab60413070
commit 466a803253
1 changed files with 13 additions and 1 deletions

View File

@ -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>