Problemas 0 Pull Requests 0 Commits 1521 Versões 0 Wiki

25 Commits (6c1c3d4e5b40e484413ac2c95344bea90571c102)

Autor SHA1 Mensagem Data
  luyanan 51d486a199 删除之前废弃咨询模块 6 anos atrás
  luyanan 8b3e9002c0 广告统一整理,右侧广告滚动效果 6 anos atrás
  li 5ffb74897f 留言收尾 6 anos atrás
  jack 811bd61679 11 7 anos atrás
  jack 602d24c451 1 7 anos atrás
  jack a073496dd5 1 7 anos atrás
  jack b4001a4e50 11 7 anos atrás
  luyanan 7b26529b20 提取广告模块,便于修改 7 anos atrás
  luyanan 0bac893095 悬浮窗口登录 7 anos atrás
  luyanan fe778e0393 修改咨询按钮为联系 7 anos atrás
  luyanan be6b713cf3 修改1.9.1 bug 7 anos atrás
  jack ccdacd7986 专利论文 7 anos atrás
  jack c6266af66e 专利及论文 7 anos atrás
  jack 763ebea486 22 7 anos atrás
  jack 6e68361182 1 7 anos atrás
  jack 7c968ede68 1 7 anos atrás
  jack 8ad3e3d1e5 1 7 anos atrás
  luyanan 89fbb862b2 修改相关文字提示 7 anos atrás
  luyanan 04d3baee55 专利论文添加作者的相关操作邀请 7 anos atrás
  luyanan 746a2cc5de 浏览页面添加纠错反馈和回到顶部 7 anos atrás
  luyanan 58525d92a3 pc版网页二维码分享论文专利企业 7 anos atrás
  luyanan d1f20b99ca 论文浏览修改导入 7 anos atrás
  luyanan 44a7c6ff85 论文列表、导入论文、论文修改 7 anos atrás
  luyanan 83f862fe81 论文浏览 7 anos atrás
  luyanan 74569ec2ec 论文和专利相关 7 anos atrás
portal-front - Gogs: Go Git Service

portal html css js resource

paperImport.js 4.1KB

    $(document).ready(function(){ $(".onlogin .headnavbtn li.mywork").addClass("navcurrent"); $(".workmenu>ul>li:contains('论文')").addClass("nowLi"); loginStatus(); //判断个人是否登录 valUser(); var userid = $.cookie("userid"); var userName = $.cookie("userName"); var paperId; /*论文列表查询*/ function getPaperMe(n,isbind,num) { var paperNameVa=$("#paperName").val(); var $info={}; $info.id = userid; $info.author = userName; $info.pageSize=10; if(paperNameVa !="") { $info.name=paperNameVa; } $info.pageNo=n; $.ajax({ "url": "/ajax/ppaper/byAuthor", "type": "GET", "success": function(data) { if(data.success) { console.log(data); $(".importUl").html(""); if(num==1) { if(data.data.data.length==0) { $("#noresource").removeClass("displayNone"); $(".noContip").text("没有需要导入的论文"); return; }else{ $("#noresource").addClass("displayNone"); } }else{ if(data.data.data.length==0) { $("#noresource").removeClass("displayNone"); $(".noContip").text("没有符合该搜索条件的内容"); return; }else{ $("#noresource").addClass("displayNone"); } } paperHtml(data.data.data); if(isbind == true) { $(".tcdPageCode").createPage({ pageCount: Math.ceil(data.data.total / data.data.pageSize), current: data.data.pageNo, backFn: function(p) { getPaperMe(p,false); } }); } } }, "data": $info, dataType: "json", 'error': function() { $.MsgBox.Alert('提示', '服务器连接超时!'); } }); } getPaperMe(1,true,1); function paperHtml($data) { console.log($data); for(var i = 0; i < $data.length; i++) { var oAuthors=""; if($data[i].authors) { oAuthors="作者:"+$data[i].authors; } var moreInf="" if(!$data[i].cn4periodical){ $data[i].cn4periodical=""; } if(!$data[i].en4periodical){ $data[i].en4periodical=""; } if(!$data[i].pubDay){ $data[i].pubDay=""; } moreInf = "期刊:" + $data[i].cn4periodical+ " " +$data[i].en4periodical+ " " +$data[i].pubDay; var oName1=$data[i].name; var oId=$data[i].id; var oT,oText,cs; if($data[i].professorId.substring(0,1)!="#") { oT="importSpan-3"; oText="已导入"; cs="auto"; }else{ oT="importSpan-1"; oText="导入"; cs="pointer"; } var oString = '<li>' + '<a class="flexCenter">' + '<div class="madiaHead paperHead"></div>' + '<div class="madiaInfo">' + '<p class="h1Font ellipsisSty">'+oName1+'</p>' + '<p class="h2Font ellipsisSty">'+oAuthors+'</p>' + '<p class="h2Font ellipsisSty">'+moreInf+'</p>' + '</div>' + '</a>' + '<div class="importBtn">' + '<span class="importResource '+oT+'" data-id="'+oId+'" flag="1" style="cursor:'+cs+'">'+oText+'</span>' + /*'<span class="importSpan-2">再次导入</span>' + '<span class="importSpan-3">已导入</span>' +*/ '</div>' + '</li>' $(".importUl").append(oString); } } /*输入论文名称限制字数*/ $("#paperName").bind({ keyup: function() { if($(this).val().length > 50) { $(this).val($(this).val().substr(0, 50)); } } }); /*点击搜索*/ $(".searchSpan").click(function(){ $(".tcdPageCode").remove(); $(".aboutRes").append('<div class="tcdPageCode"></div>'); getPaperMe(1,true); }) /*导入论文*/ $(".importUl").on("click",".importResource",function(){ var oF=$(this).attr("flag"); if(oF!=1) return; var $this=$(this); $.ajax({ "url": "/ajax/ppaper/ass", "type": "POST", "success": function(data) { if(data.success) { if(data.data){ $this.text("导入成功").addClass("importSpan-3").removeClass("importSpan-1").removeClass("importSpan-2").attr("flag","2").css("cursor","auto"); } } }, "data": { id:$(this).attr("data-id"), uid:userid, author: userName }, dataType: "json", 'error': function() { $.MsgBox.Alert('提示', '服务器连接超时!'); } }); }); })