Explorar el Código

注册页面优化,完善信息页面,地址添加做了判断

xuchunyang %!s(int64=8) %!d(string=hace) años
padre
commit
39de97279c
Se han modificado 4 ficheros con 22 adiciones y 11 borrados
  1. 1 1
      css/login.css
  2. 1 0
      information-add.html
  3. 12 2
      js/information-add.js
  4. 8 8
      js/register.js

+ 1 - 1
css/login.css

170
.agreeNotice,.agreeNotice a{ color:#555; margin-left:4px;}
170
.agreeNotice,.agreeNotice a{ color:#555; margin-left:4px;}
171

171

172
/*验证邮箱跳转页面*/
172
/*验证邮箱跳转页面*/
173
.containerFrm{ width:1024px;  background:#fff; margin:auto; margin-top:35px;min-height:75%; padding:0 25px; padding-bottom:40px; border-radius:10px; }
173
.containerFrm{ width:1024px;  background:#fff; margin:auto; margin-top:35px;min-height:75%; padding:0 25px; padding-bottom:325px; border-radius:10px; }
174
.contentmid{ padding:30px 40px;background: #f8f8f8; width:760px;margin: 5% auto;}
174
.contentmid{ padding:30px 40px;background: #f8f8f8; width:760px;margin: 5% auto;}
175
.mailsection{  margin-bottom: 40px; position: relative; background-color: #fafafa;}
175
.mailsection{  margin-bottom: 40px; position: relative; background-color: #fafafa;}
176
.statelable{ position:relative;  height:60px;}
176
.statelable{ position:relative;  height:60px;}

+ 1 - 0
information-add.html

117
<script type="text/javascript" src="js/jquery.cookie.js"></script>
117
<script type="text/javascript" src="js/jquery.cookie.js"></script>
118
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
118
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>
119
<script type="text/javascript" src="js/city.min.js"></script>
119
<script type="text/javascript" src="js/city.min.js"></script>
120
<script type="text/javascript" src="js/common.js"></script>
120
<script type="text/javascript" src="js/information-add.js"></script>
121
<script type="text/javascript" src="js/information-add.js"></script>
121
<script type="text/javascript">
122
<script type="text/javascript">
122
	$(".IdentityChoice").on("click",".boxnav li",function(){
123
	$(".IdentityChoice").on("click",".boxnav li",function(){

+ 12 - 2
js/information-add.js

49
	$data.title = $("#title").val();//职称
49
	$data.title = $("#title").val();//职称
50
	$data.office = $("#office").val();//职位
50
	$data.office = $("#office").val();//职位
51
	$data.department = $("#department").val();//部门
51
	$data.department = $("#department").val();//部门
52
	$data.province = $("#Province input[name=cho_Province]").val();//省
53
	$data.address = $("#City input[name=cho_City]").val();//市
52
	var province = $("#Province input[name=cho_Province]").val();
53
	var address = $("#City input[name=cho_City]").val();//市
54
	if(province=="请选择省份"){
55
		$data.province = "";
56
	}else{
57
		$data.province = province;//省
58
	}
59
	if(address=="请选择城市"){
60
		$data.address = "";
61
	}else{
62
		$data.address = address;//省
63
	}
54
	$data.id = id;
64
	$data.id = id;
55
	$data.authentication = $(".boxnav li.set span").attr("data-num");//用户角色
65
	$data.authentication = $(".boxnav li.set span").attr("data-num");//用户角色
56
	console.log($data);
66
	console.log($data);

+ 8 - 8
js/register.js

257
			$(".msgphone5").text("");
257
			$(".msgphone5").text("");
258
			setpassagain = true;
258
			setpassagain = true;
259
		} else {
259
		} else {
260
			$(".msgphone5").text("密码错误");
260
			$(".msgphone5").text("两次密码不一致");
261
		}
261
		}
262
	}
262
	}
263

263

297
			dataType: 'json'
297
			dataType: 'json'
298
		});
298
		});
299
	}else{
299
	}else{
300
		$(".msgphone1").text("请输入您的手机号码");
301
		$(".msgphone3").text("请输入您的验证码");
302
		$(".msgphone4").text("请输入您的密码");
303
		$(".msgphone5").text("请再次输入您的密码");
300
		phoneVal();
301
		setPhoneCode();
302
		setPassword();
303
		setPasswordAgain();
304
	}
304
	}
305
});
305
});
306

306

422
			dataType: 'json'
422
			dataType: 'json'
423
		});
423
		});
424
	}else{
424
	}else{
425
		$(".msgema1 span").text("请输入正确是邮箱地址");
426
		$(".msgema2 span").text("密码不能为空");
427
		$(".msgema3 span").text("密码不能为空");
425
		valEmail();
426
		valOld();
427
		valNew();
428
	}
428
	}
429
}
429
}
430

430