portal html css js resource

s.html 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  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. <style>
  11. html,
  12. body {
  13. margin: 0;
  14. padding: 0px;
  15. background: #FFFFFF;
  16. }
  17. </style>
  18. <script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
  19. <script type="text/javascript" src="../js/public/swiper.min.js"></script>
  20. <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  21. <script type="text/javascript" src="../js/public/baseUtil.js"></script>
  22. <script type="text/javascript" src="../js/public/shareCom.js"></script>
  23. <script type="text/javascript" src="../js/public/openApp.js"></script>
  24. </head>
  25. <body>
  26. <div class="contentBody2">
  27. <!--焦点图 start-->
  28. <div data-editor="topslider">
  29. <div id="index-container">
  30. <ul class="swiper-wrapper">
  31. <!--<li class="swiper-slide"><a class="tab-re"><img src="../images/banner/banner01.jpg" /></a></li>-->
  32. </ul>
  33. <div class="swiper-pagination" id="index-pagination"></div>
  34. </div>
  35. </div>
  36. <div class="showDetail">
  37. <div class="h1Font hWeight" id="resourceName"></div>
  38. <div class="showFont" id="application"></div>
  39. <div class="madiaBlock">
  40. <ul class="mui-table-view noactiveTab infoBlock">
  41. <li class="mui-table-view-cell">
  42. <div class="flexCenter mui-clearfix">
  43. <a id="thisInfo">
  44. <div class="madiaHead" id="thisPic"></div>
  45. <div class="madiaInfo" style="padding-right: 80px;">
  46. <p><span class="h1Font ellipsisSty" id="thisName"></span><em class="authiconNew" title="" id="authFlag"></em></p>
  47. <p class="h3Font ellipsisSty" id="thisOther"></p>
  48. </div>
  49. </a>
  50. <div class="goSpan">
  51. <span class="attenSpan">关注</span>
  52. </div>
  53. </div>
  54. </li>
  55. </ul>
  56. </div>
  57. <!--内容区-->
  58. <div class="showMain showRes">
  59. <ul>
  60. <li>
  61. <div class="showTit">合作备注</div>
  62. <div class="showCon" id="remarkContent"></div>
  63. </li>
  64. <li id="articleContent">
  65. <div class="showTit">详细介绍</div>
  66. <div class="showCon" id="detailDescp"></div>
  67. </li>
  68. </ul>
  69. </div>
  70. <!--标签模块-->
  71. <ul class="tagList">
  72. <!--<li>
  73. <span class="h2Font"></span>
  74. </li>-->
  75. </ul>
  76. <div class="madiaBlock displayNone" id="resource">
  77. <div class="madiaTit">相关资源</div>
  78. <ul class="mui-table-view" id="resourceList">
  79. </ul>
  80. </div>
  81. <!-- <div class="madiaBlock displayNone">
  82. <div class="madiaTit">相关文章</div>
  83. <ul class="mui-table-view" id="likeArtical">
  84. </ul>
  85. </div> -->
  86. <!--您可能感兴趣的资源-->
  87. <div class="madiaBlock displayNone">
  88. <div class="madiaTit">您可能感兴趣的服务</div>
  89. <ul class="mui-table-view" id="likeResource">
  90. </ul>
  91. </div>
  92. </div>
  93. <div class="shareEcode">
  94. <img class="Ecodecon" src="../images/ecordCard.jpg" />
  95. <div class="Ecodeinfo">
  96. <a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app"><button class="frmbtn frmactive">下载移动客户端</button></a>
  97. </div>
  98. </div>
  99. </div>
  100. <script type="text/javascript">
  101. $(document).ready(function() {
  102. var imgUrl = "http://www.ekexiu.com/images/logo180.png";
  103. var lineLink = document.location.href;
  104. var descContent;
  105. var shareTitle;
  106. var appid = '';
  107. var serviceId = GetQueryString("id");
  108. var othisInfo = document.getElementById("thisInfo"); //用户/企业信息
  109. var othisName = document.getElementById("thisName"); //专家名称
  110. var othisOther = document.getElementById("thisOther"); //专家职称/职位
  111. var oauthFlag = document.getElementById("authFlag"); //专家认证
  112. var othisPic = document.getElementById("thisPic"); //专家头像
  113. var oresorcePic = document.getElementById("resorcePic"); //资源图片
  114. var oresourceName = document.getElementById("resourceName"); //资源名称
  115. var oapplication = document.getElementById("application"); //应用用途
  116. var oremarkContent = document.getElementById("remarkContent"); //合作备注
  117. var odetailDescp = document.getElementById("detailDescp"); //详细描述
  118. getRecourceMe(); /*获取信息*/
  119. relatedArticles(); /*相关文章信息*/
  120. interestingResources();
  121. pageViewLog(serviceId, 10);
  122. //进入发布者详情页面
  123. $("#thisInfo").on("click", function() {
  124. var reType = this.getAttribute("data-type");
  125. if(reType == "1") {
  126. var proId = this.getAttribute("data-id");
  127. location.href = "http://" + window.location.host + "/e/p.html?id=" + proId;
  128. } else if(reType == "2"){
  129. var cmpId = this.getAttribute("data-id");
  130. location.href = "http://" + window.location.host + "/e/c.html?id=" + cmpId;
  131. }
  132. })
  133. var this_ = "../html/serviceIdShow.html?serviceId=" + serviceId;
  134. wcFresh(this_);
  135. $("body").on("click", ".goSpan", function() {
  136. isInstalled(this_, true);
  137. $(this).addClass("activeThis");
  138. })
  139. function ajaxRequist(url, obj, type, fn) {
  140. $.ajax({
  141. url: url,
  142. data: obj,
  143. dataType: 'json', //服务器返回json格式数据
  144. type: type, //支持'GET'和'POST'
  145. traditional: true,
  146. success: function(data) {
  147. if(data.success) {
  148. fn(data)
  149. }
  150. },
  151. error: function(xhr, type, errorThrown) {}
  152. });
  153. }
  154. //相关资源
  155. seresource()
  156. function seresource() {
  157. $.ajax({
  158. "url": "/ajax/ware/res",
  159. "type": "GET",
  160. "data": {
  161. "id": serviceId
  162. },
  163. "traditional": true,
  164. 'dataType': "json",
  165. "success": function(data) {
  166. if(data.success) {
  167. if(data.data.length == 0) {
  168. return;
  169. }
  170. document.getElementById("resource").classList.remove("displayNone");
  171. for(var i = 0; i < data.data.length; i++) {
  172. (function(n) {
  173. ajaxRequist("/ajax/resource/queryOne", {
  174. "resourceId": data.data[n].resource
  175. }, "get", function(data) {
  176. sevrResource(data.data);
  177. })
  178. })(i)
  179. }
  180. }
  181. },
  182. 'error': function() {
  183. }
  184. });
  185. }
  186. function sevrResource($data) {
  187. var namepo, userType;
  188. if($data.resourceType == 1) {
  189. namepo = $data.editProfessor.name;
  190. userType = autho($data.editProfessor.authType, $data.editProfessor.orgAuth, $data.editProfessor.authStatus);
  191. } else {
  192. userType = {};
  193. if($data.organization.forShort) {
  194. namepo = $data.organization.forShort;
  195. } else {
  196. namepo = $data.organization.name;
  197. }
  198. if($data.organization.authStatus == 3) {
  199. userType.sty = "authicon-com-ok"
  200. }
  201. }
  202. var rImg = "../images/default-resource.jpg";
  203. if($data.images.length > 0) {
  204. rImg = "/data/resource/" + $data.images[0].imageSrc;
  205. }
  206. var li = document.createElement("li");
  207. li.setAttribute("data-id", $data.resourceId);
  208. li.innerHTML = '<div class="flexCenter OflexCenter clearfix">' +
  209. ' <div class="madiaHead resouseHead" style="background-image:url(' + rImg + ')"></div>' +
  210. '<div class="madiaInfo OmadiaInfo">' +
  211. '<p class="ellipsisSty h1Font">' + $data.resourceName + '</p>' +
  212. '<p><span class="h2Font">' + namepo + '</span><em class="authiconNew ' + userType.sty + '" title="科袖认证专家"></em></p>' +
  213. '<p class="ellipsisSty-2 h2Font">用途:' + $data.supportedServices + '</p>' +
  214. '</div>' +
  215. '</div>'
  216. document.getElementById("resourceList").appendChild(li);
  217. }
  218. function getRecourceMe() {
  219. $.ajax({
  220. url: '/ajax/ware/qo',
  221. data: {
  222. 'id': serviceId,
  223. },
  224. dataType: 'json', //服务器返回json格式数据
  225. type: 'get', //HTTP请求类型
  226. timeout: 10000, //超时时间设置为10秒;
  227. success: function(data) {
  228. if(data.success) {
  229. var $data = data.data;
  230. var resourceName = $data.name;
  231. document.title = resourceName;
  232. oresourceName.innerHTML = resourceName;
  233. if($data.cnt)
  234. oapplication.innerHTML = "内容:" + $data.cnt;
  235. //微信再次分享配置
  236. shareTitle = oresourceName.innerHTML;
  237. descContent = oapplication.innerHTML;
  238. if($data.category == 1) {
  239. ajaxRequist("/ajax/professor/baseInfo/" + $data.owner, {}, "get", function(data) {
  240. var mydata = {};
  241. mydata.editProfessor = data.data;
  242. othisInfo.setAttribute("data-id", mydata.editProfessor.id);
  243. othisInfo.setAttribute("data-type",mydata.category);
  244. professorId = othisInfo.getAttribute("data-id");
  245. //用户个人信息
  246. othisName.innerHTML = mydata.editProfessor.name;
  247. var otitleInfo = "";
  248. var oOrgInfo = "";
  249. if(mydata.editProfessor.title) {
  250. otitleInfo = mydata.editProfessor.title + ",";
  251. } else {
  252. if(mydata.editProfessor.office) {
  253. otitleInfo = mydata.editProfessor.office + ",";
  254. } else {
  255. otitleInfo = "";
  256. }
  257. }
  258. if(mydata.editProfessor.orgName) {
  259. oOrgInfo = mydata.editProfessor.orgName;
  260. }
  261. othisOther.innerHTML = otitleInfo + oOrgInfo;
  262. var professorFlag = autho(mydata.editProfessor.authType, mydata.editProfessor.orgAuth, mydata.editProfessor.authStatus);
  263. oauthFlag.classList.add(professorFlag.sty);
  264. othisPic.classList.add("useHead");
  265. if(mydata.editProfessor.hasHeadImage == 1) {
  266. othisPic.style.backgroundImage = 'url(../images/head/' + mydata.editProfessor.id + '_l.jpg)';
  267. }
  268. })
  269. } else {
  270. ajaxRequist("/ajax/org/" + $data.owner, {}, "get", function(data) {
  271. var mydata = {};
  272. mydata.organization = data.data;
  273. othisInfo.setAttribute("data-id", mydata.organization.id);
  274. othisInfo.setAttribute("data-status", mydata.organization.authStatus);
  275. othisInfo.setAttribute("data-type", mydata.category);
  276. if(mydata.organization.forShort) {
  277. othisName.innerHTML = mydata.organization.forShort;
  278. } else {
  279. othisName.innerHTML = mydata.organization.name;
  280. }
  281. if(mydata.organization.subject) {
  282. othisOther.innerHTML = (mydata.organization.subject).replace(/,/, " | ");
  283. }
  284. var mgimg = "../images/default-icon.jpg";
  285. if(mydata.organization.hasOrgLogo) {
  286. mgimg = "/images/org/" + mydata.organization.id + ".jpg";
  287. }
  288. othisPic.classList.add("cmpHead2");
  289. othisPic.innerHTML = '<div class="boxBlock"><img class="boxBlockimg" id="companyImg" src="' + mgimg + '"></div>'
  290. if(mydata.organization.authStatus == 3) {
  291. oauthFlag.classList.add("authicon-com-ok");
  292. }
  293. })
  294. }
  295. if($data.cooperation) { //合作备注
  296. oremarkContent.innerHTML = $data.cooperation;
  297. oremarkContent.parentNode.style.display = "block";
  298. }
  299. if($data.descp) { //详细描述
  300. odetailDescp.innerHTML = $data.descp;
  301. odetailDescp.parentNode.style.display = "block";
  302. }
  303. if($data.keywords) {
  304. var oSub = $data.keywords.split(",");
  305. var oSt = "";
  306. for(var i = 0; i < oSub.length; i++) {
  307. oSt += '<li><p class="h2Font">' + oSub[i] + '</p></li>'
  308. }
  309. $(".tagList").html(oSt);
  310. }
  311. if($data.images) {
  312. if($data.images.split(",").length != 0) {
  313. imgUrl = "http://www.ekexiu.com/data/ware/" + $data.images.split(",")[0].replace(/\.(jpg|jpeg|png)$/, "_s.jpg");
  314. var rPdiv = '';
  315. for(var i = 0; i < $data.images.split(",").length; i++) {
  316. rPdiv += '<li class="swiper-slide"><a class="tab-re"><img src="../data/ware/' + $data.images.split(",")[i] + '" /></a></li>'
  317. }
  318. $("#index-container ul").append(rPdiv);
  319. //轮换图片滚动
  320. var swiper = new Swiper('#index-container', {
  321. pagination: '#index-pagination',
  322. slidesPerView: 1,
  323. paginationClickable: true,
  324. loop: true,
  325. autoplay: 5000,
  326. autoplayDisableOnInteraction: false
  327. });
  328. }
  329. } else {
  330. $("#index-container").parent().hide();
  331. }
  332. }
  333. },
  334. error: function(e) {
  335. return;
  336. }
  337. });
  338. }
  339. /*资源里面相关文章*/
  340. function relatedArticles() {
  341. $.ajax({
  342. url: '/ajax/article/lq/byWare',
  343. type: "GET",
  344. data: {
  345. "ware": serviceId,
  346. "rows": 5
  347. },
  348. dataType: "json",
  349. success: function(data) {
  350. if(data.success) {
  351. if(data.data.length == 0) {
  352. return;
  353. }
  354. // document.getElementById("likeArtical").parentNode.classList.remove("displayNone");
  355. var $html = data.data;
  356. for(var i = 0; i < $html.length; i++) {
  357. (function(n) {
  358. var oURL;
  359. if($html[i].articleType == 1) {
  360. oURL = "/ajax/professor/baseInfo/" + $html[i].ownerId;
  361. } else if($html[i].articleType == 2){
  362. oURL = "/ajax/org/" + $html[i].ownerId;
  363. } else if($html[i].articleType == 3){
  364. oURL = "/ajax/platform/info" + $html[i].ownerId;
  365. }
  366. $.ajax({
  367. url: oURL,
  368. data:{id:$html[i].ownerId},
  369. type: "GET",
  370. dataType: "json",
  371. success: function(data) {
  372. if(data.success) {
  373. var likeRUl = document.getElementById("likeArtical");
  374. var likeRli = document.createElement("li");
  375. likeRli.className = 'mui-table-view-cell';
  376. likeRli.setAttribute("data-id", $html[n].articleId);
  377. var comName = "";
  378. if($html[n].articleType == 1) {
  379. var stl = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
  380. comName = data.data.name;
  381. likeRli.setAttribute("data-type", 1);
  382. } else if($html[n].articleType == 2) {
  383. var stl = {};
  384. stl.sty = "";
  385. stl.title = "";
  386. if(data.data.authStatus == 3) {
  387. stl.sty = "authicon-com-ok";
  388. stl.title = "认证企业";
  389. }
  390. if(data.data.forShort) {
  391. comName = data.data.forShort;
  392. } else {
  393. comName = data.data.name;
  394. }
  395. likeRli.setAttribute("data-type", 2);
  396. } else if($html[n].articleType == 3) {
  397. var stl = {};
  398. stl.sty = "";
  399. stl.title = "";
  400. comName = data.data.name;
  401. likeRli.setAttribute("data-type", 3);
  402. }
  403. var str = ""
  404. str += '<div class="flexCenter OflexCenter mui-clearfix">'
  405. if($html[n].articleImg) {
  406. str += '<div class="madiaHead artHead" style="background-image: url(/data/article/' + $html[n].articleImg + ')"></div>'
  407. } else {
  408. str += '<div class="madiaHead artHead"></div>'
  409. }
  410. str += '<div class="madiaInfo OmadiaInfo">'
  411. str += '<p class="ellipsisSty-2 h1Font">' + $html[n].articleTitle + '</p>'
  412. str += '<p><span class="h2Font" style="margin-right:10px;">' + comName + '</span><span class="time">' + commenTime($html[n].publishTime) + '</span></p>'
  413. str += '</div></div>'
  414. likeRli.innerHTML = str;
  415. likeRUl.appendChild(likeRli, likeRUl.lastChild);
  416. }
  417. },
  418. error: function() {}
  419. });
  420. })(i);
  421. }
  422. }
  423. },
  424. error: function() {}
  425. });
  426. }
  427. /*感兴趣的服务*/
  428. function interestingResources() {
  429. $.ajax({
  430. url: "/ajax/ware/ralateWare",
  431. data: {
  432. "id": serviceId,
  433. "rows": 5
  434. },
  435. dataType: "json",
  436. traditional: true,
  437. type: 'get', //HTTP请求类型
  438. success: function(data) {
  439. if(data.success) {
  440. if(data.data.length == 0) {
  441. return;
  442. }
  443. document.getElementById("likeResource").parentNode.classList.remove("displayNone");
  444. var $data = data.data,
  445. arr = [];
  446. for(var i = 0; i < $data.length; i++) {
  447. arr.push($data[i].id)
  448. }
  449. if(i != 0) {
  450. ajaxRequist("/ajax/ware/qm", {
  451. "id": arr
  452. }, "get", function(data) {
  453. var $respond = data.data;
  454. for(var i = 0; i < $respond.length; i++) {
  455. (function(n) {
  456. var imgL = "../images/default-service.jpg";
  457. if($respond[i].images) {
  458. imgL = '/data/ware/' + $respond[i].images.split(",")[0]
  459. }
  460. var oURL;
  461. if($respond[i].category == 1) {
  462. oURL = "/ajax/professor/baseInfo/" + $respond[i].owner;
  463. } else {
  464. oURL = "/ajax/org/" + $respond[i].owner;
  465. }
  466. $.ajax({
  467. url: oURL,
  468. "type": "GET",
  469. 'dataType': "json",
  470. "success": function(data) {
  471. if(data.success) {
  472. var thisName, userType, thisAuth, thisTitle
  473. if(data.data.forShort) {
  474. thisName = data.data.forShort;
  475. } else {
  476. thisName = data.data.name;
  477. }
  478. if($respond.resourceType == 1) {
  479. userType = autho(data.data.authType, data.data.orgAuth, data.data.authStatus);
  480. thisTitle = userType.title;
  481. thisAuth = userType.sty;
  482. } else {
  483. if(data.data.authStatus == 3) {
  484. thisTitle = "科袖认证企业";
  485. thisAuth = "authicon-com-ok";
  486. }
  487. }
  488. var add = document.createElement("li");
  489. add.className = "mui-table-view-cell";
  490. add.setAttribute("data-id", $respond[n].id);
  491. var itemlist = '<div class="flexCenter OflexCenter"><div class="madiaHead resourceHead" style="background-image:url(' + imgL + ')"></div>';
  492. itemlist += '<div class="madiaInfo OmadiaInfo">';
  493. itemlist += '<p class="ellipsisSty-2 h1Font" id="usertitle">' + $respond[n].name + '</p>';
  494. itemlist += '<p><span class="h2Font">' + thisName + '</span><em class="authiconNew ' + thisAuth + '" title="' + thisTitle + '"></em></p>';
  495. itemlist += '</div></div>';
  496. add.innerHTML = itemlist;
  497. document.getElementById("likeResource").appendChild(add);
  498. }
  499. },
  500. 'error': function() {}
  501. });
  502. })(i);
  503. }
  504. })
  505. }
  506. }
  507. },
  508. error: function() {}
  509. });
  510. }
  511. /*文章跳转*/
  512. $("#likeArtical").on("click", "li", function() {
  513. location.href = "http://" + window.location.host + "/e/a.html?id=" + $(this).attr("data-id");
  514. })
  515. /*点击资源列表*/
  516. $("#likeResource").on("click", "li", function() {
  517. location.href = "http://" + window.location.host + "/e/s.html?id=" + $(this).attr("data-id");
  518. })
  519. $("#resourceList").on("click", "li", function() {
  520. location.href = "http://" + window.location.host + "/e/r.html?id=" + $(this).attr("data-id");
  521. })
  522. $(".tagList").on("click", "li", function() {
  523. var keyCon = $(this).find(".h2Font").text();
  524. location.href = "http://" + window.location.host + "/e/search.html?flag=7&key=" + keyCon;
  525. })
  526. /*微信分享*/
  527. $.ajax({
  528. url: "../ajax/weixin/jsapiTicket",
  529. type: 'get',
  530. dataType: 'json',
  531. contentType: "application/x-www-form-urlencoded; charset=utf-8",
  532. data: {
  533. 'url': location.href.split('#')[0]
  534. },
  535. success: function(data) {
  536. if(data.data) {
  537. wx.config({
  538. debug: false, //调试模式好犀利
  539. appId: data.data.appId,
  540. timestamp: data.data.timestamp,
  541. nonceStr: data.data.nonceStr,
  542. signature: data.data.signature,
  543. jsApiList: [ // 所有要调用的 API 都要加到这个列表中
  544. "onMenuShareAppMessage",
  545. "onMenuShareTimeline",
  546. "onMenuShareQQ",
  547. "onMenuShareQZone",
  548. "scanQRCode",
  549. ]
  550. });
  551. wx.ready(function() {
  552. // 在这里调用 API
  553. wx.onMenuShareAppMessage({ //分享给朋友
  554. title: shareTitle, // 分享标题
  555. desc: descContent, // 分享描述
  556. link: lineLink, // 分享链接
  557. imgUrl: imgUrl, // 分享图标
  558. success: share_success_callback,
  559. cancel: share_cancel_callback
  560. });
  561. wx.onMenuShareTimeline({ //分享到朋友圈
  562. title: shareTitle, // 分享标题
  563. desc: descContent, // 分享描述
  564. link: lineLink, // 分享链接
  565. imgUrl: imgUrl, // 分享图标
  566. success: share_success_callback,
  567. cancel: share_cancel_callback
  568. });
  569. wx.onMenuShareQQ({ //分享到QQ
  570. title: shareTitle, // 分享标题
  571. desc: descContent, // 分享描述
  572. link: lineLink, // 分享链接
  573. imgUrl: imgUrl, // 分享图标
  574. success: share_success_callback,
  575. cancel: share_cancel_callback
  576. });
  577. wx.onMenuShareQZone({ //分享到QQ空间
  578. title: shareTitle, // 分享标题
  579. desc: descContent, // 分享描述
  580. link: lineLink, // 分享链接
  581. imgUrl: imgUrl, // 分享图标
  582. success: share_success_callback,
  583. cancel: share_cancel_callback
  584. });
  585. });
  586. //分享成功后的回调函数
  587. function share_success_callback() {}
  588. //用户取消分享后执行的回调函数
  589. function share_cancel_callback() {}
  590. }
  591. }
  592. });
  593. })
  594. </script>
  595. </body>
  596. </html>