Ver código fonte

登录问题处理

zhengkaixin 1 ano atrás
pai
commit
44ae2c976e
1 arquivos alterados com 8 adições e 2 exclusões
  1. 8 2
      pages/login/login.vue

+ 8 - 2
pages/login/login.vue

@@ -106,17 +106,23 @@
 					password:this.password,
 					phone:this.phone,
 					openId: this.carhelp.getOpenId(),
-					
+					noerror:true,
 				}).then((response) => {
 					
 					if(response.message){
+						uni.hideLoading();
 						if(response.message=='没有权限'){
-							uni.hideLoading();
+							
 							uni.showModal({
 								title:"提示",
 								showCancel:false,
 								content:"没有权限"
 							})
+						}else{
+							uni.showToast({
+								icon: "none",
+								title: response.message?response.message:"登录失败"
+							})
 						}
 					}else{
 						this.loginset(response)