|
@@ -58,13 +58,13 @@
|
|
|
<view v-if='item.loadPoundImg'>
|
|
|
<view class="poundtitle">发货磅单</view>
|
|
|
<view class="poundlists">
|
|
|
- <image :src="item.loadPoundImg" mode="" class="poundlist"></image>
|
|
|
+ <image :src="item.loadPoundImg" mode="" @click="ViewImage(item.loadPoundImg)" class="poundlist"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if='item.unloadPoundImg'>
|
|
|
<view class="poundtitle">收货磅单</view>
|
|
|
<view class="poundlists">
|
|
|
- <image :src="item.unloadPoundImg" mode="" class="poundlist"></image>
|
|
|
+ <image :src="item.unloadPoundImg" mode="" @click="ViewImage(item.unloadPoundImg)" class="poundlist"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<button v-if='item.confirmFlag != 3 && item.status == "已送达"' class=" btn btns unload" style="background-color: #22C572; color: #FFFFFF ;width:80%;"
|
|
@@ -250,12 +250,32 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- ViewImage(e) {
|
|
|
- var img = [];
|
|
|
- img.push(e)
|
|
|
- uni.previewImage({
|
|
|
- current: 0,
|
|
|
- urls: img
|
|
|
+ ViewImage(imageUrl) {
|
|
|
+ console.log(imageUrl) // http://192.168.100.251:8970/6_1597822634094.png
|
|
|
+ var images = [];
|
|
|
+ images.push(imageUrl);
|
|
|
+ console.log(images) // ["http://192.168.100.251:8970/6_1597822634094.png"]
|
|
|
+ uni.previewImage({ // 预览图片 图片路径必须是一个数组 => ["http://192.168.100.251:8970/6_1597822634094.png"]
|
|
|
+ current:0,
|
|
|
+ urls:images,
|
|
|
+ longPressActions: { //长按保存图片到相册
|
|
|
+ itemList: ['保存图片'],
|
|
|
+ success: (data)=> {
|
|
|
+ console.log(data);
|
|
|
+ uni.saveImageToPhotosAlbum({ //保存图片到相册
|
|
|
+ filePath: payUrl,
|
|
|
+ success: function () {
|
|
|
+ uni.showToast({icon:'success',title:'保存成功'})
|
|
|
+ },
|
|
|
+ fail: (err) => {
|
|
|
+ uni.showToast({icon:'none',title:'保存失败,请重新尝试'})
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ fail: (err)=> {
|
|
|
+ console.log(err.errMsg);
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
priceInput(e) {
|