Browse Source

工作台资源

jack 7 years ago
parent
commit
8b401c7a90
1 changed files with 2 additions and 2 deletions
  1. 2 2
      js/workindex.js

+ 2 - 2
js/workindex.js

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
						}