소스 검색

登录问题处理

zhengkaixin 1 년 전
부모
커밋
44ae2c976e
1개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  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)