portal html css js resource

z.html 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  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,body{background: #FFFFFF;}
  12. </style>
  13. <script type="text/javascript" src="../js/jquery-1.11.1.js"></script>
  14. <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  15. <script type="text/javascript" src="../js/public/shareCom.js"></script>
  16. <script type="text/javascript" src="../js/public/openApp.js"></script>
  17. </head>
  18. <body>
  19. <div class="contentBody2">
  20. <div class="showDetail">
  21. <div class="h1Font hWeight" id="patentName"></div>
  22. <!--内容区-->
  23. <div class="showMain showMainP">
  24. <ul>
  25. <li>
  26. <div class="showTit">专利号:<span class="showCon" id="Znum1"></span></div>
  27. </li>
  28. <li>
  29. <div class="showTit">公开日:<span class="showCon" id="Znum2"></span></div>
  30. </li>
  31. <li>
  32. <div class="showTit">申请日:<span class="showCon" id="Znum3"></span></div>
  33. </li>
  34. <li>
  35. <div class="showTit">申请号:<span class="showCon" id="Znum4"></span></div>
  36. </li>
  37. <li>
  38. <div class="showTit">申请人:<span class="showCon" id="Znum5"></span></div>
  39. </li>
  40. <li>
  41. <div class="showTit">摘要:</div>
  42. <div class="showCon" id="patentAbstract">
  43. </div>
  44. </li>
  45. </ul>
  46. </div>
  47. <!--标签模块-->
  48. <ul class="tagList">
  49. </ul>
  50. <div class="madiaBlock">
  51. <div class="madiaTit">发明人</div>
  52. <ul class="mui-table-view" id="aboutAuthors">
  53. </ul>
  54. </div>
  55. <div class="madiaBlock displayNone" id="paperModule">
  56. <div class="madiaTit">相关论文</div>
  57. <ul class="mui-table-view" id="paperList">
  58. <!--<li class="mui-table-view-cell">
  59. <div class="flexCenter OflexCenter mui-clearfix">
  60. <div class="madiaHead paperHead"></div>
  61. <div class="madiaInfo OmadiaInfo">
  62. <p class="ellipsisSty h1Font">CdS/CdSSe轴向异质结纳米线的非对称光波导及双波长激射</p>
  63. <p class="ellipsisSty h2Font">作者:李丹,梁君武,刘华伟,张学红,万强,张清林,潘安练</p>
  64. </div>
  65. </div>
  66. </li>-->
  67. </ul>
  68. </div>
  69. <div class="thumbBlock">
  70. <span class="thumbBtn"><span id="snum"></span></span><!-- thumbedBtn 已赞 201-->
  71. </div>
  72. <div class="madiaBlock displayNone" id="patentModule">
  73. <div class="madiaTit">您可能感兴趣的专利</div>
  74. <ul class="mui-table-view" id="patentList">
  75. </ul>
  76. </div>
  77. <div class="madiaBlock displayNone" style="padding-bottom:50px;" id="leword">
  78. <div class="madiaTit" id="olisten">留言</div>
  79. <ul class="mui-table-view commentBlock noactiveTab">
  80. </ul>
  81. </div>
  82. </div>
  83. <div class="shareEcode">
  84. <img class="Ecodecon" src="../images/ecordCard.jpg" />
  85. <div class="Ecodeinfo">
  86. <a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app"><button class="frmbtn frmactive">下载移动客户端</button></a>
  87. </div>
  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 patentId = GetQueryString("id");
  98. isAgreeNum()
  99. function isAgreeNum() {
  100. var data = {"id": patentId}
  101. $.ajax({
  102. url:"/ajax/ppatent/agreeCount",
  103. data:data,
  104. dataType: 'json', //数据格式类型
  105. type: 'get', //http请求类型
  106. timeout: 10000,
  107. async: true,
  108. success: function(data) {
  109. if(data.success){
  110. $(".thumbBtn").html("赞 <span>" + data.data + "</span>");
  111. }
  112. },
  113. error: function() {
  114. //$.MsgBox.Alert('提示',"服务器链接超时");
  115. }
  116. });
  117. }
  118. leword();
  119. function leword(){
  120. $.ajax({
  121. url:"/ajax/leaveWord/ql/patent",
  122. data: {
  123. "patentId":patentId,
  124. "rows":100 },
  125. dataType: 'json', //服务器返回json格式数据
  126. type: 'get', //HTTP请求类型
  127. timeout: 10000, //超时时间设置为10秒;
  128. traditional: true,
  129. success: function(data) {
  130. if(data.success) {
  131. console.log(data)
  132. if(data.data.length == 0) {
  133. return;
  134. }
  135. $("#leword").show();
  136. for(var i = 0; i < data.data.length; i++) {
  137. var oText = ""
  138. var userType = autho(data.data[i].professor.authType, data.data[i].professor.orgAuth, data.data[i].professor.authStatus);
  139. var baImg = "../images/default-photo.jpg";
  140. if(data.data[i].professor.hasHeadImage == 1) {
  141. baImg = "/images/head/" + data.data[i].professor.id + "_l.jpg";
  142. }
  143. var li = document.createElement("li");
  144. li.innerHTML = '<div class="flexCenter clearfix" data-id="' + data.data[i].professor.id + '">' +
  145. '<div class="madiaHead useHead" style="background-image:url(' + baImg + ')"></div>' +
  146. '<div class="madiaInfo">' +
  147. '<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>' +
  148. '<p class="h2Font">' + data.data[i].content + '</p>' +
  149. '<p class="operateSpan">' +
  150. '<span class="commenttime">' + commenTime(data.data[i].createTime) + '</span>' +
  151. // '<span data-id="' + data.data[i].id + '" class="dele">' + oText + '</span>' +
  152. '</p>' +
  153. '</div>'
  154. document.getElementsByClassName("commentBlock")[0].appendChild(li);
  155. }
  156. }
  157. },
  158. error: function() {
  159. }
  160. });
  161. }
  162. $(".commentBlock").on("click","li>.flexCenter",function(){
  163. location.href="http://" + window.location.host + "/e/p.html?id=" + $(this).attr("data-id");
  164. })
  165. var this_="../html/patentShow.html?patentId="+patentId;
  166. wcFresh(this_);
  167. $("body").on("click",".goSpan,.thumbBtn",function(){
  168. isInstalled(this_,true);
  169. $(this).addClass("activeThis");
  170. })
  171. paperInterestingList()
  172. function paperInterestingList(){
  173. $.ajax({
  174. "url" : "/ajax/ppatent/ralatePatents",
  175. "type" : "GET" ,
  176. "dataType" : "json",
  177. "data" :{
  178. "patentId":patentId
  179. },
  180. //"async":false,
  181. "traditional": true, //传数组必须加这个
  182. "success" : function(data) {
  183. if(data.success) {
  184. console.log(data);
  185. var dataStr=data.data
  186. var lengthT;
  187. if(dataStr.length>5){
  188. lengthT=5;
  189. }else{
  190. lengthT=dataStr.length
  191. }
  192. if(dataStr.length > 0){
  193. $("#patentModule").show();
  194. var itemlist = '';
  195. for(var i = 0; i < lengthT; i++) {
  196. var itemlist = '<li class="mui-table-view-cell" data-id="'+dataStr[i].id+'">';
  197. itemlist += '<div class="flexCenter OflexCenter mui-clearfix"><div class="madiaHead patentHead"></div>';
  198. itemlist += '<div class="madiaInfo OmadiaInfo">';
  199. itemlist += '<p class="ellipsisSty-2 h1Font">'+ dataStr[i].name +'</p>';
  200. itemlist += '<p class="ellipsisSty h2Font">发明人:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'</p>';
  201. itemlist += '</div></div></li>';
  202. $itemlist = $(itemlist);
  203. $("#patentList").append($itemlist);
  204. }
  205. }
  206. }
  207. },
  208. "error":function(){
  209. //$.MsgBox.Alert('提示','链接服务器超时')
  210. }
  211. });
  212. }
  213. $("#paperList").on("click","li",function(){
  214. location.href="http://" + window.location.host + "/e/l.html?id=" + $(this).attr("data-id");
  215. });
  216. $("#patentList").on("click","li",function(){
  217. location.href="http://" + window.location.host + "/e/z.html?id=" + $(this).attr("data-id");
  218. });
  219. getRecourceMe();
  220. $.ajax({
  221. "url": "../ajax/ppatent/incPageViews",
  222. "type": "POST",
  223. "dataType": "json",
  224. "data": {
  225. "id": patentId
  226. },
  227. "success": function(data) {
  228. console.log(data);
  229. if(data.success) {}
  230. },
  231. "error": function() {
  232. //$.MsgBox.Alert('提示', '链接服务器超时')
  233. }
  234. });
  235. $("#aboutAuthors").on("click","li",function(){
  236. var oDataId = $(this).attr("data-id");
  237. if(oDataId.substring(0,1)!="#"){
  238. location.href="http://" + window.location.host + "/e/p.html?id=" + oDataId;
  239. $(this).addClass("activeThis");
  240. }
  241. })
  242. function getRecourceMe() {
  243. $.ajax({
  244. url:'../ajax/ppatent/qo',
  245. data: {
  246. 'id': patentId,
  247. },
  248. dataType: 'json', //服务器返回json格式数据
  249. type: 'get', //HTTP请求类型
  250. timeout: 10000, //超时时间设置为10秒;
  251. success: function(data) {
  252. if(data.success) {
  253. var mydata = data.data;
  254. patentHtml(data.data);
  255. getpatentAuthors(data.data.id)
  256. }
  257. },
  258. error: function(e) {
  259. return;
  260. }
  261. });
  262. }
  263. function patentHtml($da) {
  264. //微信再次分享配置
  265. shareTitle = $da.name;
  266. descContent = $da.summary.substring(0,40);
  267. document.title = $da.name;
  268. document.getElementById("patentName").innerHTML = $da.name; //名字
  269. document.getElementById("patentAbstract").innerHTML = $da.summary; //摘要内容
  270. document.getElementById("Znum1").innerHTML = $da.code;//专利号
  271. if($da.pubDay){
  272. document.getElementById("Znum2").innerHTML = TimeTr($da.pubDay);
  273. }else{
  274. document.getElementById("Znum2").parentNode.parentNode.style.display="none";
  275. }
  276. if($da.reqCode){
  277. document.getElementById("Znum4").innerHTML = $da.reqCode;
  278. }else{
  279. document.getElementById("Znum4").parentNode.parentNode.style.display="none";
  280. }
  281. if($da.reqDay){
  282. document.getElementById("Znum3").innerHTML = TimeTr($da.reqDay);
  283. }else{
  284. document.getElementById("Znum3").parentNode.parentNode.style.display="none";
  285. }
  286. if($da.reqDay){
  287. document.getElementById("Znum5").innerHTML = $da.reqPerson;
  288. }else{
  289. document.getElementById("Znum5").parentNode.parentNode.style.display="none";
  290. }
  291. if($da.keywords != undefined && $da.keywords.length != 0 ){
  292. var subs = new Array();
  293. if($da.keywords.indexOf(',')){
  294. subs = $da.keywords.split(',');
  295. }else{
  296. subs[0] = $da.keywords;
  297. }
  298. var pstr=""
  299. if(subs.length>0){
  300. paperRelatedList(subs);
  301. for (var i = 0; i < subs.length; i++)
  302. {
  303. pstr+='<li><span class="h2Font">'+ subs[i] +'</span></li>'
  304. };
  305. $(".tagList").html(pstr);
  306. }else{
  307. $(".tagList").hide();
  308. }
  309. }
  310. }
  311. /*获取论文作者信息*/
  312. function getpatentAuthors(stritrm) {
  313. $.ajax({
  314. "url":"../ajax/ppatent/authors",
  315. "type": "GET",
  316. "success": function(data) {
  317. if(data.success) {
  318. if(data.data.length>0){
  319. for(var i=0;i<data.data.length;i++){
  320. var authTy="",authTit="",baseInfo="",imgbg="../images/default-photo.jpg";
  321. if(data.data[i].professorId.substring(0, 1) != "#"){
  322. $.ajax({
  323. url:"../ajax/professor/editBaseInfo/" + data.data[i].professorId,
  324. type:"get",
  325. async:true,
  326. success:function($proData){
  327. if($proData.success){
  328. var showPro = $proData.data;
  329. if(showPro.hasHeadImage == 1) {
  330. imgbg = "/images/head/" + showPro.id + "_l.jpg";
  331. } else {
  332. imgbg = "../images/default-photo.jpg";
  333. }
  334. //认证
  335. var oSty = autho(showPro.authType,showPro.orgAuth,showPro.authStatus);
  336. authTy = oSty.sty;
  337. authTit = oSty.title;
  338. var title = showPro.title || "";
  339. var orgName = showPro.orgName || "";
  340. var office = showPro.office || "";
  341. if(orgName!=""){
  342. if(title != "") {
  343. baseInfo = title + "," + orgName;
  344. }else{
  345. if(office!=""){
  346. baseInfo = office + "," + orgName;
  347. }else{
  348. baseInfo = orgName;
  349. }
  350. }
  351. }else{
  352. if(title != "") {
  353. baseInfo = title;
  354. }else{
  355. if(office!=""){
  356. baseInfo = office;
  357. }else{
  358. baseInfo = "";
  359. }
  360. }
  361. }
  362. var liItem = document.createElement("li");
  363. liItem.setAttribute("data-id",showPro.id);
  364. liItem.className = "mui-table-view-cell"
  365. var oString = '<div class="flexCenter mui-clearfix">'
  366. oString += '<div class="madiaHead useHead" style="background-image:url('+ imgbg +')"></div>'
  367. oString += '<div class="madiaInfo"><p><span class="h1Font">'+ showPro.name +'</span><em class="authiconNew '+ authTy +'" title="'+ authTit +'"></em></p>'
  368. oString += '<p class="ellipsisSty h2Font">'+ baseInfo +'</p>'
  369. oString += '</div><div class="goSpan"><span class="attenSpan" data-id="'+showPro.id+'">关注</span></div></div>'
  370. liItem.innerHTML = oString;
  371. document.getElementById("aboutAuthors").appendChild(liItem);
  372. }
  373. }
  374. })
  375. }else{
  376. var liItem = document.createElement("li");
  377. liItem.setAttribute("data-id",data.data[i].professorId);
  378. liItem.className = "mui-table-view-cell"
  379. var oString = '<div class="flexCenter mui-clearfix">'
  380. oString += '<div class="madiaHead useHead" style="background-image:url('+ imgbg +')"></div>'
  381. oString += '<div class="madiaInfo"><p><span class="h1Font">'+ data.data[i].name +'</span></p>'
  382. oString += '</div></div>'
  383. liItem.innerHTML = oString;
  384. document.getElementById("aboutAuthors").appendChild(liItem);
  385. }
  386. }
  387. }
  388. }
  389. },
  390. "data": {
  391. "id": stritrm
  392. },
  393. dataType: "json",
  394. 'error':function() {
  395. //$.MsgBox.Alert('提示', '链接服务器超时')
  396. }
  397. });
  398. }
  399. /*微信分享*/
  400. $.ajax({
  401. url: "../ajax/weixin/jsapiTicket",
  402. type: 'get',
  403. dataType: 'json',
  404. contentType: "application/x-www-form-urlencoded; charset=utf-8",
  405. data: {
  406. 'url': location.href.split('#')[0]
  407. },
  408. success: function(data) {
  409. if(data.data) {
  410. wx.config({
  411. debug: false, //调试模式好犀利
  412. appId: data.data.appId,
  413. timestamp: data.data.timestamp,
  414. nonceStr: data.data.nonceStr,
  415. signature: data.data.signature,
  416. jsApiList: [ // 所有要调用的 API 都要加到这个列表中
  417. "onMenuShareAppMessage",
  418. "onMenuShareTimeline",
  419. "onMenuShareQQ",
  420. "onMenuShareQZone",
  421. "scanQRCode",
  422. ]
  423. });
  424. wx.ready(function() {
  425. // 在这里调用 API
  426. wx.onMenuShareAppMessage({ //分享给朋友
  427. title: shareTitle, // 分享标题
  428. desc: descContent, // 分享描述
  429. link: lineLink, // 分享链接
  430. imgUrl: imgUrl, // 分享图标
  431. success: share_success_callback,
  432. cancel: share_cancel_callback
  433. });
  434. wx.onMenuShareTimeline({ //分享到朋友圈
  435. title: shareTitle, // 分享标题
  436. desc: descContent, // 分享描述
  437. link: lineLink, // 分享链接
  438. imgUrl: imgUrl, // 分享图标
  439. success: share_success_callback,
  440. cancel: share_cancel_callback
  441. });
  442. wx.onMenuShareQQ({ //分享到QQ
  443. title: shareTitle, // 分享标题
  444. desc: descContent, // 分享描述
  445. link: lineLink, // 分享链接
  446. imgUrl: imgUrl, // 分享图标
  447. success: share_success_callback,
  448. cancel: share_cancel_callback
  449. });
  450. wx.onMenuShareQZone({ //分享到QQ空间
  451. title: shareTitle, // 分享标题
  452. desc: descContent, // 分享描述
  453. link: lineLink, // 分享链接
  454. imgUrl: imgUrl, // 分享图标
  455. success: share_success_callback,
  456. cancel: share_cancel_callback
  457. });
  458. });
  459. //分享成功后的回调函数
  460. function share_success_callback() {}
  461. //用户取消分享后执行的回调函数
  462. function share_cancel_callback() {}
  463. }
  464. }
  465. });
  466. //根据关键词查询查找相关论文
  467. function paperRelatedList(array){
  468. $.ajax({
  469. "url" : "/ajax/ppaper/assPapers",
  470. "type" : "GET" ,
  471. "dataType" : "json",
  472. "data" :{
  473. "kws":array
  474. },
  475. //"async":false,
  476. "traditional": true, //传数组必须加这个
  477. "success" : function(data) {
  478. if(data.success) {
  479. console.log(data);
  480. var dataStr=data.data
  481. var lengthT;
  482. if(dataStr.length>5){
  483. lengthT=5;
  484. }else{
  485. lengthT=dataStr.length
  486. }
  487. if(dataStr.length > 0){
  488. $("#paperModule").show();
  489. var itemlist = '';
  490. for(var i = 0; i < lengthT; i++) {
  491. var itemlist = '<li class="mui-table-view-cell" data-id="'+dataStr[i].id+'">';
  492. itemlist += '<div class="flexCenter OflexCenter mui-clearfix"><div class="madiaHead paperHead"></div>';
  493. itemlist += '<div class="madiaInfo OmadiaInfo">';
  494. itemlist += '<p class="ellipsisSty-2 h1Font">'+ dataStr[i].name +'</p>';
  495. itemlist += '<p class="ellipsisSty h2Font">作者:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'</p>';
  496. itemlist += '</div></div></li>';
  497. $itemlist = $(itemlist);
  498. $("#paperList").append($itemlist);
  499. }
  500. }
  501. }
  502. },
  503. "error":function(){
  504. plus.nativeUI.toast("服务器链接超时", toastStyle);
  505. }
  506. });
  507. }
  508. })
  509. </script>
  510. </body>
  511. </html>