SanHQin 2 月之前
父节点
当前提交
372c5a307e

文件差异内容过多而无法显示
+ 0 - 0
dist/index.html


文件差异内容过多而无法显示
+ 1 - 1
dist/report.html


文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/chunk-2cf7f956.69525fae.css


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.4517ca13.js


文件差异内容过多而无法显示
+ 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
                   // window.location.href = result
                 },
                 },
                 error: function(response) {
                 error: function(response) {
-                  this.close()
-                  this.$nextTick(() => {
+                  that.close()
+                  that.$nextTick(() => {
                     that.$toast(response)
                     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 : '未知错误'))
+            })
           }
           }
         })
         })
       })
       })

部分文件因为文件数量过多而无法显示