|
@ -453,7 +453,7 @@ mui.plusReady(function() {
|
453
|
453
|
/*企业发布文章信息*/
|
454
|
454
|
oArticleModule.oAjaxGet(baseUrl + "/ajax/org/" + oArticleModule.oWner, "", "get", oArticleModule.business);
|
455
|
455
|
document.getElementById('attBtn').style.display = "none";
|
456
|
|
|
|
456
|
companylist();
|
457
|
457
|
} else {
|
458
|
458
|
if(plus.storage.getItem('userid') == oArticleModule.oWner) {
|
459
|
459
|
document.getElementById('attBtn').style.display = "none";
|
|
@ -479,6 +479,69 @@ mui.plusReady(function() {
|
479
|
479
|
oArticleModule.oAjaxGet(baseUrl + "/ajax/article/ralateRes", {
|
480
|
480
|
"articleId": oArticleModule.articleId
|
481
|
481
|
}, "get", oArticleModule.correlationResource);
|
|
482
|
//相关企业
|
|
483
|
function companylist() {
|
|
484
|
mui.ajax(baseUrl+"/ajax/article/ralateOrg",{
|
|
485
|
dataType: 'json', //数据格式类型
|
|
486
|
type: 'GET', //http请求类型
|
|
487
|
data: {
|
|
488
|
"articleId": oArticleModule.articleId,
|
|
489
|
},
|
|
490
|
timeout: 10000, //超时设置
|
|
491
|
success: function(data) {
|
|
492
|
if(data.success) {
|
|
493
|
|
|
494
|
var $data=data.data;
|
|
495
|
if($data.length) {
|
|
496
|
document.getElementById("bus").style.display="block";
|
|
497
|
}
|
|
498
|
for(var i=0;i<$data.length;i++) {
|
|
499
|
angleBus.call($data[i])
|
|
500
|
}
|
|
501
|
}
|
|
502
|
},
|
|
503
|
error: function() {
|
|
504
|
$.MsgBox.Alert('提示', '服务器请求失败')
|
|
505
|
}
|
|
506
|
});
|
|
507
|
}
|
|
508
|
function angleBus() {
|
|
509
|
mui.ajax(baseUrl+"/ajax/org/" +this.orgId,{
|
|
510
|
type: "GET",
|
|
511
|
timeout: 10000,
|
|
512
|
dataType: "json",
|
|
513
|
context: document.getElementById("busList"),
|
|
514
|
success: function(data) {
|
|
515
|
if(data.success) {
|
|
516
|
busfil.call(this,data.data);
|
|
517
|
}
|
|
518
|
},
|
|
519
|
error: function(XMLHttpRequest, textStats, errorThrown) {
|
|
520
|
$.MsgBox.Alert('提示', '服务器请求失败')
|
|
521
|
}
|
|
522
|
})
|
|
523
|
}
|
|
524
|
function busfil($data) {
|
|
525
|
var li = document.createElement("li");
|
|
526
|
li.setAttribute("data-id", $data.id);
|
|
527
|
var oimg = ($data[i].hasOrgLogo) ? baseUrl + "/images/org/" + $data.id + ".jpg" : "../images/default-icon.jpg";
|
|
528
|
var oAuth = ($data.authStatus == 3) ? 'authicon-com-ok' : '';
|
|
529
|
var orgName = ($data.forShort) ? $data.forShort : $data.name;
|
|
530
|
var orgType = ($data.orgType == '2') ? "上市企业" : "";
|
|
531
|
var orgOther = ($data.industry) ? $data.industry.replace(/,/gi, " | ") : "";
|
|
532
|
li.className = "mui-table-view-cell";
|
|
533
|
li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
|
|
534
|
'<div class="madiaHead companyHead">' +
|
|
535
|
'<div class="boxBlock" style="width:88px;height:58px;"><img class="boxBlockimg companyImg" src="' + oimg + '"></div>' +
|
|
536
|
'</div>' +
|
|
537
|
'<div class="madiaInfo OmadiaInfo">' +
|
|
538
|
'<p class="mui-ellipsis h1Font">' + orgName + '<em class="authicon ' + oAuth + '" title="科袖认证企业"></em></p>' +
|
|
539
|
'<p class="mui-ellipsis h2Font"><span id="">' + orgType + '</span> <span id="">' + orgOther + '</span></p>' +
|
|
540
|
'</div>' +
|
|
541
|
'</div>'
|
|
542
|
this.appendChild(li);
|
|
543
|
|
|
544
|
}
|
482
|
545
|
mui('#expertList').on('tap', 'li', function() {
|
483
|
546
|
var id = this.getAttribute("data-id");
|
484
|
547
|
plus.nativeUI.showWaiting(); //显示原生等待框
|