.3KB
Cronologia Originale
    <!doctype html> <html> <head> <meta charset="UTF-8"> <title></title> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <link href="../css/mui.min.css" rel="stylesheet" /> <link href="../css/app.css" rel="stylesheet" /> </head> <body> <header class="mui-bar mui-bar-nav toptitbox"> <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left topback"></a> <h1 class="mui-title toptit">应用行业</h1> <span class="mui-pull-right topsave">保存</span> </header> <div class="mui-content"> <div class="mui-input-group marginbox"> <div class="maincon"> <div class="labelbox"> <div class="addlabel mui-clearfix"> <input type="text" class="mui-pull-left frmtype"/> <button class="mui-btn mui-pull-left addlabelbtn">添加</button> </div> <div class="labelarea"> <ul class="labelshow"> </ul> </div> </div> </div> </div> </div> <script src="../js/public/mui.min.js"></script> <script src="../js/public/base.js"></script> <script type="text/javascript" src="../js/updateinfo-res03.js"></script> </body> </html>
portal-front - Gogs: Go Git Service

portal html css js resource

unPatentList.js 7.0KB

    $(document).ready(function () { $(".onlogin .headnavbtn li.mywork").addClass("navcurrent"); $(".workmenu>ul>li:contains('成果')").addClass("nowLi"); loginStatus(); //判断个人是否登录 valUser(); var userid = $.cookie("userid"); var resourceId; /*资源列表查询*/ function getRecourceMe(n, isbind, num) { var resourceNameVa = $("#patentName").val(); var $info = {}; $info.pageSize = 10; if (resourceNameVa != "") { $info.key = resourceNameVa; } $info.pageNo = n; $info.status = ['1', '2']; $info.id = userid $.ajax({ //获取全部非专数据 // /ajax/resResult/pq/creator "url": "/ajax/resResult/pq/researcher", "type": "GET", "success": function (data) { console.log(data) if (data.success) { $("#patentList").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"); } } resourceHtml(data.data.data); if (isbind == true) { $(".tcdPageCode").createPage({ pageCount: Math.ceil(data.data.total / data.data.pageSize), current: data.data.pageNo, backFn: function (p) { getRecourceMe(p, false); } }); } } }, "data": $info, dataType: "json", traditional: true, 'error': function () { $.MsgBox.Alert('提示', '服务器连接超时!'); } }); } getRecourceMe(1, true, 1); function resourceHtml($data) { console.log($data) for (var i = 0; i < $data.length; i++) { var oTime, pageview = "", draftLable = "", oHtml, oLi = '', gl = '' mg = ''; if ($data[i].pic) var imgSrc = "/data/researchResult" + $data[i].pic.split(",")[0]; if ($data[i].status == '2') { $('.deteleThis3').css('display', 'none') oTime = "修改于 " + TimeTr($data[i].modifyTime); draftLable = '<span class="draftLable " style="margin-left: 20px;">草稿</span>'; oHtml = "unPatentIssue.html"; oLi = "class='draftList'" mg = '<li><span>' + oTime + '</span>' + draftLable + '</li>' } else if ($data[i].status == '1') { oHtml = "unPatentShow.html" gl = '<li><span class="deteleThis3" data-id="' + $data[i].id + '">取消关联</span></li>' } var oStr = '<li ' + oLi + '>' + '<a href="' + oHtml + '?id=' + $data[i].id + '&flag=' + $data[i].state + '" target="_blank">' + '<div class="madiaHead resouseHead" style="background-image: url(' + imgSrc + ');"></div>' + '<div class="madiaInfo">' + '<p class="h1Font ellipsisSty">' + $data[i].name + '</p>' + '<ul class="showliTop h2Font clearfix hu2">' + mg + '</ul>' + '<ul class="showliTop h2Font hu1">' + '</ul>' + '</div>' + '</a>' + '<ul class="madiaEdit">' + gl + '<li><span class="editThis" data-id="' + $data[i].id + '"></span></li>' + '<li><span class="deteleThis2" data-id="' + $data[i].id + '"></span></li>' + '</ul>' + '</li>' var $oStr = $(oStr); $("#patentList").append($oStr); if ($data[i].status == '1') { proList($data[i].id, $oStr, $data[i].orgId,$data[i].subject,$data[i].department || '') console.log($data[i]) } $oStr.find(".editThis").attr("data-state", $data[i].status); } } function proList(par, $pa, p3,subject,department) { $.ajax({ "url": "/ajax/resResult/researcher", "type": "GET", "data": { id: par }, "success": function (data) { if (data.success) { var $da = data.data if ($da.length) { var arr = []; var dom = []; for (var i = 0; i < $da.length; i++) { arr.push($da[i].name) dom.push($da[i].id) } $pa.find('.hu2').append('<li>研究者:' + arr.join(',') + '</li>') $pa.find('.hu2').append('<li>应用领域:' + subject + '</li>') $pa.find('.hu2>li').css({'float':'none' , 'margin-bottom':'0px'}) $('.itemListBolck .itemListCon .madiaInfo').css('padding-top','0px') orgname(p3, $pa) console.log(p3) if (p3){ } $.ajax({ 'url': '/ajax/resResult/selectbyidandPid', 'type': 'get', 'data': { pid: userid, id: par }, 'success': function (res) { var $info = res.data for (var i = 0; i < $info.length; i++) { if ($info[i].name == '######' || $info[i].status == 0) { $pa.find('.deteleThis3').css('display', 'none') } else { $pa.find('.deteleThis2').css('display', 'none') $pa.find('.editThis').css('display', 'none') } } } }) } } }, "data": { "id": par }, dataType: "json", 'error': function () { $.MsgBox.Alert('提示', '服务器连接超时!'); } }); } function orgname(par, $pa) { $.ajax({ "url": "ajax/org/" + par, "type": "GET", "success": function (data) { console.log(data) if (data.success) { $pa.find('.hu1').append('<li>所属机构:' + data.data.name+ '</li>') } }, "data": { "id": par }, dataType: "json", 'error': function () { $.MsgBox.Alert('提示', '服务器连接超时!'); } }); } /*点击修改跳转修改页面*/ $("#patentList").on("click", ".editThis", function () { location.href = "unPatentIssue.html?id=" + $(this).attr("data-id") + "&flag=" + $(this).attr("data-state"); }) /*点击删除跳转修改页面*/ $("#patentList").on("click", ".deteleThis2", function () { resourceId = $(this).attr("data-id"); $.MsgBox.Confirm("提示", "确认删除该成果?", deleResource); }) //点击取消关联 $("#patentList").on("click", ".deteleThis3", function () { resourceId = $(this).attr("data-id"); $.MsgBox.Confirm("提示", "确认取消该成果?", cancel); }) //取消关联函数 function cancel() { $.ajax({ 'url': '/ajax/resResult/deleteContact', 'type': 'post', 'data': { id: resourceId, uid: userid }, 'success': function (res) { console.log(res) getRecourceMe(1, true); } }) } /*删除函数*/ function deleResource() { $.ajax({ "url": "/ajax/resResult/delete", "type": "POST", "success": function (data) { if (data.success) { getRecourceMe(1, true); } }, "data": { "id": resourceId }, "beforeSend": function () {}, "contentType": "application/x-www-form-urlencoded", dataType: "json" }); } /*输入资源名称限制字数*/ $("#patentList").bind({ keyup: function () { if ($(this).val().length > 30) { $(this).val($(this).val().substr(0, 30)); } } }); /*点击搜索*/ $(".searchSpan").click(function () { $(".tcdPageCode").remove(); $(".aboutRes").append('<div class="tcdPageCode"></div>'); getRecourceMe(1, true); }) })
portal-front - Gogs: Go Git Service

portal html css js resource

cmp-setBind.html 3.6KB

    <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>账户绑定</title> <link type="text/css" rel="stylesheet" href="css/bootstrap.min.css"> <link type="text/css" rel="stylesheet" href="css/common.css"> <link type="text/css" rel="stylesheet" href="css/cmpindex.css"> <script type="text/javascript" src="js/public/jquery-1.11.1.js"></script> </head> <body> <!--绑定邮箱model--> <div class="blackcover"> <div class="modelContain"> <form name="cmpAllFrm"> <ul class="cmpAllUl cmpBindul" id="emailone"> <li class="importBlock"><p class="importTip">验证企业邮箱,完成账号绑定</p></li> <li> <input type="email" class="frmtype frmtypeW" style="height: 40px;line-height: 40px;" placeholder="请输入您的企业邮箱" id="companyEmail"/> <div class="frmmsg msgBind1"><span></span></div> </li> <li class="alignCenter"> <button type="button" class="frmtype btnModel headRadius save-block" disabled id="saveSubmit">发送验证邮件</button> </li> </ul> <ul class="cmpAllUl cmpBindul displayNone" id="emailtwo"> <li class="importBlock"> <p class="importTip">验证邮件已发送至:<br /> <span class="cmpColor" id="emailShow"></span> </p> <p class="smalltip alignCenter">请您在10分钟内登录您的企业邮箱,接收邮件,<br />点击链接后即可完成绑定。</p> </li> <li class="alignCenter"> <button type="button" class="frmtype btnModel headRadius save-block" id="emailGo">登录邮箱</button> </li> </ul> </form> <span class="modelClosebtn"></span> </div> </div> <!--头部--> <header> <script type="text/javascript" src="js/public/cmpHeader.js"></script> </header> <!--中间--> <div id="container"> <div class="containerCon con-center"> <div class="workmenu"> <a class="workmenutit accouttit">账户设置</a> <a href="cmp-setPwd.html" class="worksubmenu">密码修改</a> <a href="javascript:;" class="worksubmenu cmpBg">账号绑定</a> <a href="cmp-setAuth.html" class="worksubmenu">企业认证</a> </div> <div class="workcon"> <div class="workconitem"> <div class="workcontit">账号绑定</div> <div class="worksubcon"> <div class="workblock"> <form name="cmpAllFrm"> <p class="notetip smalltip">绑定后,您可以使用以下方式登录您的企业账户</p> <ul class="cmpAllUl bindBlock"> <li> <div class="col-w-9 bindFont"> <em></em> 您已绑定邮箱 <span class="cmpColor" id="orgEmail"></span> </div> <div class="col-w-3"> <button type="button" class="frmtype btnModel headRadius bindEmailbtn" >更换</button> </div> </li> </ul> </form> </div> </div> </div> </div> </div> </div> <!--底部--> <footer> <script type="text/javascript" src="js/public/cmpFooter.js"></script> </footer> <script type="text/javascript"src="js/public/jquery.cookie.js"></script> <script type="text/javascript" src="js/public/jquery.similar.msgbox.js"></script> <script type="text/javascript" src="js/public/common.js"></script> <script type="text/javascript" src="js/cmp-setBind.js"></script> </body> </html>