订单详情保存图片修改
This commit is contained in:
@@ -18,8 +18,12 @@
|
|||||||
<text>会员享低价</text>
|
<text>会员享低价</text>
|
||||||
<text>长按保存,微信内扫一扫加好友</text>
|
<text>长按保存,微信内扫一扫加好友</text>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- #ifdef MP-WEIXIN -->
|
||||||
<u-image width="152" height="152" radius="16" :src="listinfo.shopQrcode" ></u-image>
|
<u-image width="152" height="152" radius="16" :src="listinfo.shopQrcode" ></u-image>
|
||||||
|
<!-- #endif -->
|
||||||
|
<!-- #ifdef MP-ALIPAY -->
|
||||||
|
<image style="height: 150rpx;width: 150rpx;" :src="listinfo.shopQrcode" @longpress="saveImage(listinfo.shopQrcode)" mode="aspectFill"></image>
|
||||||
|
<!-- #endif -->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<orderInfoAfter ref="orderInfoAfter" :listinfo="listinfo" v-if="listinfo.useType == 'dine-in-after'"></orderInfoAfter>
|
<orderInfoAfter ref="orderInfoAfter" :listinfo="listinfo" v-if="listinfo.useType == 'dine-in-after'"></orderInfoAfter>
|
||||||
@@ -106,7 +110,17 @@
|
|||||||
console.log(e)
|
console.log(e)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
saveImage (url) {
|
||||||
|
uni.saveImage({
|
||||||
|
url: url,
|
||||||
|
success: () => {
|
||||||
|
uni.showToast({
|
||||||
|
title: "保存成功",
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 获取会员信息
|
* 获取会员信息
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user