Browse Source

文章修改

xuchunyang 7 years ago
parent
commit
adec477c00
2 changed files with 5 additions and 3 deletions
  1. 3 1
      js/articalShow.js
  2. 2 2
      js/workindex.js

+ 3 - 1
js/articalShow.js

351
										console.log($data)
351
										console.log($data)
352
										if ($data.success && $data.data){
352
										if ($data.success && $data.data){
353
											$itemlist.find(".username2").text($data.data.name);
353
											$itemlist.find(".username2").text($data.data.name);
354
											$itemlist.find("#relatedLabels").addClass("authicon-com-ok").attr("title", "认证企业");
354
											if($data.data.authStatus==3){
355
												$itemlist.find("#relatedLabels").addClass("authicon-com-ok").attr("title", "认证企业");
356
											}
355
										}
357
										}
356
									},
358
									},
357
									"error":function(){
359
									"error":function(){

+ 2 - 2
js/workindex.js

339
339
340
	function myNews() {
340
	function myNews() {
341
		$.ajax({
341
		$.ajax({
342
			"url": "/ajax/article/qaPro",
342
			"url": "/ajax/article/qaForDesk",
343
			"type": "get",
343
			"type": "get",
344
			"async": true,
344
			"async": true,
345
			"data": {
345
			"data": {
358
						add += '</a></li>';
358
						add += '</a></li>';
359
						$add = $(add);
359
						$add = $(add);
360
						$("#myNews").append($add);
360
						$("#myNews").append($add);
361
						$add.find('.tagsBox span').text(data.data[i].industry);
361
						$add.find('.tagsBox span').text(data.data[i].subject);
362
						if(data.data[i].articleImg) {
362
						if(data.data[i].articleImg) {
363
							$add.find(".art_img").attr("style", "background: url(/data/article/" + data.data[i].articleImg + ") 0 0 no-repeat;background-size:cover;");
363
							$add.find(".art_img").attr("style", "background: url(/data/article/" + data.data[i].articleImg + ") 0 0 no-repeat;background-size:cover;");
364
						}
364
						}