zhengkaixin преди 1 година
родител
ревизия
90fc90d5fc
променени са 1 файла, в които са добавени 13 реда и са изтрити 3 реда
  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();