发布页增加图片预览
This commit is contained in:
parent
faf69ea970
commit
d8ddbbdecd
|
@ -100,7 +100,7 @@
|
||||||
<view class="upload-item">
|
<view class="upload-item">
|
||||||
<block v-for="(item, index) in uploadImages" :key="index">
|
<block v-for="(item, index) in uploadImages" :key="index">
|
||||||
<view class="image-box">
|
<view class="image-box">
|
||||||
<image class="image" :src="item" mode="aspectFill" />
|
<image class="image" :src="item" mode="aspectFill" @click="previewImage(index)" />
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
|
@ -378,6 +378,15 @@ export default {
|
||||||
}
|
}
|
||||||
this.total = parseFloat(this.price) + temp;
|
this.total = parseFloat(this.price) + temp;
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* 预览图片
|
||||||
|
*/
|
||||||
|
previewImage(index) {
|
||||||
|
uni.previewImage({
|
||||||
|
urls: this.uploadImages,
|
||||||
|
current: index,
|
||||||
|
});
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 发布报价
|
* 发布报价
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue