Browse Source

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

xuchunyang 8 years ago
parent
commit
39de97279c
4 changed files with 22 additions and 11 deletions
  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,7 +170,7 @@ html,body{ cursor:default; margin:0; height:100%;}
170 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 174
.contentmid{ padding:30px 40px;background: #f8f8f8; width:760px;margin: 5% auto;}
175 175
.mailsection{  margin-bottom: 40px; position: relative; background-color: #fafafa;}
176 176
.statelable{ position:relative;  height:60px;}

+ 1 - 0
information-add.html

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

+ 12 - 2
js/information-add.js

@ -49,8 +49,18 @@ $("#saveProfessor").on("click",	function() {
49 49
	$data.title = $("#title").val();//职称
50 50
	$data.office = $("#office").val();//职位
51 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 64
	$data.id = id;
55 65
	$data.authentication = $(".boxnav li.set span").attr("data-num");//用户角色
56 66
	console.log($data);

+ 8 - 8
js/register.js

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

@ -297,10 +297,10 @@ $("#btnn").click(function() {
297 297
			dataType: 'json'
298 298
		});
299 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,9 +422,9 @@ function mailRegistration() {
422 422
			dataType: 'json'
423 423
		});
424 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