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
							} else {
338
							} else {
339
								if($info.authStatus) {
339
								if($info.authStatus) {
340
									if($info.authentication == 1) {
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
									} else if($info.authentication == 2) {
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
									} else {
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
								})(i)
104
								})(i)
105

105

106
							}
106
							}
107
						} else {
108
							$(".resBottom").hide();
107
						}
109
						}
108
						$("#nameS").text($info.professor.name);
110
						$("#nameS").text($info.professor.name);
109
						if($info.professor.title) {
111
						if($info.professor.title) {
130
							$("#headImg").attr("src", "/images/head/" + $info.professorId + "_l.jpg")
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
					} else {
136
					} else {
135
						$.MsgBox.Alert('消息提醒', info.msg);
137
						$.MsgBox.Alert('消息提醒', info.msg);
136
					}
138
					}
199
					var reId = reid;
201
					var reId = reid;
200
					var j = 0;
202
					var j = 0;
201
					for(var i = 0; i < $info.length; i++) {
203
					for(var i = 0; i < $info.length; i++) {
202
						if($info[i].resourceId != reId) {							
204
						if($info[i].resourceId != reId) {
203
							var string = ""
205
							var string = ""
204
							string += '<li>'
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
							if($info[i].images.length) {
209
							if($info[i].images.length) {
208
								string += '<img class="resImg headRadius resourceImg" src="/images/resource/' + $info[i].resourceId + '.jpg" />'
210
								string += '<img class="resImg headRadius resourceImg" src="/images/resource/' + $info[i].resourceId + '.jpg" />'
209
							} else {
211
							} else {
214
							string += '</a>'
216
							string += '</a>'
215
							string += '</li>'
217
							string += '</li>'
216
							j++;
218
							j++;
217
							if(j==4){
219
							if(j == 4) {
218
								return;
220
								return;
219
							}
221
							}
220
							$(".otherRes").append(string);
222
							$(".otherRes").append(string);
221
						}
223
						}
224
						if($info.length == 1) {
225
							$("#relaResou").hide()
226
						}
222
					}
227
					}
223
				} else {
228
				} else {
224
					$.MsgBox.Alert("消息", data.msg);
229
					$.MsgBox.Alert("消息", data.msg);

+ 5 - 5
resourceInfo.html

107
							<span class="named" id="nameS"></span>
107
							<span class="named" id="nameS"></span>
108
							<span class="modifyicon authicon authicon-cu" style="margin-top:3px;" id="authFlag"></span>
108
							<span class="modifyicon authicon authicon-cu" style="margin-top:3px;" id="authFlag"></span>
109
						</div>
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
					</div>
114
					</div>
115
				</a>
115
				</a>
116
			</div>
116
			</div>
117
			<div class="rightBlock">
117
			<div class="rightBlock" id="relaResou">
118
				<div class="left-title" >相关资源</div>
118
				<div class="left-title" >相关资源</div>
119
				<ul class="otherRes">
119
				<ul class="otherRes">
120
					
120