|
@ -214,7 +214,7 @@ $(function() {
|
214
|
214
|
//相关资源信息
|
215
|
215
|
function relevantResourcesList(resourceId){
|
216
|
216
|
$.ajax({
|
217
|
|
"url" : "/ajax/resource/resourceInfo",
|
|
217
|
"url" : "/ajax/resource/queryOne",
|
218
|
218
|
"type" : "GET" ,
|
219
|
219
|
"dataType" : "json",
|
220
|
220
|
"data" :{"resourceId":resourceId},
|
|
@ -222,26 +222,34 @@ $(function() {
|
222
|
222
|
console.log(data);
|
223
|
223
|
if (data.success && data.data!=""){
|
224
|
224
|
$("#resources").parent().parent().removeClass("displayNone");
|
225
|
|
var itemlist = '<li>';
|
|
225
|
var itemlist = '<li><a href="" class="flexCenter urlgo">';
|
226
|
226
|
itemlist += '<div class="madiaHead resouseHead" id="userimg"></div>';
|
227
|
227
|
itemlist += '<div class="madiaInfo">';
|
228
|
228
|
itemlist += '<p class="h1Font" id="resourceName"></p>';
|
229
|
229
|
itemlist += '<p class="h2Font ellipsisSty" id="name"></p>';
|
230
|
230
|
itemlist += '<p><span class="h2Font uname"></span><em class="authiconNew" title="科袖认证专家"></em></p>';
|
231
|
|
itemlist += '</div></li>';
|
|
231
|
itemlist += '</div></a></li>';
|
232
|
232
|
$itemlist = $(itemlist);
|
233
|
233
|
$("#resources").append($itemlist);
|
234
|
234
|
var datalist = data.data;
|
235
|
235
|
$itemlist.find("#resourceName").text(datalist.resourceName);
|
236
|
236
|
$itemlist.find("#name").text("用途:"+datalist.supportedServices);
|
237
|
|
$itemlist.find(".uname").text(datalist.editProfessor.name);
|
238
|
237
|
$itemlist.find(".urlgo").attr("href", "resourceShow.html?resourceId="+datalist.resourceId);
|
239
|
|
var userType = autho(datalist.editProfessor.authType, datalist.editProfessor.orgAuth, datalist.editProfessor.authStatus);
|
240
|
|
$itemlist.find(".authiconNew").attr("title", userType.title);
|
241
|
|
$itemlist.find(".authiconNew").addClass(userType.sty);
|
242
|
238
|
if(datalist.images.length > 0) {
|
243
|
239
|
$itemlist.find("#userimg").attr("style", "background-image: url(/data/resource/" + datalist.images[0].imageSrc + ");");
|
244
|
240
|
}
|
|
241
|
if(datalist.resourceType==1){
|
|
242
|
$itemlist.find(".uname").text(datalist.editProfessor.name);
|
|
243
|
var userType = autho(datalist.editProfessor.authType, datalist.editProfessor.orgAuth, datalist.editProfessor.authStatus);
|
|
244
|
$itemlist.find(".authiconNew").attr("title", userType.title);
|
|
245
|
$itemlist.find(".authiconNew").addClass(userType.sty);
|
|
246
|
}
|
|
247
|
if(datalist.resourceType==2){
|
|
248
|
$itemlist.find(".uname").text(datalist.organization.name);
|
|
249
|
if(datalist.organization.authStatus==3){
|
|
250
|
$itemlist.find(".authiconNew").addClass("authicon-com-ok").attr("title", "认证企业");
|
|
251
|
}
|
|
252
|
}
|
245
|
253
|
}
|
246
|
254
|
},
|
247
|
255
|
"error":function(){
|