SanHQin 2 月之前
父節點
當前提交
372c5a307e

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 1 - 1
dist/report.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-2cf7f956.69525fae.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.4517ca13.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-2cf7f956.3f077706.js


+ 16 - 2
src/components/weChatQrcode.vue

@@ -37,13 +37,27 @@ export default {
                   // window.location.href = result
                 },
                 error: function(response) {
-                  this.close()
-                  this.$nextTick(() => {
+                  that.close()
+                  that.$nextTick(() => {
                     that.$toast(response)
                   })
+                },
+                fail: function(err) {
+                  // 新增调用失败的处理方法
+                  that.close()
+                  that.$nextTick(() => {
+                    that.$toast('扫码失败: ' + (err && err.errMsg ? err.errMsg : '未知错误'))
+                  })
                 }
               })
             }
+          },
+          fail: function(err) {
+            // checkJsApi 调用失败的处理
+            that.close()
+            that.$nextTick(() => {
+              that.$toast('微信接口调用失败: ' + (err && err.errMsg ? err.errMsg : '未知错误'))
+            })
           }
         })
       })

Some files were not shown because too many files changed in this diff