Browse Source

搜索资源修改

xuchunyang 7 years ago
parent
commit
5ecd86aa6b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/search.js

+ 1 - 1
js/search.js

249
							$("#professorList").append($add);
249
							$("#professorList").append($add);
250
							
250
							
251
							if(data.data.data[i].images.length) {
251
							if(data.data.data[i].images.length) {
252
								$add.find(".resourceImg").attr("src", "/images/resource/" + $da[i].resourceId + ".jpg");
252
								$add.find(".resourceImg").attr("src", "/data/resource/" + $da[i].images[0].imageSrc);
253
							} else {
253
							} else {
254
								$add.find(".resourceImg").attr("src", "/images/default-resource.jpg");
254
								$add.find(".resourceImg").attr("src", "/images/default-resource.jpg");
255
							}
255
							}