portal html css js resource

paperShow.js 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  1. $(document).ready(function() {
  2. loginStatus(); //判断个人是否登录
  3. var userid = $.cookie("userid");
  4. var userName = $.cookie("userName");
  5. var paperId = GetQueryString("paperId");
  6. if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){
  7. location.href="http://" + window.location.host + "/e/l.html?id="+paperId;
  8. }
  9. ifcollectionAbout(paperId,$("#collectBtn"), 5)
  10. getPaperMe();
  11. pageViewsVal();
  12. if(userid && userid != "null" && userid != null){
  13. $(".ifLoginOn").removeClass("displayNone");
  14. }else{
  15. $(".ifLoginUn").removeClass("displayNone");
  16. $(".ifLoginUn").on('click',".loginGo", function() {
  17. quickLog();
  18. operatTab();
  19. closeLog();
  20. })
  21. }
  22. //点击收藏按钮
  23. $("#collectBtn").on('click', function() {
  24. if(userid && userid != null && userid != "null") {
  25. if($(this).is('.icon-collected')){
  26. cancelCollectionAbout(paperId,$(this), 5)
  27. } else {
  28. collectionAbout(paperId,$(this), 5);
  29. }
  30. }else{
  31. quickLog();
  32. operatTab();
  33. closeLog();
  34. }
  35. });
  36. //关键词标签点击进去搜索
  37. $(".tagList").on("click","li",function(){
  38. var tagText = $(this).find("p").text();
  39. location.href = "searchNew.html?searchContent=" + tagText + "&tagflag=6";
  40. })
  41. //点击进入个人详情页面
  42. $("#aboutAuthors").on("click","li>a",function(){
  43. var oDataId = $(this).attr("data-id");
  44. if(oDataId.substring(0,1)!="#"){
  45. $(this).attr("href","userInforShow.html?professorId="+oDataId);
  46. }else{
  47. $(this).attr("href","javascript:void(0)");
  48. }
  49. })
  50. $("#aboutAuthors").on("click","li.lastBtn",function(){
  51. $("#aboutAuthors li").css("display","block");
  52. $(this).hide();
  53. })
  54. //点击关注按钮
  55. $("#aboutAuthors").on('click',"span.attenSpan", function() {
  56. var pId=$(this).parent().siblings("a").attr("data-id");
  57. if(userid && userid != null && userid != "null") {
  58. if($(this).is('.attenedSpan')){
  59. cancelCollectionAbout(pId,$(this),1)
  60. } else {
  61. collectionAbout(pId,$(this),1);
  62. }
  63. }else{
  64. quickLog();
  65. operatTab();
  66. closeLog();
  67. }
  68. });
  69. /*获取论文信息*/
  70. function getPaperMe() {
  71. $.ajax({
  72. "url": "/ajax/ppaper/qo",
  73. "type": "GET",
  74. "success": function(data) {
  75. console.log(data);
  76. if(data.success) {
  77. paperHtml(data.data);
  78. getPaperAuthors(data.data.id)
  79. var paperName = data.data.name + "-科袖网";
  80. document.title = paperName;
  81. }
  82. },
  83. "data": {
  84. "id": paperId
  85. },
  86. dataType: "json",
  87. 'error': function() {
  88. $.MsgBox.Alert('提示', '服务器连接超时!');
  89. }
  90. });
  91. }
  92. /*获取论文作者信息*/
  93. function getPaperAuthors(stritrm) {
  94. $.ajax({
  95. "url": "/ajax/ppaper/authors",
  96. "type": "GET",
  97. "success": function(data) {
  98. console.log(data);
  99. if(data.success) {
  100. if(data.data.length>0){
  101. $("#aboutAuthors .lastBtn span").text(data.data.length);
  102. for(var i=0;i<data.data.length;i++){
  103. var authTy="",authTit="",baseInfo="",ifPoint="",imgbg="../images/default-photo.jpg";
  104. if(data.data[i].professorId.substring(0, 1) != "#"){
  105. $.ajax({
  106. type:"get",
  107. url:"/ajax/professor/editBaseInfo/" + data.data[i].professorId,
  108. async:false,
  109. success:function($proData){
  110. console.log($proData)
  111. if($proData.success){
  112. var showPro = $proData.data;
  113. if(showPro.hasHeadImage == 1) {
  114. imgbg = "/images/head/" + showPro.id + "_l.jpg";
  115. } else {
  116. imgbg = "../images/default-photo.jpg";
  117. }
  118. ifPoint = "pointThis";
  119. //认证
  120. var oSty = autho(showPro.authType,showPro.orgAuth,showPro.authStatus);
  121. authTy = oSty.sty;
  122. authTit = oSty.title;
  123. var title = showPro.title || "";
  124. var orgName = showPro.orgName || "";
  125. var office = showPro.office || "";
  126. if(orgName!=""){
  127. if(title != "") {
  128. baseInfo = title + "," + orgName;
  129. }else{
  130. if(office!=""){
  131. baseInfo = office + "," + orgName;
  132. }else{
  133. baseInfo = orgName;
  134. }
  135. }
  136. }else{
  137. if(title != "") {
  138. baseInfo = title;
  139. }else{
  140. if(office!=""){
  141. baseInfo = office;
  142. }else{
  143. baseInfo = "";
  144. }
  145. }
  146. }
  147. var str="";
  148. str +='<li class="flexCenter"><a href="" class="'+ ifPoint +'" data-id="'+ showPro.id +'">'
  149. str +='<div class="madiaHead useHead" style="background-image:url('+ imgbg +')"></div>'
  150. str +='<div class="madiaInfo" style="margin-top:-4px" >'
  151. str +='<p class="ellipsisSty"><span class="h1Font">'+ showPro.name +'</span><em class="authiconNew '+ authTy +'" title="'+ authTit +'"></em></p>'
  152. str +='<p class="h2Font ellipsisSty">'+ baseInfo +'</p>'
  153. str +='</div></a>';
  154. if(showPro.id==userid){
  155. str +=''
  156. }else{
  157. str +='<div class="goSpan"><span class="attenSpan">关注</span></div>';
  158. }
  159. str +='</li>';
  160. var $str=$(str);
  161. $("#aboutAuthors .lastBtn").before($str);
  162. if(showPro.id!=userid){
  163. ifcollectionAbout(showPro.id,$str.find(".attenSpan"),1);
  164. }
  165. }
  166. }
  167. })
  168. }else{
  169. var str="";
  170. str +='<li class="flexCenter"><a data-id="'+ data.data[i].professorId +'">'
  171. str +='<div class="madiaHead useHead" style="background-image:url('+ imgbg +')"></div>'
  172. str +='<div class="madiaInfo">'
  173. str +='<p class="ellipsisSty"><span class="h1Font">'+ data.data[i].name +'</span></p>'
  174. str +='</div></a>';
  175. if(data.data[i].name==userName){
  176. str +='<div class="goSpan"><span class="ifMe" flag="1">是我本人</span></div>'
  177. }else{
  178. str +='<div class="goSpan"><span class="yaoqing">邀请'
  179. str +='<div class="shareCode clearfix"><div class="floatL qrcodeUser"></div>'
  180. str +='<div class="shareWord floatR"><p>打开微信“扫一扫”,<br/>打开网页后点击屏幕右上角“分享”按钮</p></div>'
  181. str +='</div></span></div>';
  182. }
  183. str +='</li>';
  184. var $str=$(str);
  185. $("#aboutAuthors .lastBtn").before($str);
  186. }
  187. if(data.data.length<5){
  188. $("#aboutAuthors li").css("display","block");
  189. $(".lastBtn").hide();
  190. }else{
  191. $("#aboutAuthors li:lt(3)").css("display","block");
  192. }
  193. }
  194. //邀请
  195. $('.goSpan').on("mouseenter",".yaoqing",function(){
  196. $(this).find('.shareCode').stop(true,false).fadeIn();
  197. }).on("mouseleave",".yaoqing",function(){
  198. $(this).find('.shareCode').stop(true,false).fadeOut();
  199. });
  200. //邀请作者
  201. var Qcu=document.getElementsByClassName("qrcodeUser");
  202. for(var i=0;i<Qcu.length;i++){
  203. var qrcode= new QRCode(Qcu[i], {
  204. width : 100,
  205. height : 100
  206. });
  207. makeCode();
  208. }
  209. function makeCode(){
  210. var hurl = window.location.host;
  211. if(userid) {
  212. var elurl = "http://" + hurl + "/e/I.html?i=" + s16to64(paperId)+"&d="+s16to64(userid)+"&f=1";
  213. } else{
  214. var elurl = "http://" + hurl + "/e/I.html?i=" + s16to64(paperId)+"&f=1";
  215. }
  216. qrcode.makeCode(elurl);
  217. }
  218. //是我本人
  219. $('.goSpan').on("click",".ifMe",function(){
  220. var oF=$(this).attr("flag");
  221. if(oF==1){
  222. $.MsgBox.Confirm("提示", "确认这是您发表的论文?", daoRuPaper);
  223. $(this).attr("flag","0");
  224. }else{
  225. return;
  226. }
  227. });
  228. }
  229. }
  230. },
  231. "data": {
  232. "id": stritrm
  233. },
  234. dataType: "json",
  235. 'error': function() {
  236. $.MsgBox.Alert('提示', '服务器连接超时!');
  237. }
  238. });
  239. }
  240. function daoRuPaper(){
  241. $.ajax({
  242. "url": "/ajax/ppaper/ass",
  243. "type": "POST",
  244. "data": {
  245. id:paperId,
  246. uid:userid,
  247. author: userName
  248. },
  249. dataType: "json",
  250. "success": function(data) {
  251. if(data.success) {
  252. if(data.data){
  253. $(".ifMe").text("导入成功").css("background","#ccc");
  254. }
  255. }
  256. },
  257. 'error': function() {
  258. $.MsgBox.Alert('提示', '服务器连接超时!');
  259. }
  260. });
  261. }
  262. /*处理论文html代码*/
  263. function paperHtml($da) {
  264. $("#paperName").text($da.name); //名字
  265. $("#pageView").text($da.pageViews); //浏览量
  266. $("#paperAbstract").text($da.summary); //摘要内容
  267. if(!$da.cn4periodical){
  268. $da.cn4periodical=""
  269. }
  270. if(!$da.en4periodical){
  271. $da.en4periodical=""
  272. }
  273. if(!$da.cn4periodical && !$da.en4periodical){
  274. $("#paperJournal").parents("li").hide();
  275. }else{
  276. $("#paperJournal").text($da.cn4periodical +" " + $da.en4periodical);
  277. }
  278. if(!$da.pubDay){
  279. $("#paperVolume").parents("li").hide();
  280. }else{
  281. $("#paperVolume").text($da.pubDay);
  282. }
  283. if($da.keywords != undefined && $da.keywords.length != 0 ){
  284. var subs = new Array();
  285. if($da.keywords.indexOf(',')){
  286. subs = $da.keywords.split(',');
  287. }else{
  288. subs[0] = $da.keywords;
  289. }
  290. if(subs.length>0){
  291. patentRelatedList(subs)
  292. for (var i = 0; i < subs.length; i++)
  293. {
  294. $(".tagList").append('<li><p class="h2Font">'+ subs[i] +'</p></li>');
  295. };
  296. }else{
  297. $(".tagList").hide();
  298. }
  299. }
  300. var weibopic = "http://" + window.location.host + "/images/default-paper.jpg"
  301. var weibotitle = $da.name;
  302. var weibourl = window.location.href;
  303. $("#weibo").attr("href","http://service.weibo.com/share/share.php?appkey=3677230589&title="+encodeURIComponent(weibotitle)+"&url="+encodeURIComponent(weibourl)+"&pic="+encodeURIComponent(weibopic)+"&content=utf-8"+"&ralateUid=6242830109&searchPic=false&style=simple");
  304. }
  305. isAgreeNum()
  306. function isAgreeNum() {
  307. var data = {"id": paperId}
  308. $.ajax({
  309. url:"/ajax/ppaper/agreeCount",
  310. data:data,
  311. dataType: 'json', //数据格式类型
  312. type: 'get', //http请求类型
  313. timeout: 10000,
  314. async: true,
  315. success: function(data) {
  316. if(data.success){
  317. if(userid && userid != "null" && userid != null) {
  318. isAgree(data.data) //文章点赞
  319. } else {
  320. $(".thumbBtn").html("赞 <span>" + data.data + "</span>");
  321. }
  322. }
  323. },
  324. error: function() {
  325. $.MsgBox.Alert('提示',"服务器链接超时");
  326. }
  327. });
  328. }
  329. /*判断论文是否被赞*/
  330. function isAgree(articleAgree) {
  331. var data = {"id": paperId,"uid":userid }
  332. $.ajax({
  333. url:"/ajax/ppaper/agree",
  334. data:data,
  335. dataType: 'json', //数据格式类型
  336. type: 'get', //http请求类型
  337. timeout: 10000,
  338. async: true,
  339. success: function(data) {
  340. if(data.success){
  341. if(data.data){
  342. $(".thumbBtn").html("已赞 <span>"+articleAgree+"</span>");
  343. $(".thumbBtn").addClass("thumbedBtn").css("cursor","auto");
  344. }else{
  345. $(".thumbBtn").html("赞 <span>"+articleAgree+"</span>");
  346. $(".thumbBtn").addClass("thunbgo");
  347. }
  348. }
  349. },
  350. error: function() {
  351. $.MsgBox.Alert('提示',"服务器链接超时");
  352. }
  353. });
  354. }
  355. //论文点击点赞
  356. $('.thumbBlock').on("click",".thunbgo",function(){
  357. if (userid && userid != "null" && userid != null) {
  358. addAgree();
  359. }else{
  360. quickLog();
  361. operatTab();
  362. closeLog();
  363. }
  364. })
  365. /*点赞*/
  366. function addAgree() {
  367. console.log(paperId)
  368. var data = {"uid": userid,"id": paperId}
  369. $.ajax({
  370. url:"/ajax/ppaper/agree",
  371. data:data,
  372. dataType: 'json', //数据格式类型
  373. type: 'POST', //http请求类型
  374. timeout: 10000,
  375. async: true,
  376. success: function(data) {
  377. if(data.success){
  378. var articleAgreeval = $(".thumbBtn span").text();
  379. $(".thumbBtn").html("已赞 <span>"+(parseInt(articleAgreeval)+1)+"</span>");
  380. $(".thumbBtn").addClass("thumbedBtn").css("cursor","auto");
  381. $(".thumbBtn").removeClass("thunbgo");
  382. }
  383. },
  384. error: function() {
  385. $.MsgBox.Alert('提示',"服务器链接超时");
  386. }
  387. });
  388. }
  389. /*留言模块*/
  390. limitObj(".msgCont",200)
  391. $("#meSendtt").on("click", function() {
  392. article();
  393. })
  394. //查看更多留言
  395. $("#moreArtical").on("click",function(){
  396. vcreateTime = $(".commentList li").last().attr("data-time");
  397. orderKey = $(".commentList li").last().attr("data-key");
  398. message(5,1);
  399. })
  400. //删除留言
  401. $(".commentList").on("click",".messageDel",function(){
  402. var commenid = $(this).attr("data-id");
  403. articledel(commenid)
  404. })
  405. //发布留言
  406. function article() {
  407. $.ajax({
  408. url:"/ajax/leaveWord/paper",
  409. dataType: 'json', //数据格式类型
  410. type: 'POST', //http请求类型
  411. data: {
  412. "paperId": paperId,
  413. "sender": userid,
  414. "content": $(".msgCont").val(),
  415. },
  416. timeout: 10000, //超时设置
  417. success: function(data) {
  418. var $info = data.data || {};
  419. if(data.success && data.data) {
  420. message(5,2);
  421. }
  422. $(".msgCont").val("");
  423. $(".msgconNum").find("span").text(0);
  424. },
  425. error: function() {
  426. $.MsgBox.Alert('提示', '服务器请求失败')
  427. }
  428. });
  429. }
  430. message(5,2);
  431. function message(rows,num) {
  432. if(num==1){
  433. var data = {"paperId": paperId,"createTime": vcreateTime,"orderKey": orderKey,"rows": rows}
  434. }else{
  435. var data = {"paperId": paperId,"rows": rows}
  436. }
  437. $.ajax({
  438. url: "/ajax/leaveWord/ql/paper",
  439. dataType: 'json', //数据格式类型
  440. type: 'GET', //http请求类型
  441. data: data,
  442. timeout: 10000, //超时设置
  443. success: function(data) {
  444. if(data.success) {
  445. if(data.data != ""){
  446. if(num==2){
  447. $(".commentList").html("");
  448. }
  449. if(data.data.length > 4){
  450. $("#moreArtical").removeClass("displayNone");
  451. }else{
  452. $("#moreArtical").addClass("displayNone");
  453. }
  454. for(var i = 0; i < data.data.length; i++) {
  455. var itemlist = '<li class="flexCenter" data-time="" data-key="">';
  456. itemlist += '<a href class="userhref"> <div class="madiaHead useHead useHeadMsg"></div></a>';
  457. itemlist += '<div class="madiaInfo">';
  458. itemlist += '<p><a href class="userhref"><span class="h1Font messageName"></span></a><em class="authiconNew" title="科袖认证专家"></em><span class="commenttime"></span></p>';
  459. itemlist += '<p class="h2Font messageContent"></p>';
  460. itemlist += '<div class="operateSpan"><span class="callBack">回复</span><span class="messageDel">删除</span></div>';
  461. itemlist += '</div></li>';
  462. $itemlist = $(itemlist);
  463. $(".commentList").append($itemlist);
  464. var datalist = data.data[i];
  465. $itemlist.find(".messageName").text(datalist.professor.name);
  466. $itemlist.find(".messageContent").text(datalist.content);
  467. var userType = autho(datalist.professor.authType, datalist.professor.orgAuth, datalist.professor.authStatus);
  468. $itemlist.find(".authiconNew").attr("title", userType.title);
  469. $itemlist.find(".authiconNew").addClass(userType.sty);
  470. if(datalist.professor.hasHeadImage==1) {
  471. $itemlist.find(".useHeadMsg").attr("style", "background-image: url(/images/head/" + datalist.professor.id + "_l.jpg);");
  472. }
  473. if(datalist.professor.id==userid){
  474. $itemlist.find(".messageDel").show();
  475. }
  476. $itemlist.attr("data-time", datalist.createTime);
  477. $itemlist.attr("data-key", datalist.orderKey);
  478. $itemlist.find(".messageDel").attr("data-id", datalist.id);
  479. $itemlist.find(".userhref").attr("href", "userInforShow.html?professorId="+datalist.professor.id);
  480. var createtime = datalist.createTime;
  481. $itemlist.find(".commenttime").text(commenTime(createtime));
  482. }
  483. }else{
  484. if(num==2){
  485. $(".commentList").html("");
  486. }else{
  487. $("#moreArtical").addClass("displayNone");
  488. }
  489. }
  490. }
  491. },
  492. error: function() {
  493. $.MsgBox.Alert('提示', '服务器请求失败')
  494. }
  495. });
  496. }
  497. //删除自己的留言
  498. function articledel(commenid) {
  499. $.ajax({
  500. url:"/ajax/leaveWord/delete",
  501. dataType: 'json', //数据格式类型
  502. type: 'POST', //http请求类型
  503. data: {
  504. "id": commenid,
  505. },
  506. timeout: 10000, //超时设置
  507. success: function(data) {
  508. if(data.success) {
  509. message(5,2);
  510. }
  511. },
  512. error: function() {
  513. $.MsgBox.Alert('提示', '服务器请求失败')
  514. }
  515. });
  516. }
  517. //您可能感兴趣的论文
  518. paperInterestingList()
  519. function paperInterestingList(){
  520. $.ajax({
  521. "url" : "/ajax/ppaper/ralatePapers",
  522. "type" : "GET" ,
  523. "dataType" : "json",
  524. "data" :{
  525. "paperId":paperId
  526. },
  527. //"async":false,
  528. "traditional": true, //传数组必须加这个
  529. "success" : function(data) {
  530. if(data.success) {
  531. var dataStr=data.data
  532. if(dataStr.length > 0){
  533. $("#interPaper").show();
  534. var itemlist = '';
  535. $("#paperList").html("");
  536. for(var i = 0; i < dataStr.length; i++) {
  537. var moreInf=""
  538. if(!dataStr[i].cn4periodical){
  539. dataStr[i].cn4periodical="";
  540. }
  541. if(!dataStr[i].en4periodical){
  542. dataStr[i].en4periodical="";
  543. }
  544. if(!dataStr[i].pubDay){
  545. dataStr[i].pubDay="";
  546. }
  547. moreInf = dataStr[i].cn4periodical+ " " +dataStr[i].en4periodical+ " " +dataStr[i].pubDay;
  548. var itemlist = '<li>';
  549. itemlist += '<a class="flexCenter" target="_blank" href="/' + pageUrl("pp",dataStr[i]) +'" class="linkhref"><div class="madiaHead paperHead"></div>';
  550. itemlist += '<div class="madiaInfo">';
  551. itemlist += '<p class="h1Font ellipsisSty">'+ dataStr[i].name +'</p>';
  552. itemlist += '<p class="h2Font ellipsisSty">作者:'+ dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) +'</p>';
  553. itemlist += '<p class="h2Font ellipsisSty">期刊:'+ moreInf +'</p>';
  554. itemlist += '</div></a></li>';
  555. $itemlist = $(itemlist);
  556. $("#paperList").append($itemlist);
  557. } }
  558. }
  559. },
  560. "error":function(){
  561. $.MsgBox.Alert('提示','链接服务器超时')
  562. }
  563. });
  564. }
  565. //浏览量
  566. function pageViewsVal() {
  567. $.ajax({
  568. "url": "/ajax/ppaper/incPageViews",
  569. "type": "POST",
  570. "dataType": "json",
  571. "data": {
  572. "id": paperId
  573. },
  574. "success": function(data) {
  575. console.log(data);
  576. if(data.success) {}
  577. },
  578. "error": function() {
  579. $.MsgBox.Alert('提示', '链接服务器超时')
  580. }
  581. });
  582. }
  583. //纠错反馈
  584. $(".correctSubmit").on("click",function(){
  585. var cntCon=$(this).siblings(".correctCon").val();
  586. var cntUser="";
  587. if(userid && userid != null && userid != "null") {
  588. cntUser = userid;
  589. }
  590. if(cntCon.length>500){
  591. $.MsgBox.Alert('提示', '纠错反馈内容不得超过500个字');
  592. return;
  593. }else{
  594. $.ajax({
  595. "url": "/ajax/feedback/error/paper",
  596. "type": "POST",
  597. "dataType": "json",
  598. "async": true,
  599. "data": {
  600. "id": paperId,
  601. "cnt":cntCon,
  602. "user":cntUser
  603. },
  604. "success": function(data) {
  605. if(data.success) {
  606. backSuccessed();
  607. }
  608. },
  609. "error": function() {
  610. $.MsgBox.Alert('提示', '链接服务器超时')
  611. }
  612. });
  613. }
  614. })
  615. function patentRelatedList(array){
  616. $.ajax({
  617. "url":"/ajax/ppatent/assPatents",
  618. "type" : "GET" ,
  619. "dataType" : "json",
  620. "data" :{
  621. "kws":array
  622. },
  623. "traditional": true, //传数组必须加这个
  624. "success" : function(data) {
  625. if(data.success) {
  626. var dataStr=data.data
  627. if(dataStr.length > 0){
  628. $("#patentrelate").removeClass("displayNone");
  629. for(var i = 0; i < dataStr.length; i++) {
  630. var itemlist ='<li style="min-height:56px;"><a href="/'+pageUrl("pt",dataStr[i])+'"><p class="h2Font ellipsisSty-2" style="line-height:20px;"><em class="circlePre"></em>'+ dataStr[i].name +'</p></a></li>'
  631. $(".recentlyList").append(itemlist);
  632. }
  633. }
  634. }
  635. },
  636. "error":function(){
  637. $.MsgBox.Alert('提示', '链接服务器超时')
  638. }
  639. });
  640. }
  641. })