doum
2026-04-28 b40a03e6cbba769c752d6d8f3b8a8c9af2e50955
small-program/pages/payment-success/payment-success.vue
@@ -18,7 +18,7 @@
         <view class="pickup-card">
            <text class="pickup-title">核销码</text>
            <view class="qrcode-box">
               <canvas canvas-id="qrcodeCanvas" id="qrcodeCanvas" style="width: 100px; height: 100px;"></canvas>
               <canvas canvas-id="qrcodeCanvas" id="qrcodeCanvas" :style="'width: '+width+'px; height:'+height+'px;'"></canvas>
               <image class="qrcode-image" :src="qrcodeImage" mode="widthFix"></image>
            </view>
            <text class="pickup-code">{{ orderDetail.memberVerifyCode }}</text>
@@ -33,7 +33,10 @@
   export default {
      data() {
         return {
            height:100,
            width:100,
            orderId: '',
            orderDetail: null,
            qrcodeImage: ''
@@ -45,6 +48,8 @@
            title: '支付成功'
         })
         this.getOrderDetail()
         this.width = this.rpxToPx(200)
         this.height = this.rpxToPx(200)
      },
      methods: {
         async getOrderDetail() {
@@ -56,12 +61,15 @@
               }
            }
         },
         rpxToPx(rpx) {
           return rpx * wx.getSystemInfoSync().windowWidth / 750
         },
         generateQrcode(code) {
            drawQrcode({
               canvasId: 'qrcodeCanvas',
               text: code,
               width: 100,
               height: 100,
               width: this.width,
               height: this.height,
               correctLevel: 2
            })
            setTimeout(() => {