Răsfoiți Sursa

fix(KIP-11965): 【DE】【C端】临时停车。用户无法使用纸质券

john 1 an în urmă
părinte
comite
f0ce051266
1 a modificat fișierele cu 7 adăugiri și 3 ștergeri
  1. 7 3
      src/pages/parkingFeeV2/mixins/parkingFeePaperCoupon.js

+ 7 - 3
src/pages/parkingFeeV2/mixins/parkingFeePaperCoupon.js

@@ -92,6 +92,9 @@ export default {
     },
     // 扫码
    async scanCode() {
+    // const test =  {"resultStr": "9B913361000000020000002139ea2915b7b8515d", "errMsg": "scanQRCode:ok"}
+    // this.getPaperCouponInfo(test.result);
+    // return
       const runScanFn = ( res ) => {
         if ( res.scanType == 'QR_CODE' && res.scanType || (isAlipayClient && res.scanType == 'QR')) {
           console.log(res.result);
@@ -111,7 +114,7 @@ export default {
       };
       // 支付宝小程序
       // const platform = getPlatform();
-      console.log(110);
+      // console.log(110);
       if ( isAlipayClient ) {
         window.toWXSendMsg({
           type: 'scanQRCode',
@@ -121,14 +124,15 @@ export default {
           runScanFn(options.options);
         });
       } else {
-        console.log(120);
+        // console.log(120);
         this.$wx.scanQRCode({
           desc: 'scanQRCode desc',
           needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
           // scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
           success: ( res ) => {
             console.log(237,res);
-            runScanFn(res);
+            // runScanFn(res);
+            this.getPaperCouponInfo(res.result);
             // this.formMsg.deviceCode = res.resultStr;
           },
           error: ( res ) => {