Ver Fonte

优化处理

zhengkaixin há 1 ano atrás
pai
commit
90fc90d5fc
1 ficheiros alterados com 13 adições e 3 exclusões
  1. 13 3
      pages/login/login.vue

+ 13 - 3
pages/login/login.vue

@@ -66,9 +66,19 @@
 					openId: this.carhelp.getOpenId(),
 					
 				}).then((response) => {
-					this.loginset(response)
-					
-				
+					if(response.message){
+						uni.hideLoading();
+						if(response.message=='没有权限'){
+							
+							uni.showModal({
+								title:"提示",
+								showCancel:false,
+								content:"没有权限"
+							})
+						}
+					}else{
+						this.loginset(response)
+					}
 				}).catch(error => {
 					uni.hideLoading();