Przeglądaj źródła

只校验手机号

xhj 2 lat temu
rodzic
commit
476032c6a3
2 zmienionych plików z 11 dodań i 11 usunięć
  1. 7 7
      components/to-userinfo/index.vue
  2. 4 4
      mine/userinfo/userinfo.vue

+ 7 - 7
components/to-userinfo/index.vue

@@ -44,14 +44,14 @@
 			getInfo() {
 				let that = this;
 				req.getRequest('/api/user/myInfo', {}, data => {
-					if( !data.avatar) return this.showUserInfoPop = true;
-					if( !data.nickName) return this.showUserInfoPop = true;
-					if( !data.realName) return this.showUserInfoPop = true;
-					if( !data.cardNo) return this.showUserInfoPop = true;
+					// if( !data.avatar) return this.showUserInfoPop = true;
+					// if( !data.nickName) return this.showUserInfoPop = true;
+					// if( !data.realName) return this.showUserInfoPop = true;
+					// if( !data.cardNo) return this.showUserInfoPop = true;
 					if( !data.mobile) return this.showUserInfoPop = true;
-					if( !data.birthday) return this.showUserInfoPop = true;
-					if (!data.district) return this.showUserInfoPop = true;
-					if (!data.areaAdd) return this.showUserInfoPop = true;
+					// if( !data.birthday) return this.showUserInfoPop = true;
+					// if (!data.district) return this.showUserInfoPop = true;
+					// if (!data.areaAdd) return this.showUserInfoPop = true;
 				});
 			},
 			closeUpdate(){

+ 4 - 4
mine/userinfo/userinfo.vue

@@ -271,11 +271,11 @@
 				if(!d.nickName) return req.msg("请填写用户昵称");
 				if(!d.realName) return req.msg("请填写真实姓名");
 				if (!reg.test(d.realName)) return req.msg("请输入正确真实姓名(至少2位汉字)");
-				if(!d.cardNo) return req.msg("请填写身份证号");
+				// if(!d.cardNo) return req.msg("请填写身份证号");
 				if(!d.mobile) return req.msg("请填写手机号");
-				if(!d.birthday) return req.msg("请选择出生日期");
-				if(!d.district) return req.msg("请选择地区");
-				if(!d.address) return req.msg("请填写详细地址");
+				// if(!d.birthday) return req.msg("请选择出生日期");
+				// if(!d.district) return req.msg("请选择地区");
+				// if(!d.address) return req.msg("请填写详细地址");
 				let isShowLoading = false;
 				if (!isShowLoading) {
 					req.loadIng('保存中');