Browse Source

文章图片

luyanan 7 years ago
parent
commit
269e75a1a9
2 changed files with 14 additions and 8 deletions
  1. 1 1
      app/html/cmpInforShow.html
  2. 13 7
      app/js/articleShow.js

+ 1 - 1
app/html/cmpInforShow.html

@ -104,7 +104,7 @@
104 104
				        
105 105
				    </ul>
106 106
				</div>
107
				<div class="seeMore displayNone" id="seeMoreArtical"><em>查看全部<span id="articalNum">0</span>篇</em></div>
107
				<div class="seeMore displayNone" id="seeMoreArtical"><em>查看全部 <span id="articalNum">0</span>篇</em></div>
108 108
			</div>
109 109
			<!--相关文章-->
110 110
			<div class="mui-input-group mainbox displayNone">

+ 13 - 7
app/js/articleShow.js

@ -283,13 +283,16 @@ mui.plusReady(function() {
283 283
				}
284 284
				document.getElementById("correlationService").style.display = "block";
285 285
				for(var i = 0; i < $data.length; i++) {
286
					var rImg="../images/default-service.jpg"
286
					var cnt="", rImg="../images/default-service.jpg"
287 287
					if($data[i].images) {
288 288
						var subs = strToAry($data[i].images)
289 289
						if(subs.length > 0) {
290 290
							rImg=baseUrl+"/data/ware" + subs[0]
291 291
						}
292 292
					}
293
					if($data.cnt){
294
						cnt="内容:"+$data.cnt
295
					}
293 296
					var li = document.createElement("li");
294 297
					li.setAttribute("data-id",$data[i].id);
295 298
					li.className = "mui-table-view-cell";
@ -298,6 +301,7 @@ mui.plusReady(function() {
298 301
						'<div class="madiaInfo OmadiaInfo">' +
299 302
						'<p class="mui-ellipsis-2 h1Font">' + $data[i].name + '</p>' +
300 303
						'<p><span class="h2Font ownerName"></span><em class="authicon ownerSty"></em></p>' +
304
						//'<p class="mui-ellipsis h2Font">' + cnt + '</p>' +
301 305
						'</div>' +
302 306
						'</div>'
303 307
					document.getElementById("serviceList").appendChild(li);
@ -436,20 +440,22 @@ mui.plusReady(function() {
436 440
		proSigInfo:function(id,$list){
437 441
			oArticleModule.oAjaxGet(baseUrl + "/ajax/professor/baseInfo/"+id,{
438 442
			}, "get", function(data){
439
				var userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
440
				$list.find(".ownerName").html(data.data.name)
443
				var datas=data
444
				var userType = autho(datas.authType, datas.orgAuth, datas.authStatus);
445
				$list.find(".ownerName").html(datas.name)
441 446
				$list.find(".ownerSty").addClass(userType.sty)
442 447
			});
443 448
		},
444 449
		orgSigInfo:function(id,$list){
445 450
			oArticleModule.oAjaxGet(baseUrl + "/ajax/org/" + id,{
446 451
			}, "get", function(data){
447
				var name=data.data.name;
448
				if(data.data.forShort){
449
					name=data.data.forShort
452
				var datas=data
453
				var name=datas.name;
454
				if(datas.forShort){
455
					name=datas.forShort
450 456
				}
451 457
				$list.find(".ownerName").html(name)
452
				if(data.data.authStatus == 3){
458
				if(datas.authStatus == 3){
453 459
					$list.find(".ownerSty").addClass("authicon-com-ok")
454 460
				}
455 461
			});