portal html css js resource

a.html 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>文章分享-科袖网</title>
  6. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <link rel="stylesheet" href="../css/reset.css" />
  8. <link rel="stylesheet" href="../css/common.css" />
  9. <link rel="stylesheet" href="../css/share.css" />
  10. <script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
  11. <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  12. <script type="text/javascript" src="../js/public/shareCom.js"></script>
  13. <style>
  14. html,body {background: #FFFFFF;}
  15. </style>
  16. </head>
  17. <body>
  18. <div class="contentBody2">
  19. <div class="topFu clearfix">
  20. <div class="topLogo floatL"></div>
  21. <div class="goSpan floatR">
  22. <span class="openSpan">打开</span>
  23. </div>
  24. </div>
  25. <div class="showDetail" style="padding-top:56px;">
  26. <div class="h1Font hWeight" id="articleName"></div>
  27. <div class="madiaBlock">
  28. <ul class="mui-table-view noactiveTab">
  29. <li>
  30. <div class="flexCenter clearfix">
  31. <a id="personAL">
  32. <div class="madiaHead useHead" id="messImg"></div>
  33. <div class="madiaInfo">
  34. <p><span class="h1Font ellipsisSty" style="display:inline-block;max-width:174px;" id="name"></span><em class="authiconNew" style="top:-6px" title="" id="auth"></em></p>
  35. <p class="h3Font" id="oTime"></p>
  36. </div>
  37. </a>
  38. <div class="goSpan">
  39. <span class="attenSpan">关注</span>
  40. </div>
  41. </div>
  42. </li>
  43. </ul>
  44. </div>
  45. <!--文章内容区-->
  46. <div class="showMain" id="articleContent">
  47. </div>
  48. <!--标签模块-->
  49. <ul class="tagList displayNone">
  50. <!--<li>
  51. <span class="h2Font">金属材料工程与腐</span>
  52. </li>-->
  53. </ul>
  54. <div class="madiaBlock displayNone" id="correlationExpert">
  55. <div class="madiaTit">相关专家</div>
  56. <ul class="mui-table-view" id="expertList">
  57. </ul>
  58. </div>
  59. <div class="madiaBlock displayNone" id="resource">
  60. <div class="madiaTit">相关资源</div>
  61. <ul class="mui-table-view" id="resourceList">
  62. </ul>
  63. </div>
  64. <div class="madiaBlock displayNone" id="correlationCompany">
  65. <div class="madiaTit">相关企业</div>
  66. <ul class="mui-table-view" id="companyList">
  67. </ul>
  68. </div>
  69. <!--点赞模块-->
  70. <div class="thumbBlock">
  71. <span class="thumbBtn"><span id="snum"></span></span><!-- thumbedBtn 已赞 201-->
  72. </div>
  73. <!--您可能感兴趣的文章-->
  74. <div class="madiaBlock displayNone" id="article">
  75. <div class="madiaTit">您可能感兴趣的文章</div>
  76. <ul class="mui-table-view" id="articleList">
  77. </ul>
  78. </div>
  79. <!--留言-->
  80. <div class="madiaBlock displayNone">
  81. <div class="madiaTit" id="olisten">留言</div>
  82. <ul class="mui-table-view commentBlock noactiveTab">
  83. </ul>
  84. </div>
  85. </div>
  86. <div class="shareEcode">
  87. <img class="Ecodecon" src="../images/ecordCard.jpg" />
  88. </div>
  89. </div>
  90. <script type="text/javascript">
  91. $(document).ready(function() {
  92. var imgUrl ="http://www.ekexiu.com/images/logo180.png";
  93. var lineLink = document.location.href;
  94. var descContent="";
  95. var shareTitle;
  96. var appid = '';
  97. var articleId = GetQueryString("id");
  98. leword(500, 1);//liuyan
  99. //进入发布者详情页面
  100. $("#personAL").on("click", function() {
  101. var reType = this.getAttribute("data-type");
  102. if(reType=="1"){
  103. var proId=this.getAttribute("data-id");
  104. location.href="http://" + window.location.host + "/e/p.html?id=" + proId;
  105. }else{
  106. var cmpId=this.getAttribute("data-id");
  107. location.href="http://" + window.location.host + "/e/c.html?id=" + cmpId;
  108. }
  109. })
  110. $("body").on("click",".goSpan,.thumbBtn",function(){
  111. location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app";
  112. $(this).addClass("activeThis");
  113. })
  114. $("#articleList").on("click","li", function() {
  115. var OdataId=this.getAttribute("data-id");
  116. location.href="http://" + window.location.host + "/e/a.html?id=" + OdataId;
  117. })
  118. $("#resourceList").on("click","li", function() {
  119. var OdataId=this.getAttribute("data-id");
  120. location.href="http://" + window.location.host + "/e/r.html?id=" + OdataId;
  121. })
  122. $("#expertList").on("click","li", function() {
  123. var OdataId=this.getAttribute("data-id");
  124. location.href="http://" + window.location.host + "/e/p.html?id=" + OdataId;
  125. })
  126. $(".commentBlock").on("click","li>.flexCenter",function(){
  127. var OdataId=this.getAttribute("data-id");
  128. location.href="http://" + window.location.host + "/e/p.html?id=" + OdataId;
  129. })
  130. $("#companyList").on("click","li", function() {
  131. var OdataId=this.getAttribute("data-id");
  132. location.href="http://" + window.location.host + "/e/c.html?id=" + OdataId;
  133. })
  134. var oArticleModule = {
  135. articleId: GetQueryString("id"),
  136. oAjaxGet: function(url, obj, oType, oFun) {
  137. $.ajax(url,{
  138. data: obj,
  139. dataType: 'json', //服务器返回json格式数据
  140. type: oType, //HTTP请求类型
  141. timeout: 10000, //超时时间设置为10秒;
  142. traditional: true,
  143. success: function(data) {
  144. if(data.success) {
  145. oFun(data.data);
  146. }
  147. },
  148. error: function(e) {
  149. return;
  150. }
  151. });
  152. },
  153. articleMess: function($data) {
  154. console.log($data);
  155. document.getElementById("articleName").innerHTML = $data.articleTitle;
  156. shareTitle=$data.articleTitle;
  157. document.title=$data.articleTitle;
  158. stt = $data.articleImg.substring(0, 9);
  159. imgUrl="http://www.ekexiu.com/data/article/" + stt + $data.articleId + "_s.jpg";
  160. console.log(stt)
  161. if($data.articleContent) {
  162. document.getElementById("articleContent").innerHTML = $data.articleContent;
  163. descContent=document.getElementById("articleContent").innerText.substr(0,40);
  164. }
  165. if($data.subject) {
  166. document.getElementsByClassName("tagList")[0].style.display = "block";
  167. var arr = $data.subject.split(",");
  168. for(var i in arr) {
  169. var oLi = document.createElement("li");
  170. oLi.innerHTML = '<span class="h2Font">' + arr[i] + '</span>'
  171. document.getElementsByClassName("tagList")[0].appendChild(oLi);
  172. }
  173. }
  174. document.getElementById("snum").innerHTML = $data.articleAgree;
  175. document.getElementById("oTime").innerHTML = commenTime($data.publishTime);
  176. document.getElementById("personAL").setAttribute("data-type",$data.articleType);
  177. if($data.articleType == 1) {
  178. oArticleModule.oAjaxGet("../ajax/article/ralateArticles", {
  179. "keys": arr,
  180. "professorId": oArticleModule.oWner,
  181. "articleId": oArticleModule.articleId,
  182. "rows": 5
  183. }, "get", oArticleModule.correlationArticle);
  184. document.getElementById("personAL").setAttribute("data-id",$data.professorId);
  185. oArticleModule.oAjaxGet("../ajax/professor/editBaseInfo/" + $data.professorId, "", "get", oArticleModule.professorMess);
  186. } else {
  187. oArticleModule.oAjaxGet("../ajax/article/ralateArticles", {
  188. "keys": arr,
  189. "orgId": oArticleModule.oWner,
  190. "articleId": oArticleModule.articleId,
  191. "rows": 5
  192. }, "get", oArticleModule.correlationArticle);
  193. document.getElementById("personAL").setAttribute("data-id",$data.orgId);
  194. oArticleModule.oAjaxGet("../ajax/org/" + $data.orgId, "", "get", oArticleModule.business);
  195. }
  196. },
  197. professorMess: function($data) {
  198. console.log($data);
  199. document.getElementById('name').innerHTML = $data.name;
  200. if($data.hasHeadImage == 1) {
  201. document.getElementById("messImg").style.backgroundImage = "url(../images/head/" + $data.id + "_l.jpg" + ")";
  202. }
  203. var userType = autho($data.authType, $data.orgAuth, $data.authStatus);
  204. document.getElementById("auth").classList.add(userType.sty);
  205. },
  206. business: function($data) {
  207. if($data.forShort) {
  208. document.getElementById('name').innerHTML = $data.forShort;
  209. }else{
  210. document.getElementById('name').innerHTML = $data.name;
  211. }
  212. var mgimg="../images/default-icon.jpg";
  213. if($data.hasOrgLogo) {
  214. mgimg="/images/org/" + $data.id + ".jpg";
  215. }
  216. document.getElementById("messImg").classList.add("cmpHead");
  217. document.getElementById("messImg").innerHTML='<div class="boxBlock" style="width:50px;height:50px;"><img class="boxBlockimg" id="companyImg" src="'+ mgimg+'"></div>'
  218. if($data.authStatus == 3) {
  219. document.getElementById("auth").classList.add("authicon-com-ok");
  220. }
  221. },
  222. correlationExpert: function($data) {
  223. if($data.length == 0) {
  224. return;
  225. }
  226. document.getElementById("correlationExpert").classList.remove("displayNone");
  227. for(var i = 0; i < $data.length; i++) {
  228. (function(n) {
  229. oArticleModule.oAjaxGet("../ajax/professor/editBaseInfo/" + $data[n].professorId, "", "get", oArticleModule.expertList);
  230. })(i)
  231. }
  232. },
  233. expertList: function($data) {
  234. var os = "";
  235. if($data.title) {
  236. if($data.orgName) {
  237. os = $data.title + "," + $data.orgName;
  238. } else {
  239. os = $data.title;
  240. }
  241. } else {
  242. if($data.office) {
  243. if($data.orgName) {
  244. os = $data.office + "," + $data.orgName;
  245. } else {
  246. os = $data.office;
  247. }
  248. } else {
  249. if($data.orgName) {
  250. os = $data.orgName;
  251. }
  252. }
  253. }
  254. var baImg = "../images/default-photo.jpg";
  255. if($data.hasHeadImage == 1) {
  256. baImg = "/images/head/" + $data.id + "_l.jpg";
  257. }
  258. var userType = autho($data.authType, $data.orgAuth, $data.authStatus);
  259. var li = document.createElement("li");
  260. li.setAttribute("data-id", $data.id);
  261. li.innerHTML = '<div class="flexCenter clearfix">' +
  262. '<div class="madiaHead useHead" style="background-image:url(' + baImg + ')"></div>' +
  263. '<div class="madiaInfo">' +
  264. '<p><span class="h1Font">' + $data.name + '</span><em class="authiconNew ' + userType.sty + '"></em></p>' +
  265. '<p class="ellipsisSty h2Font">' + os + '</p>' +
  266. '</div>' +
  267. '</div>'
  268. document.getElementById("expertList").appendChild(li);
  269. },
  270. correlationResource: function($data) {
  271. console.log($data);
  272. if($data.length == 0) {
  273. return;
  274. }
  275. document.getElementById("resource").classList.remove("displayNone");
  276. for(var i = 0; i < $data.length; i++) {
  277. oArticleModule.oAjaxGet( "../ajax/resource/queryOne", {
  278. "resourceId": $data[i].resourceId
  279. }, "get", oArticleModule.rsourceList);
  280. }
  281. },
  282. rsourceList: function($data) {
  283. var namepo, userType;
  284. if($data.resourceType == 1) {
  285. namepo = $data.editProfessor.name;
  286. userType = autho($data.editProfessor.authType, $data.editProfessor.orgAuth, $data.editProfessor.authStatus);
  287. } else {
  288. userType = {};
  289. if($data.organization.forShort){
  290. namepo = $data.organization.forShort;
  291. }else{
  292. namepo = $data.organization.name;
  293. }
  294. if($data.organization.authStatus == 3) {
  295. userType.sty = "authicon-com-ok"
  296. }
  297. }
  298. var rImg = "/data/resource/" + $data.images[0].imageSrc;
  299. var li = document.createElement("li");
  300. li.setAttribute("data-id", $data.resourceId);
  301. li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
  302. ' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
  303. '<div class="madiaInfo OmadiaInfo">' +
  304. '<p class="ellipsisSty h1Font">' + $data.resourceName + '</p>' +
  305. '<p class="ellipsisSty h2Font">用途:' + $data.supportedServices + '</p>' +
  306. '<p><span class="h2Font">' + namepo + '</span><em class="authiconNew ' + userType.sty + '" title="科袖认证专家"></em></p>' +
  307. '</div>' +
  308. '</div>'
  309. document.getElementById("resourceList").appendChild(li);
  310. },
  311. correlationArticle: function($data) {
  312. if($data.length == 0) {
  313. return;
  314. }
  315. document.getElementById('article').classList.remove("displayNone");
  316. for(var i = 0; i < 5; i++) {
  317. var ourl, of ;
  318. if($data[i].articleType == 1) {
  319. ourl = "/ajax/professor/editBaseInfo/" + $data[i].professorId; of = 1;
  320. } else {
  321. ourl = "/ajax/org/" + $data[i].orgId; of = 2;
  322. }
  323. var arImg = "../images/default-artical.jpg";
  324. if($data[i].articleImg) {
  325. arImg = "/data/article/" + $data[i].articleImg
  326. }
  327. var title = $data[i].articleTitle;
  328. $.ajax({
  329. url:ourl,
  330. dataType: 'json', //服务器返回json格式数据
  331. type: "get", //HTTP请求类型
  332. timeout: 10000, //超时时间设置为10秒;
  333. async: false,
  334. traditional: true,
  335. success: function(data) {
  336. if(data.success) {
  337. var namepo=""
  338. var li = document.createElement("li");
  339. if( of == 1) {
  340. namepo = data.data.name;
  341. var userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
  342. li.setAttribute("owner-id", data.data.id);
  343. li.setAttribute("data-type", 1);
  344. } else {
  345. if(data.data.forShort){
  346. namepo = data.data.forShort;
  347. }else{
  348. namepo = data.data.name;
  349. }
  350. var userType = {};
  351. if(data.data.authStatus == 3) {
  352. userType.sty = 'authicon-com-ok'
  353. } else {
  354. userType.sty = "e"
  355. }
  356. li.setAttribute("owner-id", data.data.id);
  357. li.setAttribute("data-type", 2);
  358. }
  359. li.setAttribute("data-id", $data[i].articleId);
  360. li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
  361. '<div class="madiaHead artHead" style="background-image:url(' + arImg + ')"></div>' +
  362. '<div class="madiaInfo OmadiaInfo">' +
  363. '<p class="ellipsisSty-2 h1Font">' + title + '</p>' +
  364. '<p><span class="h2Font">' + namepo + '</span><em class="authiconNew ' + userType.sty + '" title="科袖认证专家"></em></p>' +
  365. '</div>' +
  366. '</div>'
  367. document.getElementById("articleList").appendChild(li);
  368. }
  369. },
  370. error: function() {
  371. }
  372. });
  373. }
  374. },
  375. correlationCompany: function($data) {
  376. console.log($data);
  377. if($data.length == 0) {
  378. return;
  379. }
  380. document.getElementById("correlationCompany").classList.remove("displayNone");
  381. for(var i = 0; i < $data.length; i++) {
  382. oArticleModule.oAjaxGet( "../ajax/org/"+ $data[i].orgId, {
  383. }, "get", oArticleModule.companyList);
  384. }
  385. },
  386. companyList: function($data) {
  387. var baImg = "../images/default-icon.jpg";
  388. if($data.hasHeadImage == 1) {
  389. baImg = "/images/org/" + $data.id + "_l.jpg";
  390. }
  391. var namepo,userType=""
  392. if($data.authStatus == 3){
  393. userType= "authicon-com-ok"
  394. }
  395. if($data.forShort){
  396. namepo = $data.forShort;
  397. }else{
  398. namepo = $data.name;
  399. }
  400. /*应用行业*/
  401. var proOther = "";
  402. if($data.industry) {
  403. proOther = $data.industry.replace(/,/gi, " | ");
  404. }
  405. var li = document.createElement("li");
  406. li.setAttribute("data-id", $data.id);
  407. li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
  408. '<div class="madiaHead cmpHead">'+
  409. '<div class="boxBlock"><img class="boxBlockimg companyImg" id="oimg" src="'+ baImg +'"></div>'+
  410. '</div>' +
  411. '<div class="madiaInfo OmadiaInfo">' +
  412. '<p><span class="h1Font">' + namepo + '</span><em class="authiconNew ' + userType + '"></em></p>' +
  413. '<p class="ellipsisSty h2Font">' + proOther + '</p>' +
  414. '</div>' +
  415. '</div>'
  416. document.getElementById("companyList").appendChild(li);
  417. }
  418. }
  419. /*文章详细内容*/
  420. oArticleModule.oAjaxGet("../ajax/article/query", {
  421. articleId: oArticleModule.articleId
  422. }, "get", oArticleModule.articleMess);
  423. oArticleModule.oAjaxGet("../ajax/article/ralatePro", {
  424. "articleId": oArticleModule.articleId
  425. }, "get", oArticleModule.correlationExpert);
  426. oArticleModule.oAjaxGet("../ajax/article/ralateRes", {
  427. "articleId": oArticleModule.articleId
  428. }, "get", oArticleModule.correlationResource);
  429. oArticleModule.oAjaxGet("../ajax/article/ralateOrg", {
  430. "articleId": oArticleModule.articleId
  431. }, "get", oArticleModule.correlationCompany);
  432. //留言
  433. function leword(row, aa){
  434. $.ajax({
  435. url:"../ajax/leaveWord/ql",
  436. data: {
  437. "articleId":articleId,
  438. "rows":row },
  439. dataType: 'json', //服务器返回json格式数据
  440. type: 'get', //HTTP请求类型
  441. timeout: 10000, //超时时间设置为10秒;
  442. traditional: true,
  443. success: function(data) {
  444. if(data.success) {
  445. console.log(data)
  446. document.getElementsByClassName('commentBlock')[0].innerHTML = ""
  447. if(data.data.length == 0) {
  448. return;
  449. }
  450. document.getElementById("olisten").parentNode.classList.remove("displayNone");
  451. for(var i = 0; i < data.data.length; i++) {
  452. var oText = ""
  453. var userType = autho(data.data[i].professor.authType, data.data[i].professor.orgAuth, data.data[i].professor.authStatus);
  454. var baImg = "../images/default-photo.jpg";
  455. if(data.data[i].professor.hasHeadImage == 1) {
  456. baImg = "/images/head/" + data.data[i].professor.id + "_l.jpg";
  457. }
  458. var li = document.createElement("li");
  459. li.innerHTML = '<div class="flexCenter clearfix" data-id="' + data.data[i].professor.id + '">' +
  460. '<div class="madiaHead useHead" style="background-image:url(' + baImg + ')"></div>' +
  461. '<div class="madiaInfo">' +
  462. '<p><span class="h1Font" data-id="' + data.data[i].professor.id + '">' + data.data[i].professor.name + '</span><em class="authiconNew ' + userType.sty + '" title="科袖认证专家"></em></p>' +
  463. '</div>' +
  464. '</div>' +
  465. '<div class="madiaInfo">' +
  466. '<p class="h2Font">' + data.data[i].content + '</p>' +
  467. '<p class="operateSpan">' +
  468. '<span class="commenttime">' + commenTime(data.data[i].createTime) + '</span>' +
  469. // '<span data-id="' + data.data[i].id + '" class="dele">' + oText + '</span>' +
  470. '</p>' +
  471. '</div>'
  472. document.getElementsByClassName("commentBlock")[0].appendChild(li);
  473. }
  474. }
  475. },
  476. error: function() {
  477. }
  478. });
  479. }
  480. //浏览量
  481. $.ajax({
  482. "url" : "../ajax/article/pageViews",
  483. "type" : "POST" ,
  484. "dataType" : "json",
  485. "data" :{"articleId":articleId},
  486. "success" : function(data) {
  487. if (data.success){
  488. console.log(data);
  489. }
  490. },
  491. "error":function(){
  492. }
  493. });
  494. /*微信分享*/
  495. $.ajax({
  496. url: "../ajax/weixin/jsapiTicket",
  497. type: 'get',
  498. dataType: 'json',
  499. contentType: "application/x-www-form-urlencoded; charset=utf-8",
  500. data: {
  501. 'url': location.href.split('#')[0]
  502. },
  503. success: function(data) {
  504. if(data.data) {
  505. wx.config({
  506. debug: false, //调试模式好犀利
  507. appId: data.data.appId,
  508. timestamp: data.data.timestamp,
  509. nonceStr: data.data.nonceStr,
  510. signature: data.data.signature,
  511. jsApiList: [ // 所有要调用的 API 都要加到这个列表中
  512. "onMenuShareAppMessage",
  513. "onMenuShareTimeline",
  514. "onMenuShareQQ",
  515. "onMenuShareQZone",
  516. "scanQRCode",
  517. ]
  518. });
  519. wx.ready(function() {
  520. // 在这里调用 API
  521. wx.onMenuShareAppMessage({ //分享给朋友
  522. title: shareTitle, // 分享标题
  523. desc: descContent, // 分享描述
  524. link: lineLink, // 分享链接
  525. imgUrl: imgUrl, // 分享图标
  526. success: share_success_callback,
  527. cancel: share_cancel_callback
  528. });
  529. wx.onMenuShareTimeline({ //分享到朋友圈
  530. title: shareTitle, // 分享标题
  531. desc: descContent, // 分享描述
  532. link: lineLink, // 分享链接
  533. imgUrl: imgUrl, // 分享图标
  534. success: share_success_callback,
  535. cancel: share_cancel_callback
  536. });
  537. wx.onMenuShareQQ({ //分享到QQ
  538. title: shareTitle, // 分享标题
  539. desc: descContent, // 分享描述
  540. link: lineLink, // 分享链接
  541. imgUrl: imgUrl, // 分享图标
  542. success: share_success_callback,
  543. cancel: share_cancel_callback
  544. });
  545. wx.onMenuShareQZone({ //分享到QQ空间
  546. title: shareTitle, // 分享标题
  547. desc: descContent, // 分享描述
  548. link: lineLink, // 分享链接
  549. imgUrl: imgUrl, // 分享图标
  550. success: share_success_callback,
  551. cancel: share_cancel_callback
  552. });
  553. });
  554. //分享成功后的回调函数
  555. function share_success_callback() {}
  556. //用户取消分享后执行的回调函数
  557. function share_cancel_callback() {}
  558. }
  559. }
  560. });
  561. })
  562. </script>
  563. </body>
  564. </html>