Browse Source

问题浏览留言

luyanan 7 years ago
parent
commit
55865fd86d
1 changed files with 6 additions and 4 deletions
  1. 6 4
      js/qa-show.js

+ 6 - 4
js/qa-show.js

@ -343,7 +343,7 @@ $(function() {
343 343
					'</div>'+
344 344
					'<div class="operateBlock bottomShow floatL">'+
345 345
	            		'<ul class="clearfix">'+
346
	            			'<li><span>留言</span><span class="leaveMsgCount2"></span><em class="operateicon operateicon2 icon-leavemsg leaveWo"></em></li>'+
346
	            			'<li><span>留言 </span><span class="leaveMsgCount2"></span><em class="operateicon operateicon2 icon-leavemsg leaveWo"></em></li>'+
347 347
	            			'<li class="attention"><span>收藏</span><em class="operateicon operateicon2 icon-collect collectBtn"></em></li>'+
348 348
							'<li>'+
349 349
								'<span>分享到</span>'+
@ -452,10 +452,12 @@ $(function() {
452 452
				id:anid
453 453
			}, "get", function(data) {
454 454
				if(data.success) {
455
					if(data.data.agree > 0) {
456
						$str.find(".agreeCount").css("margin-left","6px")
457
						$str.find(".agreeCount").html(data.data.agree);
455
					if(data.data.agree == 0) {
456
						data.data.agree=""
457
						$str.find(".agreeCount").css("margin-left","0")
458 458
					}
459
					$str.find(".agreeCount").css("margin-left","6px")
460
					$str.find(".agreeCount").html(data.data.agree);
459 461
				}
460 462
			})
461 463
		},