|
|
|
|
287
|
|
287
|
|
288
|
function getDataResource() {
|
288
|
function getDataResource() {
|
289
|
$.ajax({
|
289
|
$.ajax({
|
290
|
"url": "/ajax/resource/qapro",
|
|
|
|
|
290
|
"url": "/ajax/resource/qaForDesk",
|
291
|
"type": "get",
|
291
|
"type": "get",
|
292
|
"async": true,
|
292
|
"async": true,
|
293
|
"data": {
|
293
|
"data": {
|
|
|
|
|
317
|
|
317
|
|
318
|
//$('.resoumag').eq(i+1).attr("resourceId",data.data[i].resourceId);
|
318
|
//$('.resoumag').eq(i+1).attr("resourceId",data.data[i].resourceId);
|
319
|
if(data.data[i].images.length) {
|
319
|
if(data.data[i].images.length) {
|
320
|
$add.find(".resourceImg").attr("src", "/images/resource/" + data.data[i].resourceId + ".jpg");
|
|
|
|
|
320
|
$add.find(".resourceImg").attr("src", "/data/resource/" + data.data[i].images[0].imageSrc);
|
321
|
} else {
|
321
|
} else {
|
322
|
$add.find(".resourceImg").attr("src", "/images/default-resource.jpg");
|
322
|
$add.find(".resourceImg").attr("src", "/images/default-resource.jpg");
|
323
|
}
|
323
|
}
|