jack 7 years ago
parent
commit
0676719ae2
1 changed files with 18 additions and 5 deletions
  1. 18 5
      js/articalShow.js

+ 18 - 5
js/articalShow.js

186
						itemlist += '</div></a></li>';
186
						itemlist += '</div></a></li>';
187
						$itemlist = $(itemlist);
187
						$itemlist = $(itemlist);
188
						$("#relevantExperts").append($itemlist);
188
						$("#relevantExperts").append($itemlist);
189
						var title = data.data.title || "";
190
						var office = data.data.office || "";
191
						if(title != "") {
192
							 title = title  + " , ";
189
						if(data.data.title) {
190
							if(data.data.department) {
191
								$itemlist.find("#usertitle").text(data.data.title +" , "+ data.data.department);
192
							}else{
193
								$itemlist.find("#usertitle").text(data.data.title);
194
							}
195
						}else{
196
							if(data.data.office) {
197
								if(data.data.department) {
198
									$itemlist.find("#usertitle").text(data.data.office +" , "+ data.data.department);
199
								}else{
200
									$itemlist.find("#usertitle").text(data.data.office);
201
								}
202
							}else{
203
								if(data.data.department) {
204
									$itemlist.find("#usertitle").text(data.data.department);
205
								}
206
							}
193
						}
207
						}
194
						$itemlist.find("#userName").text(data.data.name);
208
						$itemlist.find("#userName").text(data.data.name);
195
						$itemlist.find("#usertitle").text(title + office);
196
						$itemlist.find(".urlgo").attr("href", "information-brow.html?professorId="+data.data.id);
209
						$itemlist.find(".urlgo").attr("href", "information-brow.html?professorId="+data.data.id);
197
						/*获取研究方向信息*/
210
						/*获取研究方向信息*/
198
						var researchAreas = data.data.researchAreas;
211
						var researchAreas = data.data.researchAreas;