SanHQin 2 月之前
父節點
當前提交
3ad6fbf28c

文件差異過大導致無法顯示
+ 0 - 0
dist/index.html


文件差異過大導致無法顯示
+ 1 - 1
dist/report.html


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/chunk-568700a3.8f5658aa.css


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.65b501af.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/chunk-568700a3.9c4e755a.js


+ 4 - 4
src/views/testDetail/components/punchQRcode.vue

@@ -83,7 +83,7 @@ export default {
       return JSON.parse(JSON.stringify(s))
     },
     sweepBtn() {
-      if (this.isWechatBrowser) {
+      if (!this.isWechatBrowser) {
         this.$refs.weChatQrcodeRef.open()
       } else {
         this.$refs.qrScannerRef.open()
@@ -93,7 +93,7 @@ export default {
       const _valueAndTime = this.extractValueAndTime(result)
 
       if (!_valueAndTime) {
-        if (this.isWechatBrowser) {
+        if (!this.isWechatBrowser) {
           this.$refs.weChatQrcodeRef.close()
         } else {
           this.$refs.qrScannerRef.close()
@@ -118,7 +118,7 @@ export default {
       }
       console.log(_valueAndTime)
       // this.checkJson.answer2 = result;
-      if (this.isWechatBrowser) {
+      if (!this.isWechatBrowser) {
         this.$refs.weChatQrcodeRef.close()
       } else {
         this.$refs.qrScannerRef.close()
@@ -185,7 +185,7 @@ export default {
     // 检查是否在微信浏览器中
     isWechatBrowser() {
       const ua = navigator.userAgent.toLowerCase()
-      return /micromessenger/.test(ua) // 全部转为小写后匹配
+      return ua.indexOf('micromessenger') !== -1
     }
   },
   mounted() {

+ 3 - 3
src/views/testDetail/components/sweep.vue

@@ -83,7 +83,7 @@ export default {
       return JSON.parse(JSON.stringify(s))
     },
     sweepBtn() {
-      if (this.isWechatBrowser) {
+      if (!this.isWechatBrowser) {
         this.$refs.weChatQrcodeRef.open()
       } else {
         this.$refs.qrScannerRef.open()
@@ -91,7 +91,7 @@ export default {
     },
     sweepSuccess(result) {
       this.checkJson.answer2 = result
-      if (this.isWechatBrowser) {
+      if (!this.isWechatBrowser) {
         this.$refs.weChatQrcodeRef.close()
       } else {
         this.$refs.qrScannerRef.close()
@@ -120,7 +120,7 @@ export default {
     // 检查是否在微信浏览器中
     isWechatBrowser() {
       const ua = navigator.userAgent.toLowerCase()
-      return /micromessenger/.test(ua) // 全部转为小写后匹配
+      return ua.indexOf('micromessenger') !== -1
     }
   },
   mounted() {

部分文件因文件數量過多而無法顯示