123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>文章分享-科袖网</title>
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <link rel="stylesheet" href="../css/reset.css" />
- <link rel="stylesheet" href="../css/common.css" />
- <link rel="stylesheet" href="../css/swiper.min.css" />
- <link rel="stylesheet" href="../css/share.css" />
- <script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
- <script type="text/javascript" src="../js/public/swiper.min.js"></script>
- <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
- <script type="text/javascript" src="../js/public/baseUtil.js"></script>
- <script type="text/javascript" src="../js/public/shareCom.js"></script>
- <script type="text/javascript" src="../js/public/shareLeaveWord.js"></script>
- <script type="text/javascript" src="../js/public/openApp.js"></script>
- <script type="text/javascript">
- addscript("ad_article_h5_a");
- addscript("ad_article_h5_b");
- addscript("ad_article_h5_c");
- </script>
- <style>
- html,body {background: #FFFFFF;}
- </style>
- </head>
- <body>
- <div class="contentBody2">
- <div class="topFu clearfix">
- <div class="topLogo floatL"></div>
- <div class="goSpan floatR">
- <span class="openSpan">打开</span>
- </div>
- </div>
- <div class="showDetail" style="padding-top:56px;">
- <div class="h1Font hWeight" id="articleName"></div>
- <div class="madiaBlock">
- <ul class="mui-table-view noactiveTab">
- <li class="plat">
- <div class="flexCenter clearfix">
- <a id="personAL">
- <div class="madiaHead useHead" id="messImg"></div>
- <div class="madiaInfo">
- <p><span class="h1Font ellipsisSty" id="name"></span><em class="authiconNew" title="" id="auth"></em></p>
- <p class="h3Font" id="oTime"></p>
- </div>
- </a>
- <div class="goSpan">
- <span class="attenSpan">关注</span>
- </div>
- </div>
- </li>
- </ul>
- </div>
-
- <div class="madiaBlock advertItem advertItem-A"></div>
-
- <div class="showMain" id="articleContent">
- </div>
-
- <div class="atachList displayNone">
- 本文章包含的附件内容需登录PC端科袖网进行下载
- </div>
-
- <ul class="tagList displayNone">
-
- <span class="h2Font">金属材料工程与腐</span>
- </li>-->
- </ul>
- <div class="madiaBlock displayNone" id="correlationExpert">
- <div class="madiaTit">相关专家</div>
- <ul class="mui-table-view" id="expertList">
-
- </ul>
- </div>
- <div class="madiaBlock displayNone" id="correlationProduct">
- <div class="madiaTit">相关产品</div>
- <ul class="mui-table-view" id="productList">
-
- </ul>
- </div>
- <div class="madiaBlock displayNone" id="correlationService">
- <div class="madiaTit">相关服务</div>
- <ul class="mui-table-view" id="serviceList">
-
- </ul>
- </div>
- <div class="madiaBlock displayNone" id="resource">
- <div class="madiaTit">相关资源</div>
- <ul class="mui-table-view" id="resourceList">
-
- </ul>
- </div>
- <div class="madiaBlock displayNone" id="correlationCompany">
- <div class="madiaTit">相关企业</div>
- <ul class="mui-table-view" id="companyList">
-
- </ul>
- </div>
-
- <div class="thumbBlock">
- <span class="thumbBtn">赞 <span id="snum"></span></span>
- </div>
-
- <div class="madiaBlock swiper-container advertItem advertItem-B" style="margin:30px 0 10px"></div>
-
- <div class="madiaBlock displayNone" id="article">
- <div class="madiaTit">您可能感兴趣的文章</div>
- <ul class="mui-table-view" id="articleList">
-
- </ul>
- </div>
-
- <div class="madiaBlock displayNone" id="newarticle">
- <div class="madiaTit">最新文章</div>
- <ul class="mui-table-view" id="newarticleList">
-
- </ul>
- </div>
-
- <div class="madiaBlock displayNone">
- <div class="madiaTit" id="olisten">留言</div>
- <ul class="mui-table-view commentBlock commentsArea">
-
- </ul>
- </div>
- </div>
-
- <div class="shareEcode">
-
- <div class="madiaBlock swiper-container advertItem advertItem-C" style="margin:0 9px"></div>
- <img class="Ecodecon" src="../images/ecordCard.jpg" />
- </div>
- </div>
- <script type="text/javascript">
- $(document).ready(function() {
- var imgUrl ="http://www.ekexiu.com/images/logo180.png";
- var lineLink = document.location.href;
- var descContent="";
- var shareTitle;
- var appid = '';
- var articleId = GetQueryString("id");
- module.lWord(articleId,1);
- pageViewLog(articleId,3)
- wlog("article", articleId, '3')
-
- $("#personAL").on("click", function() {
- var reType = this.getAttribute("data-type");
- if(reType=="1"){
- var proId=this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/p.html?id=" + proId;
- }else if(reType=="2"){
- var cmpId=this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/c.html?id=" + cmpId;
- }
- })
- var this_="../html/professorArticle.html?articleId="+articleId;
- wcFresh(this_);
- $("body").on("click",".goSpan,.thumbBtn",function(){
- isInstalled(this_,true);
- $(this).addClass("activeThis");
- })
-
- $("#articleList,#newarticleList").on("click","li", function() {
- var OdataId=this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/a.html?id=" + OdataId;
- })
- $("#resourceList").on("click","li", function() {
- var OdataId=this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/r.html?id=" + OdataId;
- })
- $("#expertList").on("click","li", function() {
- var OdataId=this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/p.html?id=" + OdataId;
- })
- $("#companyList").on("click","li", function() {
- var OdataId=this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/c.html?id=" + OdataId;
-
- })
- $("#productList").on("click","li", function() {
- var OdataId=this.getAttribute("data-id");
- location.href="http://" + window.location.host + "/e/pr.html?id=" + OdataId;
-
- })
- $(".tagList").on("click", "li", function() {
- var keyCon=$(this).find(".h2Font").text();
- location.href="http://" + window.location.host + "/e/search.html?flag=3&key=" + keyCon;
- })
-
-
- var oArticleModule = {
- articleId: GetQueryString("id"),
- oAjaxGet: function(url, obj, oType, oFun) {
- $.ajax(url,{
- data: obj,
- dataType: 'json',
- type: oType,
- timeout: 10000,
- traditional: true,
- success: function(data) {
- if(data.success) {
- oFun(data.data);
- }
- },
- error: function(e) {
- return;
- }
- });
- },
- queryFileAtach:function(){
- oArticleModule.oAjaxGet("/ajax/article/files/byArticleId",{
- "id":oArticleModule.articleId
- }, "get", function(data){
- if(data){
- if(data.length>0){
- document.getElementsByClassName('atachList')[0].style.display='block';
- }
- }
- });
- },
- articleMess: function($data) {
- document.getElementById("articleName").innerHTML = $data.articleTitle;
- shareTitle=$data.articleTitle;
- document.title=$data.articleTitle;
- stt = $data.articleImg.substring(0, 9);
- imgUrl="http://www.ekexiu.com/data/article/" + stt + $data.articleId + "_s.jpg";
- if($data.articleContent) {
- document.getElementById("articleContent").innerHTML = $data.articleContent;
-
- descContent=document.getElementById("articleContent").innerText.substr(0,70);
- }
- if($data.subject) {
- document.getElementsByClassName("tagList")[0].style.display = "block";
- var arr = $data.subject.split(",");
- for(var i in arr) {
- var oLi = document.createElement("li");
- oLi.innerHTML = '<span class="h2Font">' + arr[i] + '</span>'
- document.getElementsByClassName("tagList")[0].appendChild(oLi);
- }
- }
- document.getElementById("snum").innerHTML = $data.articleAgree;
- document.getElementById("oTime").innerHTML = commenTime($data.publishTime);
- document.getElementById("personAL").setAttribute("data-type",$data.articleType);
- if($data.articleType == 1) {
- oArticleModule.oAjaxGet("../ajax/article/ralateArticles", {
- "keys": arr,
- "professorId": oArticleModule.oWner,
- "articleId": oArticleModule.articleId,
- "rows": 5
- }, "get", oArticleModule.correlationArticle);
- document.getElementById("personAL").setAttribute("data-id",$data.ownerId);
- oArticleModule.oAjaxGet("../ajax/professor/editBaseInfo/" + $data.ownerId, "", "get", oArticleModule.professorMess);
- } else if($data.articleType == 2){
- oArticleModule.oAjaxGet("../ajax/article/ralateArticles", {
- "keys": arr,
- "orgId": oArticleModule.oWner,
- "articleId": oArticleModule.articleId,
- "rows": 5
- }, "get", oArticleModule.correlationArticle);
- document.getElementById("personAL").setAttribute("data-id",$data.ownerId);
- oArticleModule.oAjaxGet("../ajax/org/" + $data.ownerId, "", "get", oArticleModule.business);
- }else if($data.articleType == 3){
- oArticleModule.oAjaxGet("../ajax/article/ralateArticles", {
- "keys": arr,
- "orgId": oArticleModule.oWner,
- "articleId": oArticleModule.articleId,
- "rows": 5
- }, "get", oArticleModule.correlationArticle);
- document.getElementById("personAL").setAttribute("data-id",$data.ownerId);
- oArticleModule.oAjaxGet("../ajax/platform/info", {id:$data.ownerId}, "get", oArticleModule.platform);
- }
-
- },
- professorMess: function($data) {
- document.getElementById('name').innerHTML = $data.name;
- if($data.hasHeadImage == 1) {
- document.getElementById("messImg").style.backgroundImage = "url(../images/head/" + $data.id + "_l.jpg" + ")";
- }
- var userType = autho($data.authType, $data.orgAuth, $data.authStatus);
- document.getElementById("auth").classList.add(userType.sty);
-
- },
- business: function($data) {
- if($data.forShort) {
- document.getElementById('name').innerHTML = $data.forShort;
- }else{
- document.getElementById('name').innerHTML = $data.name;
- }
- var mgimg="../images/default-icon.jpg";
- if($data.hasOrgLogo) {
- mgimg="/images/org/" + $data.id + ".jpg";
- }
- document.getElementById("messImg").classList.add("cmpHead2");
- document.getElementById("messImg").innerHTML='<div class="boxBlock"><img class="boxBlockimg" id="companyImg" src="'+ mgimg+'"></div>'
- if($data.authStatus == 3) {
- document.getElementById("auth").classList.add("authicon-com-ok");
- }
- if(!$data.colMgr && !$data.resMgr) {
- oArticleModule.correlationProduct();
- }
- if($data.colMgr) {
- oArticleModule.queryFileAtach();
- }
- },
- platform: function($data) {
- document.getElementById('name').innerHTML = $data.name;
- var mgimg="../images/default-icon.jpg";
- if($data.logo!=null) {
- mgimg="/data/platform" + $data.logo;
- }
- $(".plat").css("cursor","default");
- $(".goSpan").hide();
- document.getElementById("messImg").classList.add("cmpHead2");
- document.getElementById("messImg").innerHTML='<div class="boxBlock"><img class="boxBlockimg" id="companyImg" src="'+ mgimg+'"></div>'
- },
- correlationExpert: function($data) {
- if($data.length == 0) {
- return;
- }
- document.getElementById("correlationExpert").classList.remove("displayNone");
- for(var i = 0; i < $data.length; i++) {
- (function(n) {
- oArticleModule.oAjaxGet("../ajax/professor/editBaseInfo/" + $data[n].professorId, "", "get", oArticleModule.expertList);
- })(i)
-
- }
-
- },
- expertList: function($data) {
- var os = "";
- if($data.title) {
- if($data.orgName) {
- os = $data.title + "," + $data.orgName;
- } else {
- os = $data.title;
- }
- } else {
- if($data.office) {
- if($data.orgName) {
- os = $data.office + "," + $data.orgName;
- } else {
- os = $data.office;
- }
- } else {
- if($data.orgName) {
- os = $data.orgName;
- }
- }
- }
- var baImg = "../images/default-photo.jpg";
- if($data.hasHeadImage == 1) {
- baImg = "/images/head/" + $data.id + "_l.jpg";
- }
- var userType = autho($data.authType, $data.orgAuth, $data.authStatus);
- var li = document.createElement("li");
- li.setAttribute("data-id", $data.id);
- li.innerHTML = '<div class="flexCenter clearfix">' +
- '<div class="madiaHead useHead" style="background-image:url(' + baImg + ')"></div>' +
- '<div class="madiaInfo">' +
- '<p><span class="h1Font">' + $data.name + '</span><em class="authiconNew ' + userType.sty + '"></em></p>' +
- '<p class="ellipsisSty h2Font">' + os + '</p>' +
- '</div>' +
- '</div>'
- document.getElementById("expertList").appendChild(li);
- },
- correlationResource: function($data) {
- if($data.length == 0) {
- return;
- }
- document.getElementById("resource").classList.remove("displayNone");
- for(var i = 0; i < $data.length; i++) {
- oArticleModule.oAjaxGet( "../ajax/resource/queryOne", {
- "resourceId": $data[i].resourceId
- }, "get", oArticleModule.rsourceList);
- }
-
- },
- rsourceList: function($data) {
- var namepo, userType;
- if($data.resourceType == 1) {
- namepo = $data.editProfessor.name;
- userType = autho($data.editProfessor.authType, $data.editProfessor.orgAuth, $data.editProfessor.authStatus);
- } else {
- userType = {};
- if($data.organization.forShort){
- namepo = $data.organization.forShort;
- }else{
- namepo = $data.organization.name;
- }
- if($data.organization.authStatus == 3) {
- userType.sty = "authicon-com-ok"
- }
- }
- var rImg = "../images/default-resource.jpg";
- if($data.images.length>0){
- rImg = "/data/resource/" + $data.images[0].imageSrc;
- }
- var li = document.createElement("li");
- li.setAttribute("data-id", $data.resourceId);
- li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
- ' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
- '<div class="madiaInfo OmadiaInfo">' +
- '<p class="ellipsisSty h1Font">' + $data.resourceName + '</p>' +
- '<p><span class="h2Font">' + namepo + '</span><em class="authiconNew ' + userType.sty + '" title="科袖认证专家"></em></p>' +
-
- '</div>' +
- '</div>'
- document.getElementById("resourceList").appendChild(li);
- },
- correlationService: function() {
- oArticleModule.oAjaxGet("/ajax/ware/byArticle",{
- "id": oArticleModule.articleId,
- "rows":5
- }, "get", function(res){
- var $data=res
- if($data.length == 0) {
- return;
- }
- document.getElementById("correlationService").style.display = "block";
- for(var i = 0; i < $data.length; i++) {
- var cnt="", rImg="../images/default-service.jpg"
- if($data[i].images) {
- var subs = strToAry($data[i].images)
- if(subs.length > 0) {
- rImg="/data/ware" + subs[0]
- }
- }
- if($data.cnt){
- cnt="内容:"+$data.cnt
- }
- var li = document.createElement("li");
- li.setAttribute("data-id",$data[i].id);
- li.className = "mui-table-view-cell";
- li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
- ' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
- '<div class="madiaInfo OmadiaInfo">' +
- '<p class="ellipsisSty-2 h1Font">' + $data[i].name + '</p>' +
- '<p><span class="h2Font ownerName"></span><em class="authiconNew ownerSty"></em></p>' +
-
- '</div>' +
- '</div>'
- document.getElementById("serviceList").appendChild(li);
- var $li=$(li)
- if($data[i].category==1){
- oArticleModule.proSigInfo($data[i].owner,$li)
- }else{
- oArticleModule.orgSigInfo($data[i].owner,$li)
- }
- }
- });
- },
- correlationArticle: function($data) {
- if($data.total) {
- if($data.data.length == 0) {
- return;
- }
- }else{
- if($data.length == 0) {
- return;
- }
- }
- var oo=1;
- if($data.total) {
- var $data=$data.data;
-
- document.getElementById('newarticle').style.display = "block";
- oo=0;
- }else{
- document.getElementById('article').style.display = "block";
-
- }
- for(var i = 0; i < $data.length; i++) {
- var ourl, of ;
- if($data[i].articleType == 1) {
- ourl = "/ajax/professor/editBaseInfo/" + $data[i].ownerId; of = 1;
- } else if($data[i].articleType == 2) {
- ourl = "/ajax/org/" + $data[i].ownerId; of = 2;
- } else if($data[i].articleType == 3) {
- ourl = "/ajax/platform/info"; of = 3;
- }
- var arImg = "../images/default-artical.jpg";
- if($data[i].articleImg) {
- arImg = "/data/article/" + $data[i].articleImg
- }
- var title = $data[i].articleTitle;
- $.ajax({
- url:ourl,
- data:{id:$data[i].ownerId},
- dataType: 'json',
- type: "get",
- timeout: 10000,
- async: false,
- traditional: true,
- success: function(data) {
- if(data.success) {
- var namepo=""
- var li = document.createElement("li");
- if( of == 1) {
- namepo = data.data.name;
- var userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
- li.setAttribute("owner-id", data.data.id);
- li.setAttribute("data-type", 1);
- } else if( of == 2){
- if(data.data.forShort){
- namepo = data.data.forShort;
- }else{
- namepo = data.data.name;
- }
- var userType = {};
- if(data.data.authStatus == 3) {
- userType.sty = 'authicon-com-ok'
- } else {
- userType.sty = "e"
- }
- li.setAttribute("owner-id", data.data.id);
- li.setAttribute("data-type", 2);
- }else if( of == 3){
- namepo = data.data.name;
- li.setAttribute("owner-id", data.data.id);
- li.setAttribute("data-type", 3);
- }
- li.setAttribute("data-id", $data[i].articleId);
- li.className = "mui-table-view-cell";
- li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
- '<div class="madiaHead artHead" style="background-image:url(' + arImg + ')"></div>' +
- '<div class="madiaInfo OmadiaInfo">' +
- '<p class="ellipsisSty-2 h1Font">' + title + '</p>' +
- '<p><span class="h2Font" style="margin-right:10px">'+namepo+'</span><span class="time">'+commenTime($data[i].publishTime)+'</span></p>'+
- '</div>' +
- '</div>'
-
- if(oo==0){
- document.getElementById("newarticleList").appendChild(li)
- }else{
- document.getElementById("articleList").appendChild(li);
- }
- }
- },
- error: function() {
- }
- });
- }
- },
- correlationCompany: function($data) {
- if($data.length == 0) {
- return;
- }
- document.getElementById("correlationCompany").classList.remove("displayNone");
- for(var i = 0; i < $data.length; i++) {
- oArticleModule.oAjaxGet( "../ajax/org/"+ $data[i].orgId, {
-
- }, "get", oArticleModule.companyList);
- }
-
- },
- companyList: function($data) {
- var baImg = "../images/default-icon.jpg";
- if($data.hasHeadImage == 1) {
- baImg = "/images/org/" + $data.id + "_l.jpg";
- }
- var namepo,userType=""
- if($data.authStatus == 3){
- userType= "authicon-com-ok"
- }
- if($data.forShort){
- namepo = $data.forShort;
- }else{
- namepo = $data.name;
- }
-
- var proOther = "";
- if($data.industry) {
- proOther = $data.industry.replace(/,/gi, " | ");
- }
- var li = document.createElement("li");
- li.setAttribute("data-id", $data.id);
- li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
- '<div class="madiaHead cmpHead">'+
- '<div class="boxBlock"><img class="boxBlockimg companyImg" id="oimg" src="'+ baImg +'"></div>'+
- '</div>' +
- '<div class="madiaInfo OmadiaInfo">' +
- '<p><span class="h1Font">' + namepo + '</span><em class="authiconNew ' + userType + '"></em></p>' +
- '<p class="ellipsisSty h2Font">' + proOther + '</p>' +
- '</div>' +
- '</div>'
- document.getElementById("companyList").appendChild(li);
- },
- correlationProduct: function() {
- oArticleModule.oAjaxGet("/ajax/article/product",{
- "id": oArticleModule.articleId,
- "rows":5
- }, "get", function(res){
- var $data=res
- if($data.length == 0) {
- return;
- }
- document.getElementById("correlationProduct").style.display = "block";
- for(var i = 0; i < $data.length; i++) {
- oArticleModule.oAjaxGet("/ajax/product/qo", {
- "id": $data[i].product
- }, "get", oArticleModule.productList);
- }
- });
- },
- productList: function($data) {
- var cnt="", rImg="../images/default-product.jpg"
- if($data.images) {
- var subs = strToAry($data.images)
- if(subs.length > 0) {
- rImg="/data/product" + subs[0]
- }
- }
- if($data.cnt){
- cnt="简介:"+$data.cnt
- }
- var li = document.createElement("li");
- li.setAttribute("data-id",$data.id);
- li.className = "mui-table-view-cell";
- li.innerHTML = '<div class="flexCenter OflexCenter mui-clearfix">' +
- ' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
- '<div class="madiaInfo OmadiaInfo">' +
- '<p class="mui-ellipsis-2 h1Font">' + $data.name + '</p>' +
- '<p><span class="h2Font ownerName"></span><em class="authicon ownerSty"></em></p>' +
- '</div>' +
- '</div>'
- document.getElementById("productList").appendChild(li);
- var $li=$(li)
- oArticleModule.orgSigInfo($data.owner,$li)
- },
- proSigInfo:function(id,$list){
- oArticleModule.oAjaxGet( "/ajax/professor/baseInfo/"+id,{
- }, "get", function(data){
- var datas=data
- var userType = autho(datas.authType, datas.orgAuth, datas.authStatus);
- $list.find(".ownerName").html(datas.name)
- $list.find(".ownerSty").addClass(userType.sty)
- });
- },
- orgSigInfo:function(id,$list){
- oArticleModule.oAjaxGet( "/ajax/org/" + id,{
- }, "get", function(data){
- var datas=data
- var name=datas.name;
- if(datas.forShort){
- name=datas.forShort
- }
- $list.find(".ownerName").html(name)
- if(datas.authStatus == 3){
- $list.find(".ownerSty").addClass("authicon-com-ok")
- }
- });
- }
-
- }
-
- oArticleModule.oAjaxGet("../ajax/article/query", {
- articleId: oArticleModule.articleId
- }, "get", oArticleModule.articleMess);
- oArticleModule.oAjaxGet("../ajax/article/ralatePro", {
- "articleId": oArticleModule.articleId
- }, "get", oArticleModule.correlationExpert);
- oArticleModule.oAjaxGet("../ajax/article/ralateRes", {
- "articleId": oArticleModule.articleId
- }, "get", oArticleModule.correlationResource);
- oArticleModule.oAjaxGet("../ajax/article/ralateOrg", {
- "articleId": oArticleModule.articleId
- }, "get", oArticleModule.correlationCompany);
- oArticleModule.oAjaxGet("/ajax/article/find", {
- "pageSize":5,
- "exclude":oArticleModule.articleId
- }, "get", oArticleModule.correlationArticle);
- oArticleModule.correlationService()
- oArticleModule.correlationProduct()
-
- $.ajax({
- url: "../ajax/weixin/jsapiTicket",
- type: 'get',
- dataType: 'json',
- contentType: "application/x-www-form-urlencoded; charset=utf-8",
- data: {
- 'url': location.href.split('#')[0]
- },
- success: function(data) {
- if(data.data) {
- wx.config({
- debug: false,
- appId: data.data.appId,
- timestamp: data.data.timestamp,
- nonceStr: data.data.nonceStr,
- signature: data.data.signature,
- jsApiList: [
- "onMenuShareAppMessage",
- "onMenuShareTimeline",
- "onMenuShareQQ",
- "onMenuShareQZone",
- "scanQRCode",
- ]
- });
- wx.ready(function() {
-
- wx.onMenuShareAppMessage({
- title: shareTitle,
- desc: descContent,
- link: lineLink,
- imgUrl: imgUrl,
- success: share_success_callback,
- cancel: share_cancel_callback
- });
- wx.onMenuShareTimeline({
- title: shareTitle,
- desc: descContent,
- link: lineLink,
- imgUrl: imgUrl,
- success: share_success_callback,
- cancel: share_cancel_callback
- });
- wx.onMenuShareQQ({
- title: shareTitle,
- desc: descContent,
- link: lineLink,
- imgUrl: imgUrl,
- success: share_success_callback,
- cancel: share_cancel_callback
- });
- wx.onMenuShareQZone({
- title: shareTitle,
- desc: descContent,
- link: lineLink,
- imgUrl: imgUrl,
- success: share_success_callback,
- cancel: share_cancel_callback
- });
- });
-
- function share_success_callback() {}
-
- function share_cancel_callback() {}
- }
- }
- });
- })
- </script>
- </body>
- </html>
|