tianyi 1 day ago
parent
commit
2e30bf671e
  1. 16
      package1/order/orderDetail.vue

16
package1/order/orderDetail.vue

@ -445,7 +445,10 @@
<!-- 核销二维码弹出层 --> <!-- 核销二维码弹出层 -->
<uni-popup ref="imgPopup" background-color="#fff"> <uni-popup ref="imgPopup" background-color="#fff">
<view class="img-popup-content" @tap="$refs.imgPopup.close()"> <view class="img-popup-content" @tap="$refs.imgPopup.close()">
<img :src="codeImg" alt="" style="width: 330rpx;height: 330rpx;margin: 282rpx 0 0 136rpx;border: 20rpx solid rgba(222, 255, 248, 1);border-radius: 20rpx;"> <uqrcode :hide='true' ref="uqrcode" size="160" sizeUnit="rpx" canvas-id="qrcode"
:value="orderDetail.id">
</uqrcode>
<img :src="newQRList" alt="" style="width: 330rpx;height: 330rpx;margin: 282rpx 0 0 136rpx;border: 20rpx solid rgba(222, 255, 248, 1);border-radius: 20rpx;">
</view> </view>
</uni-popup> </uni-popup>
@ -553,6 +556,7 @@
export default { export default {
data() { data() {
return { return {
newQRList:'',
pintuan:false, pintuan:false,
sellTime:2, sellTime:2,
menuButtonInfo: {}, menuButtonInfo: {},
@ -666,7 +670,17 @@
methods: { methods: {
openCode(){ openCode(){
let that = this
this.$refs.imgPopup.open() this.$refs.imgPopup.open()
this.$refs.uqrcode.toTempFilePath({
success: res => {
data.path = res.tempFilePath
that.newQRList = data
},
fail: err => {
}
});
}, },
checkSellTime(type){ checkSellTime(type){
this.sellTime = type; this.sellTime = type;

Loading…
Cancel
Save