张文飞 3 tahun lalu
induk
melakukan
d37cf1ae7b

+ 5 - 1
components/subComponents/dmLogin.vue

@@ -1,5 +1,5 @@
 <template>
-	<dmDialog ref='popView' :isShowTitle="true" title="登陆" :isShowClose="true" :isShowConfirm="false" >
+	<dmDialog ref='popView' :isShowTitle="true" title="登陆" :isShowClose="true" :isShowConfirm="false" @close='close'>
 		<view class="content">
 			<view class="user_item">
 				<text class="item_name">手机号</text>
@@ -62,6 +62,10 @@
 			show() {
 				this.$refs.popView.show()
 			},
+			close(){
+				this.mobile = "";
+				this.verifity = "";
+			},
 			knowAction(){
 				if(this.timer){
 					clearInterval(this.timer);

+ 1 - 1
pages/homePage/homePage.vue

@@ -248,7 +248,7 @@
 				return reg.test(location.href) ? unescape(RegExp.$2.replace(/\+/g, " ")) : ""
 			},
 			clearToken(){
-				this.$cache.delete('_token_owner_union')
+				
 			},
 			getData(){
 				this.pageNo = 1;

+ 9 - 6
pages/ownerCertification/ownerCertification.vue

@@ -279,12 +279,15 @@
 					})
 					return
 				}
+				
 				if(!this.mobile){
-					uni.showToast({
-						icon:"none",
-						title:"请输入手机号"
-					})
-					return
+					if(!this.mobileOld){
+						uni.showToast({
+							icon:"none",
+							title:"请输入手机号"
+						})
+						return
+					}
 				}
 				
 				if(!this.houseId){
@@ -329,7 +332,7 @@
 						"captcha":this.verifity,
 						"certificateNo": this.certificateNo,
 						"certificateType": this.certificateType,
-						"phone": this.mobile,
+						"phone": this.mobileOld?this.mobileOld:this.mobile,
 						"projectId": this.houseId,
 						"roomNo": this.roomNo,
 						"sex": this.gender,