|
@@ -235,7 +235,6 @@
|
|
|
sdkwx.auth(this.appId, this.appSecurity, this.enterpriseSenderCode, this.environment, function(res) {
|
|
|
if (res.type == "onSuccess") {
|
|
|
//成功
|
|
|
-
|
|
|
console.log("授权成功")
|
|
|
console.log(res)
|
|
|
} else if (res.type == "onFailure") {
|
|
@@ -303,11 +302,20 @@
|
|
|
console.log(res)
|
|
|
var errorCode = res.data.errorCode; //错误码
|
|
|
var errorMsg = res.data.errorMsg; //错误描述
|
|
|
+
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: errorMsg
|
|
|
+ })
|
|
|
+ return
|
|
|
that.timer = setTimeout(() => {
|
|
|
console.log("定时")
|
|
|
that.send()
|
|
|
}, 915204);
|
|
|
}
|
|
|
+ // uni.showModal({
|
|
|
+ // content:JSON.stringify(res)
|
|
|
+ // });
|
|
|
});
|
|
|
},
|
|
|
send() { //发送定位
|