linwenxin 5 bulan lalu
induk
melakukan
8971a67297
1 mengubah file dengan 4 tambahan dan 6 penghapusan
  1. 4 6
      src/packageWorkorder/pages/orderDetail.vue

+ 4 - 6
src/packageWorkorder/pages/orderDetail.vue

@@ -514,7 +514,7 @@
                 <view class="label">订单备注</view>
                 <view class="value">{{ item.remark }}</view>
               </view>
-
+              <view style="height: 20rpx"></view>
               <view v-if="item.payStatus == 'WAIT'">
                 <u-button text="扫码支付" @click="scanCode(item)">扫码支付</u-button>
               </view>
@@ -855,10 +855,8 @@ export default {
 
     // 扫码
     async scanCode(item) {
-      console.log(item)
-      // detail_zf: null,
-      // orderId_zf: null
-      return
+      this.detail_zf = { ...item }
+      this.orderId_zf = item.orderId
       var codeVal = await wxScanCode(['qrCode'])
       this.submitData(codeVal)
     },
@@ -868,7 +866,7 @@ export default {
       this.$api
         .post('/pay/paid', {
           authCode: code,
-          orderId: this.orderId,
+          orderId: this.orderId_zf,
           payType: 'WECHAT'
         })
         .then(res => {