Ver Código Fonte

注册页面样式修改以及相关消息提示

luyanan 8 anos atrás
pai
commit
2613f0eb08

+ 9 - 6
src/main/webapp/css/login.css

@ -149,9 +149,9 @@ html,body{ cursor:default; margin:0; height:100%;}
149 149
.regtabcon{ overflow:hidden;}
150 150
.phone, .mail {float: left;padding: 16px 20px;font-size: 16px; cursor:pointer;}
151 151
.phone span, .mail span { position: relative;top:0;left: 10px;}
152
.styleline{height: 1px;width: 154px;background: #ff9900; position: relative;}
153
.styleline:before {position: absolute;z-index: 2; top: -12px;left: 50%;margin-left: -5px;content: '';width: 0;height: 0;line-height: 0; border: 6px solid transparent;border-bottom-color: #ff9900;}
154
.styleline:after {position: absolute; z-index: 2;top: -9px; left: 50%;margin-left: -4px; content: '';width: 0; height: 0;line-height: 0; border: 5px solid transparent;border-bottom-color: #fff;}
152
.styleline{height: 1px;width: 120px;background: #ff9900; position: relative;}
153
.styleline:before {position: absolute;z-index: 2; top: -10px;left: 50%;margin-left: -5px;content: '';width: 0;height: 0;line-height: 0; border: 6px solid transparent;border-bottom-color: #ff9900;}
154
.styleline:after {position: absolute; z-index: 2;top: -8px; left: 50%;margin-left: -4px; content: '';width: 0; height: 0;line-height: 0; border: 5px solid transparent;border-bottom-color: #fff;}
155 155

156 156
.regtablist{ margin:20px 0; min-height:240px;}
157 157
.regtablist form{ margin:10px 0; display:none; }
@ -193,20 +193,23 @@ html,body{ cursor:default; margin:0; height:100%;}
193 193
.vercompleted .verbtnbox a{ float:left; margin:0 20px; padding:8px 30px;  border-radius:10px;background:#ff9900; color:#fff;}
194 194

195 195
/*完善信息页面*/
196

197 196
.basicinforbox{  margin-bottom: 20px; padding:20px; position: relative; background: rgba(255,132,0,.8); border-radius:20px;}
198 197
.basicinfor{ position:relative; width:420px; background:#fff; padding:40px; margin:40px auto;border-radius:20px;}
199 198
.basicinfor h3{font-weight: 400; font-size:24px; margin-top:60px;line-height:40px; text-align:center; }
200 199
.basicinfor table{ margin: 20px;width:360px;}
201 200
.basicinfor table tr td{ padding:4px 2px;}
201
.basicinfor .inforAdd_tab tr td{padding: 4px 2px;width: 70px;float: left;}
202
.basicinfor .inforAdd_tab tr td:first-child{ line-height: 48px;}
203
.basicinfor .inforAdd_tab tr td .required_star{ top:12px;}
202 204
.basictype{ font-weight:normal; text-align:right;}
203
.basiccon{ padding:0 10px; width:100%; position:relative; min-width:240px;}
205
.basiccon{ padding:0 10px; width:100%; position:relative; min-width:308px;}
204 206
.basiccon .requiredcon{ color:red; position:absolute;font-size:16px; top:0; right:-10px;}
205 207
.basicinfor table .basicmsgbox td{padding:0; margin:0;}
208
.basicinfor .inforAdd_tab .basicmsgbox td:first-child{width: 78px;height: 10px;}
206 209
.basicmsg{ clear:both;font-size:14px;line-height:18px; color:red; padding-left:20px; background:url(../images/info_warn.png) 0 center no-repeat; }
207 210
.basicinfor .default-photo{ width:160px; height:160px; border-radius:50%; position:absolute; top:10px; left:50%; margin-left:-82px; background:url(../images/default-photo.jpg) center center; overflow:hidden; border:4px #c9c9c9 solid;}
208 211
.basicinfor .default-photo a{ position:absolute; bottom:0; display:block; background:url(../images/take-photo.png) center center no-repeat rgba(0,0,0,.4); width:100%; height:50%; z-index:4;}
209
.txtgo{width: 86%;height: 40px;line-height: 40px;}
212
.txtgo{width: 100%;height: 40px;line-height: 40px;}
210 213
.infolist .liststyle .txtgo{height:40px;line-height:40px;width:143px;text-indent: 0.2em;background:#fafafa;}
211 214
.infolist .liststyle span .mr_show2{width:143px;height:40px;line-height:40px;}
212 215
.infolist .liststyle span .mr_sj2{right:10px;top:18px;}

+ 8 - 0
src/main/webapp/css/workspace.css

@ -152,6 +152,7 @@
152 152
.workhandle span{ padding:2px 20px;border:1px #d7d7d7 solid;margin: 2px;}
153 153
.workhandle .complain{display:none;}/* 更多操作按钮... */
154 154
.workhandle .coultstate{/* background: #ff9900; position: relative;top:-10px;right: 20px; padding: 10px 30px; border-radius: 0 0 6px 6px; box-shadow: 1px 1px 2px 1px #ccc; z-index: 20; */color: #fff;border-radius: 6px 0 0 6px;}
155
.workhandle .coultstate i{font-style: normal;}
155 156
.workhandle .status-1{background:#FF9900;border: solid 1px #FF9900;}/*进行中*//*咨询状态*/
156 157
.workhandle .status-2{background:#dd524d;border: solid 1px #dd524d;}/*待评价*/
157 158
.workhandle .status-3{background:#03CE30;border: solid 1px #03CE30;}/*已完成*/
@ -281,6 +282,13 @@
281 282
	line-height:80px;
282 283
	cursor:pointer;
283 284
}
285
.dialog_sj{
286
	position: absolute;
287
	right: -16px;
288
    top: 6px;
289
	border: 6px solid #fff;
290
	border-color: #ff9900 transparent transparent;
291
	display: block;font-size: 0;height: 0;width: 0;}
284 292
285 293
.inline {
286 294
	display:inline-block;

+ 8 - 8
src/main/webapp/diloags.html

@ -9,18 +9,18 @@
9 9
        <div class="dialogcontain">
10 10
        	<div class="dialoginfo">
11 11
                <div class="dialoginfotype inline">
12
	                <span class="dialogtit" id="">咨询主题:</span>
13
	                <span id="dialog_consultTitle"></span>
12
	                <span id="">咨询主题:</span>
13
	                <span class="dialogtit" id="dialog_consultTitle"></span>
14 14
                </div>
15 15
                <div class="dialoginfotype inline">
16
                	<span class="dialogtit" id="">咨询类型:</span>
17
                	<span id="dialog_consultType"></span>
16
                	<span id="">咨询类型:</span>
17
                	<span class="dialogtit" id="dialog_consultType"></span>
18 18
                </div>
19 19
                <div class="dialoginfotype" id="dialog_consultContentContainer">
20 20
                
21
                	<div class="dialogtit" id="dialog_consultContentTitle">咨询内容:</div>
22
                	<div id="dialog_consultContent"></div>
23
                	<div id="dialog_switch">展开</div>
21
                	<div id="dialog_consultContentTitle">咨询内容:</div>
22
                	<div class="dialogtit" id="dialog_consultContent"></div>
23
                	<div id="dialog_switch"><span style="position:relative;">展开<em class="dialog_sj"></em></span></div>
24 24
                	
25 25
                </div>
26 26
                <div class="dialoginfotype dialogbtnbox">
@ -51,7 +51,7 @@
51 51
	                	</div>	
52 52
	                	<div class="displayNone" id="dialog_assessContent">
53 53
	                		评价内容:
54
	                		<span id="dialog_assessContentText" ></span>
54
	                		<span class="dialogtit" id="dialog_assessContentText" ></span>
55 55
	                	</div>
56 56
	                	<div class="thankbox  evamargin displayNone" id="dialog_thanks">
57 57
		                	感谢金额

+ 5 - 5
src/main/webapp/information-add.html

@ -28,19 +28,19 @@
28 28
            	<!--默认头像!-->
29 29
				<div class="default-photo"><a href="photo-set.html"></a></div>
30 30
            	<h3>请填写个人信息</h3>
31
            	<table>
31
            	<table class="inforAdd_tab">
32 32
                	<tr>
33 33
                    	<td><div class="txtType basictype"><b class="required_star"></b><em class="emspace">姓</em>名</div></td>
34 34
                        <td><div class="basiccon"><input type="text" class="inputtxt txtgo" id="name"></div></td>
35 35
                    </tr>
36 36
                    
37
                    <tr class="basicmsgbox"><th></th><td><div class="basiccon"><div class="basicmsg basicmsg1"></div></div></td></tr>   
37
                    <tr class="basicmsgbox"><td></td><td><div class="basiccon"><div class="basicmsg basicmsg1"></div></div></td></tr>   
38 38
                    <tr>
39 39
                    	<td><div class="txtType basictype"><b class="required_star"></b>所在机构</div></td>
40 40
                        <td><div class="basiccon"><input type="text" class="inputtxt txtgo" id="orgName"></div></td>
41 41
                    </tr>
42 42
                   
43
                     <tr class="basicmsgbox"><th></th><td><div class="basiccon"><div class="basicmsg basicmsg2"></div></div></td></tr>   
43
                     <tr class="basicmsgbox"><td></td><td><div class="basiccon"><div class="basicmsg basicmsg2"></div></div></td></tr>   
44 44
                    <tr>
45 45
                    	<td><div class="basictype">所属部门</div></td>
46 46
                        <td><div class="basiccon"><input type="text" class="inputtxt txtgo" id="department"></div></td>
@ -88,8 +88,8 @@
88 88
                    
89 89
                    <tr>
90 90
                    	<td colspan="2">
91
                            <div class="addrebtn" style="text-align:center;">
92
                                <input type="button" value="保存" class="inputtxt txtgo submitBtn" style="width:90%;" id="saveProfessor">
91
                            <div class="addrebtn" style="text-align:center;width: 392px;">
92
                                <input type="button" value="保存" class="inputtxt txtgo submitBtn" id="saveProfessor">
93 93
                           </div>
94 94
                        </td>
95 95
                    </tr>

+ 13 - 13
src/main/webapp/js/account-set.js

@ -142,14 +142,14 @@ $(function(){
142 142

143 143
						if(data.success){
144 144
							if(data.data == true){
145
								$.MsgBox.Alert("消息","设置成功,请重新登录");
145
								$.MsgBox.Alert("消息提醒","设置成功,请重新登录");
146 146
								/*location.href="login.html";*/
147 147
							}else{
148 148

149
								$.MsgBox.Alert("消息","设置失败,请检查密码是否正确!");
149
								$.MsgBox.Alert("消息提醒","设置失败,请检查密码是否正确!");
150 150
							}
151 151
						}else{
152
							$.MsgBox.Alert("消息","系统异常!");
152
							$.MsgBox.Alert("消息提醒","系统异常!");
153 153
							// alert("系统异常!");
154 154
						}
155 155
					},
@ -199,10 +199,10 @@ $(function(){
199 199
				type:"get",
200 200
				async: true,
201 201
				success:function(data){ 
202
					 $.MsgBox.Alert('消息','邮箱绑定成功')
202
					 $.MsgBox.Alert('消息提醒','邮箱绑定成功')
203 203
				},
204 204
				error:function(){
205
				   $.MsgBox.Alert('消息','邮箱绑定失败')
205
				   $.MsgBox.Alert('消息提醒','邮箱绑定失败')
206 206
				},
207 207
				data:{},			
208 208
			 	dataType: 'json'}
@ -221,16 +221,16 @@ $(function(){
221 221
						//console.log(data);
222 222
						if(data.success){
223 223
							if(data.data == true){
224
							//	$.MsgBox.Alert("消息","请检查邮件,设置成功后请重新登录!");
224
							//	$.MsgBox.Alert("消息提醒","请检查邮件,设置成功后请重新登录!");
225 225
								$.cookie('userEmail',email); 
226 226
								var mailVal =$('.act-color').attr("href");  
227 227
								location.href=mailVal;
228 228
							}else{
229 229
								/*alert("邮箱设置失败");*/
230
								$.MsgBox.Alert("消息","邮箱已经绑定!");
230
								$.MsgBox.Alert("消息提醒","邮箱已经绑定!");
231 231
							}
232 232
						}else{
233
							$.MsgBox.Alert("消息","系统异常!");
233
							$.MsgBox.Alert("消息提醒","系统异常!");
234 234
							// alert("系统异常!");
235 235
						}
236 236
					},
@ -296,11 +296,11 @@ $(function(){
296 296
								$(".msg13").text("发送成功,请检查手机验证码");
297 297
								/*alert("发送成功,请检查手机验证码");*/
298 298
								phoneState = data.data;
299
								$.MsgBox.Alert("消息","设置错误!");
299
								$.MsgBox.Alert("消息提醒","设置错误!");
300 300
							}
301 301
						}else{
302 302

303
							$.MsgBox.Alert("消息","系统异常!");
303
							$.MsgBox.Alert("消息提醒","系统异常!");
304 304
							// alert("系统异常!");
305 305
						}
306 306
					},
@ -328,13 +328,13 @@ $(function(){
328 328
						if(data.success){
329 329
							/*alert(2);*/
330 330
							if(data.data == true){
331
								$.MsgBox.Alert("消息","绑定成功请重新登录!");
331
								$.MsgBox.Alert("消息提醒","绑定成功请重新登录!");
332 332
								location.href="login.html";
333 333
							}else{
334
								$.MsgBox.Alert("消息","绑定失败,请检查验证码是否正确");
334
								$.MsgBox.Alert("消息提醒","绑定失败,请检查验证码是否正确");
335 335
							}
336 336
						}else{
337
							$.MsgBox.Alert("消息","系统异常!");
337
							$.MsgBox.Alert("消息提醒","系统异常!");
338 338
							// alert("系统异常!");
339 339
						}
340 340
					},

+ 3 - 3
src/main/webapp/js/bind-mail.js

@ -18,7 +18,7 @@ if(mailCode!=''){
18 18
			   $('#completedcover').show(); 
19 19
			},
20 20
			error:function(){
21
			   $.MsgBox.Alert('消息','邮箱注册失败')
21
			   $.MsgBox.Alert('消息提醒','邮箱注册失败')
22 22
			},
23 23
			data:{"mail":mailVal,"userId":userId},			
24 24
		 	dataType: 'json'}
@ -55,10 +55,10 @@ function emailResend()
55 55
			type:"GET",
56 56
			success:function(data){
57 57
			   // console.log(data);  
58
				$.MsgBox.Alert('消息','验证邮件重新发送成功,点击登录邮箱验证')
58
				$.MsgBox.Alert('消息提醒','验证邮件重新发送成功,点击登录邮箱验证')
59 59
			},
60 60
			error:function(){
61
				$.MsgBox.Alert('消息','邮箱发送失败')
61
				$.MsgBox.Alert('消息提醒','邮箱发送失败')
62 62
			},
63 63
			data:{"mail":mailVal},		
64 64
		 	dataType: 'json'}

+ 6 - 6
src/main/webapp/js/common.js

@ -310,16 +310,16 @@ function sendConsultHandler(professorId){
310 310
	};
311 311
	
312 312
	if(consult_type == '' || consult_title == '' || consult_content == ''){
313
		$.MsgBox.Alert("message","请填写完整");
313
		$.MsgBox.Alert("消息提醒","请填写完整");
314 314
	};
315 315
	if(consult_type == ''){
316
		$.MsgBox.Alert("消息","请选择联系目的");
316
		$.MsgBox.Alert("消息提醒","请选择联系目的");
317 317
	}
318 318
	if(consult_title == ''){
319
		$.MsgBox.Alert("消息","请填写咨询目的");
319
		$.MsgBox.Alert("消息提醒","请填写咨询目的");
320 320
	}
321 321
	if(consult_content == ''){
322
		$.MsgBox.Alert("消息","请填写咨询内容");
322
		$.MsgBox.Alert("消息提醒","请填写咨询内容");
323 323
	}
324 324
	
325 325
	if(userid && userid != null && userid != "null" && consult_type != '' &&
@ -337,14 +337,14 @@ function sendConsultHandler(professorId){
337 337
				console.log(response);
338 338
			},
339 339
			"error":function (){
340
				$.MsgBox.Alert("消息","咨询申请失败");
340
				$.MsgBox.Alert("消息提醒","咨询申请失败");
341 341
			},
342 342
			
343 343
			"complete":function(){
344 344
				//$(".consultapply").remove();
345 345
				$(".blackcover").remove();
346 346
				$("body").css("position","static");
347
				$.MsgBox.Alert("消息","咨询申请成功");
347
				$.MsgBox.Alert("消息提醒","咨询申请成功");
348 348
			},
349 349
		});
350 350
	}

+ 1 - 1
src/main/webapp/js/jquery.similar.msgbox.js

@ -45,7 +45,7 @@
45 45
        $("#mb_ico").css({ display: 'block', position: 'absolute', right: '10px', top: '8px',
46 46
        	background:'url(../images/workclose.png) center center no-repeat', width: '24px', height: '24px',cursor: 'pointer'
47 47
        });
48
        $("#mb_btnbox").css({ margin: '15px 0 10px 0', textAlign: 'center' });
48
        $("#mb_btnbox").css({ margin: '15px 0 10px 0', textAlign: 'center', position:'relative' });
49 49
        $("#mb_btn_ok,#mb_btn_no").css({ width: '84px', fontSize: '14px', height: '30px', color: 'white', border: 'none' });
50 50
        $("#mb_btn_ok").css({backgroundImage:'none', padding:'0',margin:'0', backgroundColor: '#ff8400',borderRadius: '10px',fontFamily: 'Microsoft Yahei,Hiragino Sans GB, PingFang SC,Helvetica Neue,WenQuanYi Micro Hei,sans-serif'});
51 51
        $("#mb_btn_no").css({backgroundImage:'none', padding:'0',margin:'0', backgroundColor: 'gray', marginLeft: '20px',borderRadius: '10px',fontFamily: 'Microsoft Yahei,Hiragino Sans GB, PingFang SC,Helvetica Neue,WenQuanYi Micro Hei,sans-serif' });

+ 1 - 1
src/main/webapp/js/register.js

@ -36,7 +36,7 @@ $(".mail").click(function(){
36 36
  $(".phone").find("img").attr("src","images/phoneIcon.png");
37 37
  $(".phone").removeClass("active");
38 38
  $(this).addClass("active");
39
  $(".styleline").animate({left:"151px"});
39
  $(".styleline").animate({left:"121px"});
40 40
  $("#phone_form").hide();
41 41
  $("#mail_form").show();
42 42
});

+ 22 - 12
src/main/webapp/js/search.js

@ -277,11 +277,19 @@ $(function(){
277 277
 						}
278 278
 						 else
279 279
 						 {
280
 							$.MsgBox.Alert("message","请登录");
280
 							$.MsgBox.Alert("消息提醒","请登录再进行咨询");
281
 							$("#mb_btn_ok").val("去登录");
282
 							
281 283
 						}
282 284
 						
283
 						//资源中点击咨询
284
						$(".consultbtn").bind("click",clickResouceConsultHandler);
285
 						//资源中点击咨询
286
						//$(".consultbtn").bind("click",clickResouceConsultHandler);
287
						$(".about").on("click",'.consultbtn',function(e){
288
							e.stopPropagation();//阻止事件冒泡,影响点击咨询
289
							e.cancelBubble = true;// ie下阻止冒泡
290
							clickResouceConsultHandler();
291
							
292
						});
285 293
 					},				
286 294
 				});	
287 295
 			}
@ -590,7 +598,7 @@ $(function(){
590 598
															});
591 599
											limitHeight();
592 600
										} else {
593
											$.MsgBox.Alert('message', "系统异常!");
601
											$.MsgBox.Alert('消息提醒', "系统异常!");
594 602
										}
595 603
									},
596 604
									"error" : function() {
@ -610,7 +618,7 @@ $(function(){
610 618
							$(".frmtype option")[0].value = data.data.name;
611 619
							$(".frmtype option")[1].value = data.data.organization.name;
612 620
						} else {
613
							$.MsgBox.Alert("消息", "系统异常!");
621
							$.MsgBox.Alert("消息提醒", "系统异常!");
614 622
						}
615 623
					},
616 624
					"error" : function() {
@ -706,7 +714,7 @@ $(function(){
706 714
															if (rdata.success) {
707 715
																$.MsgBox
708 716
																		.Alert(
709
																				'message',
717
																				'消息提醒',
710 718
																				'资源"'
711 719
																						+ resName
712 720
																						+ '"申请发送成功!');
@ -720,7 +728,7 @@ $(function(){
720 728
															} else {
721 729
																$.MsgBox
722 730
																		.Alert(
723
																				'message',
731
																				'消息提醒',
724 732
																				'资源"'
725 733
																						+ resName
726 734
																						+ '"申请发送失败,请重新申请!');
@ -748,16 +756,17 @@ $(function(){
748 756
			concultProInfo(professorId);
749 757
			
750 758
		}else {
751
			$.MsgBox.Alert("message","请登录");
759
			$.MsgBox.Alert("消息提醒","请登录再进行咨询");
760
			$("#mb_btn_ok").val("去登录");
752 761
			var aele = document.createElement('a');
753 762
			$("#mb_btnbox").append(aele);
754 763
			$("#mb_btnbox a").css({
755 764
				'display':"block",
756 765
				'width':'100%',
757 766
				'height':'40px',
758
				'position':'relative',
759
				'bottom':'40px',
760
				'left':0
767
				'position':'absolute',
768
				'bottom':'-6px',
769
				'left':'0'
761 770
				});
762 771
			aele.setAttribute('href', '../login.html');
763 772
		}
@ -790,7 +799,8 @@ $(function(){
790 799
			concultProInfo(professorId);
791 800
					
792 801
		}else {
793
			$.MsgBox.Alert("message","请登录");
802
			$.MsgBox.Alert("消息提醒","请登录再进行咨询");
803
			$("#mb_btn_ok").val("去登录");
794 804
			var aele = document.createElement('a');
795 805
			$("#mb_btnbox").append(aele);
796 806
			$("#mb_btnbox a").css({