portal html css js resource

paperShow.js 20KB

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