zhongtianhaoyuan 2 년 전
부모
커밋
9aba439168
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      pages/order/confirmLoading.vue

+ 9 - 1
pages/order/confirmLoading.vue

@@ -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() { //发送定位