Browse Source

资源详情及专家浏览页标志样式

jack 8 years ago
parent
commit
9a794c129d
3 changed files with 18 additions and 16 deletions
  1. 3 6
      js/information.brow.js
  2. 10 5
      js/resourceInfo.js
  3. 5 5
      resourceInfo.html

+ 3 - 6
js/information.brow.js

@ -338,14 +338,11 @@ loginStatus();//读取用户头像
338 338
							} else {
339 339
								if($info.authStatus) {
340 340
									if($info.authentication == 1) {
341
										$(".modify").addClass("authicon2 authicon-mana");
342
										//$(".modify").html("<span>科研</span>");										
341
										$(".modify").addClass("authicon2 authicon-mana").css({"margin-top":"13px"});																			
343 342
									} else if($info.authentication == 2) {
344
										$(".modify").addClass("authicon2 authicon-staff");
345
										//$(".modify").html("<span>企业</span>");										
343
										$(".modify").addClass("authicon2 authicon-staff").css({"margin-top":"13px"});																			
346 344
									} else {
347
										$(".modify").addClass("authicon2 authicon-stu");
348
										//$(".modify").html("<span>学生</span>");										
345
										$(".modify").addClass("authicon2 authicon-stu").css({"margin-top":"13px"});																			
349 346
									}
350 347
								}
351 348
							}

+ 10 - 5
js/resourceInfo.js

@ -104,6 +104,8 @@ $(document).ready(function() {
104 104
								})(i)
105 105

106 106
							}
107
						} else {
108
							$(".resBottom").hide();
107 109
						}
108 110
						$("#nameS").text($info.professor.name);
109 111
						if($info.professor.title) {
@ -130,7 +132,7 @@ $(document).ready(function() {
130 132
							$("#headImg").attr("src", "/images/head/" + $info.professorId + "_l.jpg")
131 133
						}
132 134
						//专家相关资源
133
						relevantResource($info.professorId,$info.resourceId)
135
						relevantResource($info.professorId, $info.resourceId)
134 136
					} else {
135 137
						$.MsgBox.Alert('消息提醒', info.msg);
136 138
					}
@ -199,11 +201,11 @@ $(document).ready(function() {
199 201
					var reId = reid;
200 202
					var j = 0;
201 203
					for(var i = 0; i < $info.length; i++) {
202
						if($info[i].resourceId != reId) {							
204
						if($info[i].resourceId != reId) {
203 205
							var string = ""
204 206
							string += '<li>'
205
							string += '<a class="resoumag" href="resourceInfo.html?resourceId='+$info[i].resourceId+'">'
206
							string += '<div class="ResImgBox beforMargin resourceImgBox">'
207
							string += '<a class="resoumag" href="resourceInfo.html?resourceId=' + $info[i].resourceId + '">'
208
							string += '<div class="ResImgBox resourceImgBox">'
207 209
							if($info[i].images.length) {
208 210
								string += '<img class="resImg headRadius resourceImg" src="/images/resource/' + $info[i].resourceId + '.jpg" />'
209 211
							} else {
@ -214,11 +216,14 @@ $(document).ready(function() {
214 216
							string += '</a>'
215 217
							string += '</li>'
216 218
							j++;
217
							if(j==4){
219
							if(j == 4) {
218 220
								return;
219 221
							}
220 222
							$(".otherRes").append(string);
221 223
						}
224
						if($info.length == 1) {
225
							$("#relaResou").hide()
226
						}
222 227
					}
223 228
				} else {
224 229
					$.MsgBox.Alert("消息", data.msg);

+ 5 - 5
resourceInfo.html

@ -107,14 +107,14 @@
107 107
							<span class="named" id="nameS"></span>
108 108
							<span class="modifyicon authicon authicon-cu" style="margin-top:3px;" id="authFlag"></span>
109 109
						</div>
110
						<p class="h5Font"><span id="title">职称</span><span id="office">,职位</span></p>
111
						<p class="h5Font"><span id="department">所属部门</span></p>
112
						<p class="h5Font"><span id="orgName">所在机构</span></p>
113
						<p class="h6Font" style="margin: 0;" id="address"><span>所在城市</span></p>
110
						<p class="h5Font"><span id="title"></span><span id="office"></span></p>
111
						<p class="h5Font"><span id="department"></span></p>
112
						<p class="h5Font"><span id="orgName"></span></p>
113
						<p class="h6Font" style="margin: 0;" id="address"><span></span></p>
114 114
					</div>
115 115
				</a>
116 116
			</div>
117
			<div class="rightBlock">
117
			<div class="rightBlock" id="relaResou">
118 118
				<div class="left-title" >相关资源</div>
119 119
				<ul class="otherRes">
120 120