|
@@ -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 : '未知错误'))
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|