瀏覽代碼

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

john 1 年之前
父節點
當前提交
0d02feaf34
共有 2 個文件被更改,包括 7 次插入7 次删除
  1. 4 4
      public/index.html
  2. 3 3
      src/pages/parkingFeeV2/mixins/parkingFeePaperCoupon.js

+ 4 - 4
public/index.html

@@ -42,10 +42,10 @@
     //     }, 200);
     //   });
     // }
-    // if ( /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent) ) {
-    //   // https://developers.weixin.qq.com/community/develop/doc/000ae2cb950808f90d8bc415551800
-    //   window.H5_LAUNCH_URL = location.href;
-    // }
+    if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent) ) {
+      // https://developers.weixin.qq.com/community/develop/doc/000ae2cb950808f90d8bc415551800
+      window.H5_LAUNCH_URL = location.href;
+    }
   </script>
   <script>
       // var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))

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

@@ -130,13 +130,13 @@ export default {
           needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
           // scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
           success: ( res ) => {
-            console.log(237,res);
+            // console.log(237,res);
             // runScanFn(res);
-            this.getPaperCouponInfo(res.result);
+            this.getPaperCouponInfo(res.resultStr);
             // this.formMsg.deviceCode = res.resultStr;
           },
           error: ( res ) => {
-            console.log(242,res);
+            console.log(242, res);
           },
         });
       }