</li> <li class="col-w-4" data-num="2"> <span class="selectSort sort-mana"></span> <div class="sortbody">企业高管</div> </li> <li class="col-w-4" data-num="3"> <span class="selectSort sort-stu"></span> <div class="sortbody">在校生</div> </li> <li class="col-w-4" data-num="4"> <span class="selectSort sort-skill"></span> <div class="sortbody">技术人员</div> </li> <li class="col-w-4" data-num="5"> <span class="selectSort sort-hr"></span> <div class="sortbody">HR/猎头</div> </li> <li class="col-w-4" data-num="6"> <span class="selectSort sort-sale"></span> <div class="sortbody">销售人员</div> </li> <li class="col-w-4" data-num="7"> <span class="selectSort sort-invest"></span> <div class="sortbody">投资方</div> </li> <li class="col-w-4" data-num="8"> <span class="selectSort sort-consult"></span> <div class="sortbody">咨询顾问</div> </li> <li class="col-w-4 selectNow" data-num="0"> <span class="selectSort sort-user"></span> <div class="sortbody">普通用户</div> <span class="selectNowicon"></span> </li> </ul> <div class="frmboxNew"> <button type="button" class="frmtype btnModel save-block headRadius" id="nextbut">下一步</button> </div> </div> </form> </div> </div> </div> <script type="text/javascript" src="js/jquery.cookie.js"></script> <script type="text/javascript"> $(function(){ var id=$.cookie('userid') $(".selectSortBox").on("click","li",function(){ var liAll = document.getElementsByTagName('li'); var slescted =document.createElement("span") slescted.className = "selectNowicon"; for(var i = 0;i <liAll.length;i++){ if(liAll[i].classList.contains("selectNow")){ liAll[i].classList.remove("selectNow"); liAll[i].removeChild(liAll[i].getElementsByTagName("span")[1]); } } this.classList.add("selectNow"); this.appendChild(slescted); }) $("#nextbut").on("click",function(){ var authentication = $(".selectNow").attr("data-num"); $.ajax({ "url":"../ajax/professor/authen", "type":"POST", "data":{"id":id,"authentication":authentication}, "success":function(data){ console.log(data); if(data.success){ $.cookie('authentication', authentication, {path: "/"}); location.href = "fillinfoNew.html"; } }, "error":function(){ $.MsgBox.Alert('消息', '服务器请求失败'); } }) }) }) </script> </body> </html> portal-front - Gogs: Go Git Service

portal html css js resource

cmp-pwdResetOk.html 1.4KB

    <!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 class="covbodyBg"> <div class="containerCon"> <a href="../index.html" class="headlogo signLogo"></a> </div> <!--中间--> <div id="container"> <div class="containerCon contConP"> <div class="covFrmblock"> <form class="cmpAllFrm"> <p class="h1Font alignCenter cmpColor">找回企业账户密码</p> <ul class="cmpAllUl cmpCoverUl"> <li class="successImg"></li> <li> <p class="importTip" style="font-size:16px;">密码找回成功,快去登录吧!</p> </li> <li> <a href="cmp-settled-log.html"><button type="button" class="frmtype frmtypeW btnModel btnModelBig headRadius save-block">返回企业账户登录页面</button></a> </li> </ul> </form> </div> </div> </div> <script type="text/javascript"src="js/public/jquery.cookie.js"></script> <script type="text/javascript" src="js/public/common.js"></script> </body> </html>
portal-front - Gogs: Go Git Service

portal html css js resource

searchNew.js 16KB

    $(function() { loginStatus();//判断个人是否登录 var userid = $.cookie("userid"); var num = 1; var keyt,subject,industry,address; var authType = 1; var searchContent = $.trim(GetQueryString("searchContent")); var subjectText = $.trim(GetQueryString("subject")); if(subjectText==""){ subject=""; }else{ subject=subjectText; } if(searchContent==""){ keyt=""; }else{ keyt=searchContent; $(".searchsome").val(searchContent); } expertListVal(keyt,subject,industry,address,authType,20,1,true); articalListVal(20, 1,true); resourceListVal(20, 1,true); academicFieldVal(subjectText); applicationIndustryVal(); cityVal(); //切换搜索范围 jquerytab("col-w-12"); //筛选条件的选择 $(".filterUl").on("click","li",function(){ this.parentNode.querySelector('li.filterCurrent').classList.remove("filterCurrent"); this.classList.add("filterCurrent"); }) //筛选条件的展开关闭 $(".filterListNew").on("click",".rightbtn",function(){ if(this.querySelector("em").className == "unfoldtr") { this.querySelector("em").classList.remove("unfoldtr"); this.querySelector("em").classList.add("foldtr"); this.parentNode.querySelector(".filterUl").classList.remove("filterUlactive"); } else { this.querySelector("em").classList.add("unfoldtr"); this.querySelector("em").classList.remove("foldtr"); this.parentNode.querySelector(".filterUl").classList.add("filterUlactive"); } }) $(".searchblock").hide(); $(document).scroll(function() { var top = $(document).scrollTop(); if (top >= 80) { $(".searchblock").stop(true,false).fadeIn(); }else{ $(".searchblock").stop(true,false).fadeOut(); } }) $(".searchsome").keydown(function(e) { if(e.which == 13) { num = $(".liactive").attr("data-id"); if(num==1){ expertBox(); }else if(num==2){ resourceListVal(20, 1,true); }else if(num==3){ articalListVal(20, 1,true); } } }) $(".searchgo").on("click",function(e) { num = $(".liactive").attr("data-id"); if(num==1){ expertBox(); }else if(num==2){ resourceListVal(20, 1,true); }else if(num==3){ articalListVal(20, 1,true); } }) $("#academicField,#applicationIndustry,#cityList").on("click","li",function(e) { expertBox(); }) function expertBox(){ keyt = $(".searchsome").val(); var subjectVal= $("#academicField li.filterCurrent").text(); if(subjectVal=="不限"){ subject = ""; }else{ subject = subjectVal; } var industryVal= $("#applicationIndustry li.filterCurrent").text(); if(industryVal=="不限"){ industry = ""; }else{ industry = industryVal; } var addressVal= $("#cityList li.filterCurrent").text(); if(addressVal=="不限"){ address = ""; }else{ address = addressVal; } expertListVal(keyt,subject,industry,address,authType,20,1,true); } }); function jquerytab(name){ var oDome=$('.' + name); var oSpan=oDome.find('.filterdiv li'); var oP=oDome.find('.listdiv .listbox'); oSpan.click(function(){ $(this).addClass('liactive').siblings().removeClass('liactive'); var index =oSpan.index(this); oP.eq(index).show().siblings().hide(); //$(".searchsome").val(""); if(index==0){ //expertListVal(keyt,subject,industry,address,authType,20,1,true); $(".searchsome").attr("placeholder","请输入专家姓名、机构、研究方向"); }else if(index==1){ //resourceListVal(20, 1,true); $(".searchsome").attr("placeholder","请输入资源名称、用途、机构"); }else{ //articalListVal(20, 1,true); $(".searchsome").attr("placeholder","请输入文章标题、作者"); } }); } //学术领域 function academicFieldVal(subjectText){ $.ajax({ "url": "/ajax/dataDict/qaDictCode", "type": "get", "async": false, "data": { "dictCode":"SUBJECT", }, "success": function(data) { console.log(data); if(data.success) { $("#academicField").html(""); $("#academicField").append('<li class="filterCurrent">不限</li>'); for(var i = 0; i < data.data.length; i++) { var itemlist = '<li class="ititle">'+data.data[i].caption+'</li>'; $("#academicField").append(itemlist); if(i > 20) break; } $("#academicField li").each(function(i){ var textt = $(this).text(); if(textt == subjectText){ $(this).addClass("filterCurrent").siblings().removeClass("filterCurrent"); } }); } }, "error": function() { $.MsgBox.Alert('提示', '链接服务器超时') } }); } //应用行业 function applicationIndustryVal(){ $.ajax({ "url": "/ajax/dataDict/qaDictCode", "type": "get", "data": { "dictCode":"INDUSTRY", }, "success": function(data) { console.log(data); if(data.success) { $("#applicationIndustry").html(""); $("#applicationIndustry").append('<li class="filterCurrent">不限</li>'); for(var i = 0; i < data.data.length; i++) { var itemlist = '<li class="ititle">'+data.data[i].caption+'</li>'; $("#applicationIndustry").append(itemlist); if(i > 20) break; } } }, "error": function() { $.MsgBox.Alert('提示', '链接服务器超时') } }); } //所在城市 function cityVal(){ $.ajax({ "url": "/ajax/dataDict/qaCity", "type": "get", "data": { "dictCode":"ADDRESS", }, "success": function(data) { console.log(data); if(data.success) { $("#cityList").html(""); $("#cityList").append('<li class="filterCurrent">不限</li>'); for(var i = 0; i < data.data.length; i++) { var itemlist = '<li class="ititle">'+data.data[i].caption+'</li>'; $("#cityList").append(itemlist); if(i > 20) break; } } }, "error": function() { $.MsgBox.Alert('提示', '链接服务器超时') } }); } //专家点击咨询 $('#expertList').on("click",".rightop",function(){ if (userid && userid != "null" && userid != null) { var professorId = $(this).attr("id"); ConsultApply(); //点击的发送 $("#sendConsultBtn").click(function() { sendConsultHandler($(this).attr("proId")) }); concultProInfo(professorId); }else{ $.MsgBox.Alert('提示',"请先登录再进行咨询"); $("#mb_btn_ok").val("去登录"); var aele = document.createElement('a'); $("#mb_btnbox").append(aele); $("#mb_btnbox a").css({ 'display': "block", 'width': '100%', 'height': '40px', 'position': 'absolute', 'bottom': '-6px', 'left': '0' }); aele.setAttribute('href', '../login.html'); } }) //专家 function expertListVal(keyt,subject,industry,address,authType,pageSize,pageNo,isexpert) { $.ajax({ "url": "/ajax/professor/pqBaseInfo", "type": "get", "data": { "key":keyt, "subject":subject, "industry":industry, "address":address, "authType":authType, "pageSize": pageSize, "pageNo": pageNo }, "beforeSend": function() { $("#expertList").append('<img src="../images/loading.gif" class="loading" style="position: absolute;left: 50%; top: 50%;" />'); }, "success": function(data) { console.log(data); if(data.success) { if(data.data.data.length > 0){ $("#expertList,.expertPageCode").show(); $(".expertPage").hide(); $("#expertList").html(""); var itemlist = ''; for(var i = 0; i < data.data.data.length; i++) { var itemlist = '<li class="flexCenter">'; itemlist += '<a href="" class="expertUrl linkhref"><div class="lefthead userheadt userRadius" id="expertImg"></div>'; itemlist += '<div class="centercon">'; itemlist += '<p class="h1font">'; itemlist += '<span class="nameSpan" id="Name"></span>'; itemlist += '<em class="authiconNew" title="科袖认证专家"></em></p>'; itemlist += '<p class="h2font ellipsisSty" id="ellipsisSty">职称/职位,所在机构</p>'; itemlist += '<p class="h2font ellipsisSty" id="researchAreas"></p>'; itemlist += '</div></a><span class="rightop" style="display:none" id="">咨询</span>'; itemlist += '</li>'; $itemlist = $(itemlist); $("#expertList").append($itemlist); var datalist = data.data.data[i]; $itemlist.find(".expertUrl").attr("href", "information-brow.html?professorId=" + datalist.id ); $itemlist.find("#Name").text(datalist.name); $itemlist.find(".rightop").attr("id",datalist.id); if(datalist.id != userid){ $itemlist.find(".rightop").show(); } var userType = autho(datalist.authType, datalist.orgAuth, datalist.authStatus); $itemlist.find(".authiconNew").attr("title", userType.title); $itemlist.find(".authiconNew").addClass(userType.sty); if(datalist.hasHeadImage) { $itemlist.find("#expertImg").attr("style", "background-image: url(/images/head/" + datalist.id + "_l.jpg);"); } var title = datalist.title || ""; var orgName = datalist.orgName || ""; var office = datalist.office || ""; if(title != "") { var ttitle = title + ","; }else{ if(office!=""){ var ttitle = office + ","; }else{ var ttitle = office; } } if(orgName != "") { orgName = orgName; } $itemlist.find("#ellipsisSty").text(ttitle+orgName); /*获取研究方向信息*/ var researchAreas = datalist.researchAreas; if( researchAreas.length > 0){ var rlist = '研究方向:'; for(var n = 0; n < researchAreas.length; n++) { //console.log(researchAreas[n].caption); rlist += researchAreas[n].caption if(n < researchAreas.length - 1) { rlist += ";" } } $itemlist.find("#researchAreas").text(rlist); } } //分页 if(isexpert==true){ $(".expertPageCode").createPage({ pageCount: Math.ceil(data.data.total / 20), current: data.data.pageNo, backFn: function(p) { $("#expertList").html(""); expertListVal(keyt,subject,industry,address,authType,20,p,false); document.body.scrollTop = document.documentElement.scrollTop = 0; } }); } }else{ $("#expertList,.expertPageCode").hide(); $(".expertPage").show(); } $(".loading").remove(); } }, "error": function() { $.MsgBox.Alert('提示', '链接服务器超时') } }); } //文章 function articalListVal(pageSize, pageNo,isbind) { $.ajax({ "url": "/ajax/article/firstpq", "type": "get", "async": true, "data": { "key":$(".searchsome").val(), "pageSize": pageSize, "pageNo": pageNo }, "beforeSend": function() { $("#articalList").append('<img src="../images/loading.gif" class="loading" style="position: absolute;left: 50%; top: 50%;" />'); }, "success": function(data) { console.log(data); if(data.success) { if(data.data.data.length > 0){ $("#articalList,.articalPageCode").show(); $(".articalPage").hide(); var itemlist = ''; $("#articalList").html(""); for(var i = 0; i < data.data.data.length; i++) { var itemlist = '<li class="flexCenter">'; itemlist += '<a href="" class="artivleUrl linkhref"><div class="lefthead articalhead" id="articleImg"></div>'; itemlist += '<div class="centercon centercon2">'; itemlist += '<p class="h1font ellipsisSty" id="articalTitle"></p>'; itemlist += '<p class="h2font">'; itemlist += '<span class="nameSpan" id="userName"></span>'; itemlist += '<em class="authiconNew" title="科袖认证专家"></em>'; itemlist += '</p></div></a></li>'; $itemlist = $(itemlist); $("#articalList").append($itemlist); var datalist = data.data.data[i]; var articleType = datalist.articleType; $itemlist.find("#articalTitle").text(datalist.articleTitle); $itemlist.find(".artivleUrl").attr("href", "articalShow.html?articleId=" + datalist.articleId ); if(datalist.articleImg) { $itemlist.find("#articleImg").attr("style", "background-image: url(/data/article/" + datalist.articleImg + ");"); } if(articleType == 1) { //个人文章 $itemlist.find("#userName").text(datalist.professor.name); var userType = autho(datalist.professor.authType, datalist.professor.orgAuth, datalist.professor.authStatus); $itemlist.find(".authiconNew").attr("title", userType.title); $itemlist.find(".authiconNew").addClass(userType.sty); } else if(articleType == 2) { //企业文章 $itemlist.find("#userName").text(datalist.editOrganization.name); if(datalist.editOrganization.authStatus==3){ $itemlist.find(".authiconNew").addClass("authicon-com-ok").attr("title", "认证企业");; } } } //分页 if(isbind==true){ $(".articalPageCode").createPage({ pageCount: Math.ceil(data.data.total / 20), current: data.data.pageNo, backFn: function(p) { $("#articalList").html(""); articalListVal(20, p,false); document.body.scrollTop = document.documentElement.scrollTop = 0; } }); } }else{ $("#articalList,.articalPageCode").hide(); $(".articalPage").show(); } $(".loading").remove(); } }, "error": function() { $.MsgBox.Alert('提示', '链接服务器超时') } }); } //资源 function resourceListVal(pageSize, pageNo,isresource) { $.ajax({ "url": "/ajax/resource/firstpq", "type": "get", "async": true, "data": { "key":$(".searchsome").val(), "pageSize": pageSize, "pageNo": pageNo }, "beforeSend": function() { $("#resourceList").append('<img src="../images/loading.gif" class="loading" style="position: absolute;left: 50%; top: 50%;" />'); }, "success": function(data) { console.log(data); if(data.success) { if(data.data.data.length > 0){ $("#resourceList,.resourcePageCode").show(); $(".resourcePage").hide(); var itemlist = ''; $("#resourceList").html(""); for(var i = 0; i < data.data.data.length; i++) { var itemlist = '<li class="flexCenter">'; itemlist += '<a href="" class="resourceUrl linkhref"><div class="lefthead resouhead" id="resourceImg"></div>'; itemlist += '<div class="centercon">'; itemlist += '<p class="h1font" id="resourceName"></p>'; itemlist += '<p class="h2font ellipsisSty" id="supportedServices"></p>'; itemlist += '<p class="h2font">'; itemlist += '<span class="nameSpan" id="username"></span>'; itemlist += '<em class="authiconNew authicon-pro" title="科袖认证专家"></em>'; itemlist += '</p></div></a></li>'; $itemlist = $(itemlist); $("#resourceList").append($itemlist); var datalist = data.data.data[i]; var resourceType = datalist.resourceType; $itemlist.find("#resourceName").text(datalist.resourceName); $itemlist.find("#supportedServices").text("用途:" + datalist.supportedServices); $itemlist.find(".resourceUrl").attr("href", "resourceShow.html?resourceId=" + datalist.resourceId ); if(datalist.images.length > 0) { $itemlist.find("#resourceImg").attr("style", "background-image: url(/data/resource/" + datalist.images[0].imageSrc + ");"); } if(resourceType == 1) { //个人资源 $itemlist.find("#username").text(datalist.editProfessor.name); var userType = autho(datalist.editProfessor.authType, datalist.editProfessor.orgAuth, datalist.editProfessor.authStatus); $itemlist.find(".authiconNew").attr("title", userType.title); $itemlist.find(".authiconNew").addClass(userType.sty); } else if(resourceType == 2) { //企业资源 $itemlist.find("#username").text(datalist.organization.name); if(datalist.organization.authStatus==3){ $itemlist.find(".authiconNew").addClass("authicon-com-ok").attr("title", "认证企业");; } } } //分页 if(isresource==true){ $(".resourcePageCode").createPage({ pageCount: Math.ceil(data.data.total / 20), current: data.data.pageNo, backFn: function(p) { $("#resourceList").html(""); resourceListVal(20, p,false); document.body.scrollTop = document.documentElement.scrollTop = 0; } }); } }else{ $("#resourceList,.resourcePageCode").hide(); $(".resourcePage").show(); } $(".loading").remove(); } }, "error": function() { $.MsgBox.Alert('提示', '链接服务器超时') } }); }
portal-front - Gogs: Go Git Service

portal html css js resource

search.js 27KB

    $(function() { loginStatus();//判断个人是否登录 $(document).scroll(function() { var top = $(document).scrollTop(); if(top != 0) { $(".searchbox").fadeIn(1000); } else { $(".searchbox").fadeOut(1000); } }); var newc = GetQueryString("lookFor"); if(newc == 0 || newc == "") { var c = 0; } else { var c = 1; // $(".lookwho option[value='1']").attr("selected","selected"); $("#div_select").text("找资源"); } /* * var lookFor2 = 0; $("#lookFor2 ul li").on("click",function(){ * lookFor2=$(this).index(); }); //enter绑定时间 * $("#searchContent").keydown(function(e){ if(e.which==13) { synContent(2); * synContent(1); var searchContent = $("#searchContent").val(); if(lookFor2 = * 1){ $("#div_select").text("找资源"); location.href = * "search.html?searchContent=" + encodeURI(searchContent); } } * }) */ var userid = $.cookie("userid"); var subject; var subb = $.trim(GetQueryString("subject")); var industry; var pageSize; var sub = "SUBJECT"; var indu = "INDUSTRY"; var address = $("#address .colorbg")[0].title; $("#searchContent").val(GetQueryString("searchContent")); $("#hsearchContent").val(GetQueryString("searchContent")); var key = $("#searchContent").val(); var getData = function(key, subject, industry, pageSize, pageNo, isbind, add) { if(c == 0) { $ .ajax({ "url": "/ajax/professor/pqBaseInfo", "type": "GET", "data": { "key": key, "subject": subject, "industry": industry, "pageSize": pageSize, "pageNo": pageNo, "address": add }, "contentType": "application/x-www-form-urlencoded", "success": function($data) { if($data.success) { // console.log($data); $("#professorList").html(""); for(var i = 0; i < $data.data.data.length; i++) { // 创建HTML标签 var dataHtml = "<div class='item'>"; dataHtml += "<a class='infoi' href='information-brow.html?professorId=" + $data.data.data[i].id + "' ><div class='photo1 userRadius'>" if($data.data.data[i].hasHeadImage) { dataHtml += "<img class='images' style='width:100%;' src='/images/head/" + $data.data.data[i].id + "_l.jpg'/></div></a>"; } else { dataHtml += "<img class='images' style='width:100%;' src='/images/default-photo.jpg'/></div></a>"; } dataHtml += "<div class='synopsis'>"; dataHtml += "<a href='javascript:void();' class='named'>"; if(typeof($data.data.data[i].name) !== "undefined") { dataHtml += $data.data.data[i].name; } dataHtml += "</a><a href='information-brow.html?professorId=" + $data.data.data[i].id + "' class='authiconNew'></a>"; dataHtml += "<div class='position'>"; if($data.data.data[i].office) { dataHtml += $data.data.data[i].office + ", "; } if($data.data.data[i].title) { dataHtml += $data.data.data[i].title + ", "; } if($data.data.data[i].department) { dataHtml += $data.data.data[i].department + ", "; } if($data.data.data[i].orgName) { dataHtml += $data.data.data[i].orgName; } if($data.data.data[i].address) { dataHtml += " | " + $data.data.data[i].address; } dataHtml += "</div>"; dataHtml += "<div class='ellipsisbox science'>"; if(typeof($data.data.data[i].subject) !== "undefined") { dataHtml += "<p>学术领域:" + $data.data.data[i].subject + "</p>"; } dataHtml += "</div>"; dataHtml += "<div class='ellipsisbox industry'>"; if(typeof($data.data.data[i].industry) !== "undefined") { dataHtml += "<p>应用行业:" + $data.data.data[i].industry + "</p>"; } if($data.data.data[i].researchAreas.length) { dataHtml += "<p>研究方向:" for(var m = 0; m < $data.data.data[i].researchAreas.length; m++) { dataHtml += $data.data.data[i].researchAreas[m].caption; if(m<$data.data.data[i].researchAreas.length-1){ dataHtml += " , " } } dataHtml += "</p>"; } dataHtml += "</div>"; dataHtml += "</div>"; if($data.data.data[i].id != userid) { dataHtml += "<div class='operbox'><span class='operbtn onlyConsultbtn' id='" + $data.data.data[i]['id'] + "'>咨询</span></div>"; } var $datahtml = $(dataHtml); $("#professorList").append(dataHtml); var photoHeight = $(".photo1").eq(i).height(); var middleHeight = $(".synopsis").eq(i).height(); if(middleHeight < photoHeight) { $(".synopsis").eq(i).height(photoHeight); } //认证 var oSty=autho($data.data.data[i].authType,$data.data.data[i].orgAuth,$data.data.data[i].authStatus); $(".authiconNew").eq(i).addClass(oSty.sty); $(".authiconNew").eq(i).attr("title",oSty.title); // 点击查看当前信息 (function(i) { $('.synopsis') .eq(i) .click( function() { location.href = 'information-brow.html?professorId=' + $data.data.data[i].id; }) } )(i); } //找专家点击咨询 $(".onlyConsultbtn").bind("click", clickSeachProConsultHandler); if(isbind == true) { $(".tcdPageCode").createPage({ pageCount: Math.ceil($data.data.total / pageSize), current: $data.data.pageNo, backFn: function(p) { getData(key, subject, industry, pageSize, p, false); } }); } } else { $.MsgBox.Alert("message", $data.msg); } } }); } else { //查询我的所有资源 $.ajax({ "url": "/ajax/resource/pq", "type": "get", "data": { "key": key, "subject": subject, "industry": industry, "pageSize": pageSize, "pageNo": pageNo, "address": add }, "contentType": "application/x-www-form-urlencoded", "success": function(data) { //console.log(data); if(data.success) { $("#professorList").html(""); var $da = data.data.data; for(var i = 0; i < $da.length; i++) { var add = '<div class="item"><div class="remess" resourceId=' + $da[i].resourceId + '>' add += '<div class="clearfix"><a class="resourcephoto headRadius" ><div class="ResImgBox" style="background:#ffffff;"><img class="resImg headRadius resourceImg" src="" /></div></a>' add += '<div class="synopsis" style="width:66%;">' add += '<div class="cousultName"><a class="resouname" href="javascript:void();">' + $da[i].resourceName + '</a></div>' var oStyT=autho($da[i].editProfessor.authType,$da[i].editProfessor.orgAuth,$da[i].editProfessor.authStatus); if($da[i].editProfessor.name) { add += '<div class="belongname"><a style="float:left;display:block;">' + $da[i].editProfessor.name + '</a><a class="authiconNew '+ oStyT.sty+'" title="'+ oStyT.title +'"></a></div>' } if($da[i].editProfessor.title == undefined) { $da[i].editProfessor.title = ""; } if($da[i].editProfessor.department == undefined) { $da[i].editProfessor.department = ""; } if($da[i].editProfessor.orgName == undefined) { $da[i].editProfessor.orgName = ""; } add += '<div style="clear:both"></div><div class="positionbox">' if($da[i].editProfessor.title && $da[i].editProfessor.department && $da[i].editProfessor.orgName) { add += $da[i].editProfessor.title + "," + $da[i].editProfessor.department + "," + $da[i].editProfessor.orgName; } else if(!$da[i].editProfessor.title && $da[i].editProfessor.department && $da[i].editProfessor.orgName) { add += $da[i].editProfessor.department + "," + $da[i].editProfessor.orgName; } else if($da[i].editProfessor.title && !$da[i].editProfessor.department && $da[i].editProfessor.orgName) { add += $da[i].editProfessor.title + "," + $da[i].editProfessor.orgName; } else if($da[i].editProfessor.title && $da[i].editProfessor.department && !$da[i].editProfessor.orgName) { add += $da[i].editProfessor.title + "," + $da[i].editProfessor.department; } else if(!$da[i].editProfessor.title && !$da[i].editProfessor.department && $da[i].editProfessor.orgName) { add += $da[i].editProfessor.orgName } else if(!$da[i].editProfessor.title && $da[i].editProfessor.department && !$da[i].editProfessor.orgName) { add += $da[i].editProfessor.department } else if($da[i].editProfessor.title && !$da[i].editProfessor.department && !$da[i].editProfessor.orgName) { add += $da[i].editProfessor.title } add += '</div>' if($da[i].subject) { add += '<div class="ellipsisbox sciencebox"><p>学术领域:' + $da[i].subject + '</p></div>' } if($da[i].industry) { add += '<div class="ellipsisbox industrybox"><p>应用行业:' + $da[i].industry + '</p></div>' } if($da[i].supportedServices) { add += '<div class="ellipsisbox provideservice"><p>应用用途:' + $da[i].supportedServices + '</p></div></div>' } add += "</div>" if(userid == $da[i]["editProfessor"]["id"]) { add += '<div class="operbox"><span class="operbtn consultbtn" id="' + $da[i]["editProfessor"]["id"] + '" style="display:none;">咨询</span><span style="display: none;" class="operbtn applybtn appl" resourceId=' + $da[i].resourceId + ' resourceName=' + $da[i].resourceName + ' editProfessor=' + $da[i].editProfessor.name + '>申请</span></div>' } else { add += '<div class="operbox"><span class="operbtn consultbtn" id="' + $da[i]["editProfessor"]["id"] + '">咨询</span><span style="display: none;" class="operbtn applybtn appl" resourceId=' + $da[i].resourceId + ' resourceName=' + $da[i].resourceName + ' editProfessor=' + $da[i].editProfessor.name + '>申请</span></div>' } add += '</div></div>' var $add = $(add); $("#professorList").append($add); if(data.data.data[i].images.length) { $add.find(".resourceImg").attr("src", "/images/resource/" + $da[i].resourceId + ".jpg"); } else { $add.find(".resourceImg").attr("src", "/images/default-resource.jpg"); } } if(isbind == true) { $(".tcdPageCode").createPage({ pageCount: Math.ceil(data.data.total / pageSize), current: data.data.pageNo, backFn: function(p) { getData(key, subject, industry, pageSize, p, false); } }); } } else { $.MsgBox.Alert("消息提醒", "请先登录再进行咨询"); $("#mb_btn_ok").val("去登录"); } //资源中点击咨询 //$(".consultbtn").bind("click",clickResouceConsultHandler); }, }); } } $(".about").on("click", '.consultbtn', function(e) { e.stopPropagation(); //阻止事件冒泡,影响点击咨询 e.cancelBubble = true; // ie下阻止冒泡 clickResouceConsultHandler($(this), $(this).attr('id')); }); var subjectList = function() { $.get("../ajax/dataDict/qaDictCode", { dictCode: "SUBJECT" }, function(data) { if(data.success) { //console.log(data); /*if (data.data.length <= 10) { $(".andmore").eq(0).hide(); }*/ $("#subject").find(".sub").remove(); for(var i = 0; i < data.data.length; i++) { $("#subject").append( "<a href='#' class='sub'title='" + data.data[i].caption + "'>" + data.data[i].caption + "</a>"); if(subb) { if(subb == data.data[i].caption) { $('.sub').eq(i).addClass('colorbg').siblings() .removeClass("colorbg"); } } if(i > 20) break; } } else { $.MsgBox.Alert("message", data.msg); } }) } var Address = function() { $.get("../ajax/dataDict/qaCity", { dictCode: "ADDRESS" }, function(data) { if(data.success) { $("#address").empty(); $("#address").prepend('<a href="#" class="colorbg no3" title="">不限</a>'); /*if (data.data.length <= 10) { $(".andmore").eq(2).hide(); }*/ for(var i = 0; i < data.data.length; i++) { $("#address").append( "<a href='#' title='" + data.data[i].caption + "'>" + data.data[i].caption + "</a>"); if(i > 20) break; } } else { $.MsgBox.Alert("message", data.msg); } }) } var industryList = function() { $.get("../ajax/dataDict/qaDictCode", { dictCode: "INDUSTRY" }, function(data) { //console.log(data); if(data.success) { /*if (data.data.length <= 10) { $(".andmore").eq(1).hide(); }*/ $("#industry").find(".indu").remove(); for(var i = 0; i < data.data.length; i++) { $("#industry").append( "<a href='#' class='indu'title='" + data.data[i].caption + "'>" + data.data[i].caption + "</a>"); if(i > 20) break; } } else { $.MsgBox.Alert("message", data.msg); } }) } var findProfessor = function() { if(subb) { subject = subb; } else { subject = $("#subject .colorbg")[0].title; } industry = $("#industry .colorbg")[0].title; pageSize = 10; getData(key, subject, industry, pageSize, 1, true, address); } //搜索框跳转页面 enter键搜索 $("#searchContent").keydown(function(e) { if(e.which == 13) { synContent(2); key = $("#searchContent").val(); $("#professorList").remove(); $(".aboutpro").append( '<div class="about-in" id="professorList"></div>') $(".tcdPageCode").remove(); $(".aboutpro").append('<div class="tcdPageCode"></div>'); getData(key, subject, industry, 10, 1, true, address); } }) $("#hsearchContent").keydown(function(e) { if(e.which == 13) { synContent(1); key = $("#searchContent").val(); $("#professorList").remove(); $(".aboutpro").append( '<div class="about-in" id="professorList"></div>') $(".tcdPageCode").remove(); $(".aboutpro").append('<div class="tcdPageCode"></div>'); getData(key, subject, industry, 10, 1, true, address); } }) $("#search1").on( "click", function() { $("#hsearchContent").val($("#searchContent").val()); key = $("#searchContent").val(); $("#professorList").remove(); $(".aboutpro").append( '<div class="about-in" id="professorList"></div>') $(".tcdPageCode").remove(); $(".aboutpro").append('<div class="tcdPageCode"></div>'); getData(key, subject, industry, 10, 1, true, address); }) // $("#hsearch1") $("#hsearch").on( "click", function() { $("#searchContent").val($("#hsearchContent").val()); key = $("#hsearchContent").val(); location.href = "javascript:;"; $("#professorList").remove(); $(".aboutpro").append( '<div class="about-in" id="professorList"></div>') $(".tcdPageCode").remove(); $(".aboutpro").append('<div class="tcdPageCode"></div>'); getData(key, subject, industry, 10, 1, true, address); }) subjectList(); industryList(); findProfessor(); Address(); $(".class1").eq(0).on( "click", "a", function() { $(this).addClass("colorbg").siblings().removeClass("colorbg"); key = $("#searchContent").val(); subject = $(this).attr('title'); $("#professorList").remove(); $(".aboutpro").append( '<div class="about-in" id="professorList"></div>') $(".tcdPageCode").remove(); $(".aboutpro").append('<div class="tcdPageCode"></div>'); getData(key, subject, industry, 10, 1, true, address); }); $(".class1").eq(1).on( "click", "a", function() { $(this).addClass("colorbg").siblings().removeClass("colorbg"); industry = $(this).attr('title'); key = $("#searchContent").val(); $("#professorList").remove(); $(".aboutpro").append( '<div class="about-in" id="professorList"></div>') $(".tcdPageCode").remove(); $(".aboutpro").append('<div class="tcdPageCode"></div>'); getData(key, subject, industry, 10, 1, true, address); }); $(".class1").eq(2).on( "click", "a", function() { $(this).addClass("colorbg").siblings().removeClass("colorbg"); address = $(this).attr('title'); key = $("#searchContent").val(); $("#professorList").remove(); $(".aboutpro").append( '<div class="about-in" id="professorList"></div>') $(".tcdPageCode").remove(); $(".aboutpro").append('<div class="tcdPageCode"></div>'); getData(key, subject, industry, 10, 1, true, address); }); /* 搜索分类展开 */ var listi = 0; $(".andmore").click(function() { $(this).find(".updown").css("background-position", "left"); $(this).parent().css("height", "48px"); if(listi % 2 == 0) { } else { $(this).find(".updown").css("background-position", "right"); $(this).parent().css("height", "auto"); } listi++; }) /*搜索分类背景切换*/ $(".class1").on("click", "a", function() { $(this).addClass("colorbg").siblings().removeClass("colorbg"); }) /*专家、资源菜单切换*/ // $(".lookwho").change(function(){ // //$(this).addClass("tabcurrent").siblings().removeClass("tabcurrent"); // //$(".aboutcon").eq($(this).index()).show().siblings().hide(); // if($(this).value == "0"){ // $(".aboutpro").show(); // $(".aboutresou").hide(); // } // else{ // $(".aboutresou").show(); // $(".aboutpro").hide(); // } // // }) //判断是搜寻专家还是资源 $(".lishow li").on( "click", function() { c = $(this).index(); $("#industry").find(".no2").addClass("colorbg").siblings() .removeClass("colorbg"); $("#subject").find(".nox").addClass("colorbg").siblings() .removeClass("colorbg"); key = $("#searchContent").val(); industry = ""; subject = ""; address = ""; if(c == 0) { sub = "SUBJECT"; indu = "INDUSTRY"; } else { sub = "SUBJECT"; indu = "INDUSTRY"; } industryList(); subjectList(); Address(); $("#professorList").remove(); $(".aboutpro").append( '<div class="about-in" id="professorList"></div>') $(".tcdPageCode").remove(); $(".aboutpro").append('<div class="tcdPageCode"></div>'); getData(key, subject, industry, pageSize, 1, true, address); }); // 查询资源详细信息 $('.about') .on( "click", '.remess', function() { var resourceID = $(this).attr("resourceId"); location.href = "resourceInfo.html?resourceId=" + resourceID; //ResourceMessage(); // $ // .ajax({ // "url": "/ajax/resource/" + resourceID, // "type": "get", // "async": true, // "success": function(info) { // if(info.success) { // $("#resourceName").text( // info.data.resourceName); // $("#supportedServices") // .text( // info.data.supportedServices); // $("#hopePayMethod").text( // info.data.hopePayMethod); // $("#cooperationNotes").text( // info.data.cooperationNotes); // $("#subject").text( // info.data.subject); // $("#industry").text( // info.data.industry); // $("#descp").text(info.data.descp); // $("#professor").text( // info.data.professor.name); // $(".resouImage").attr( // "src", // "/images/resource/" + // resourceID + // ".jpg"); // $(".resouImage") // .load(function() {}) // .error( // function() { // $(this) // .attr( // "src", // "/images/default-resource.jpg"); // }); // limitHeight(); // } else { // $.MsgBox.Alert('消息提醒', "系统异常!"); // } // }, // "error": function() { // $.MsgBox.Alert('message', 'failed') // } // }); }) // 资源申请 function getIdentity(professorId) { $ .ajax({ "url": "ajax/professor/" + professorId, "type": "get", "async": false, "success": function(data) { if(data.success) { $(".frmtype option")[0].value = data.data.name; $(".frmtype option")[1].value = data.data.organization.name; } else { $.MsgBox.Alert("消息提醒", "系统异常!"); } }, "error": function() { $.MsgBox.Alert('message', 'failddd') } }) } function replaceStr(s) { var pattern = new RegExp("-"); var rs = ""; for(var i = 0; i < s.length; i++) { rs = rs + s.substr(i, 1).replace(pattern, ''); } return rs; } $('.aboutpro') .on( "click", '.appl', function() { ResourceApply(); // 调用资源申请HTML创建函数 $(".limitBox").removeClass("limitBox"); $(".limitwords").removeClass("limitwords"); $(".limitwordbox").removeClass("limitwordbox"); // 获取当前时间并且格式化时间 var myDate = new Date(); var nowYear = myDate.getFullYear(); var nowMonth = myDate.getMonth() + 1; var nowDate = myDate.getDate(); if(nowMonth < 10) { nowMonth = "0" + nowMonth.toString(); } if(nowDate < 10) { nowDate = "0" + nowDate.toString(); } var now = nowYear + "-" + nowMonth + "-" + nowDate; $("#datepicker").val(now); $("#datepicker").datepicker({ "dateFormat": " yy-mm-dd" }); $(".timelo").css("display", "none"); var resName = $(this).attr("resourcename"); var name = $(this).attr("professor"); var resourceID = $(this).attr("resourceId"); $ .ajax({ "url": "/ajax/resource/" + resourceID, "type": "get", "async": false, "success": function(info) { if(info.success) { if(info.data.images.length) { $(".resouImage").attr( "src", "/images/resource/" + resourceID + ".jpg"); } else { $(".resouImage") .attr("src", "/images/default-resource.jpg"); } } } }) $(".namecon").text(name); $(".applysure").hide(); $(".btnboxup").hide(); $(".log").text(resName); getIdentity(userid); $("#deliver") .on( "click", function() { var $data = {}; $data.demandId = userid; $data.resourceId = resourceID; $data.detailDemand = $(".detail") .val(); // 去除时间里面的- 和字符串前后的空格 $data.deliverTime = replaceStr($ .trim($(".dealTime").val())); $data.operationStatus = 1; $data.applysquare = $( ".frmtype option:selected") .val(); $ .ajax({ "url": "/ajax/operation", "type": "POST", "success": function( rdata) { if(rdata.success) { $.MsgBox .Alert( '消息提醒', '资源"' + resName + '"申请发送成功!'); $("#mb_msgicon").css("background", 'url("images/sign_icon_chenggong_nor.png") 0% 0% / contain'); $(".blackcover") .remove(); $("body") .css( "position", ""); // location.reload(true); } else { $.MsgBox .Alert( '消息提醒', '资源"' + resName + '"申请发送失败,请重新申请!'); } }, "data": $data, "beforeSend": function() { /* console.log(this.data) */ }, "contentType": "application/x-www-form-urlencoded", dataType: "json" }); }); }); // 找专家中 点击咨询处理函数 function clickSeachProConsultHandler() { if(userid != null && userid != 'null' && userid != undefined && userid != 'undefined') { var professorId = $(this).attr("id"); ConsultApply(); //点击的发送 $("#sendConsultBtn").click(function() { sendConsultHandler($(this).attr("proId")) }); concultProInfo(professorId); } else { $.MsgBox.Alert("消息提醒", "请先登录再进行咨询"); $("#mb_btn_ok").val("去登录"); var aele = document.createElement('a'); $("#mb_btnbox").append(aele); $("#mb_btnbox a").css({ 'display': "block", 'width': '100%', 'height': '40px', 'position': 'absolute', 'bottom': '-6px', 'left': '0' }); aele.setAttribute('href', '../login.html'); } }; //找资源中 点击咨询 obj点击对象 function clickResouceConsultHandler(obj, professorId) { if(userid && userid != null && userid != 'null' && userid != undefined && userid != 'undefined') { // var professorId = $(this).attr("id"); ConsultApply(); //默认选中资源咨询和标题 for(var i = 0; i < $("ul.menucon").children().length; i++) { $("ul.menucon").children().eq(i).removeClass("clicknow"); $("ul.menucon").children().eq(1).addClass("clicknow"); } var item = obj.parent().parent().parent(); var consultTitleVal = item.find(".resouname").text(); $("#consultTitle").val("关于" + consultTitleVal + "的咨询"); //点击的发送 $("#sendConsultBtn").click(function() { sendConsultHandler($(this).attr("proId")); //common.js中 }); concultProInfo(professorId); //common.js中 } else { $.MsgBox.Alert("消息提醒", "请先登录再进行咨询"); $("#mb_btn_ok").val("去登录"); var aele = document.createElement('a'); $("#mb_btnbox").append(aele); $("#mb_btnbox a").css({ 'display': "block", 'width': '100%', 'height': '40px', 'position': 'absolute', 'bottom': '-6px', 'left': '0' }); aele.setAttribute('href', '../login.html'); } }; /* function sendConsultHandler(){ var professorId = $(this).attr("proId"); var consult_type = $(".clicknow").text();//咨询类型 var consult_title = $("#consultTitle").val();//咨询主题 var consult_content = $("#consultcontent").val();//咨询内容 var consultStr = { "consultType":consult_type, "consultTitle":consult_title, "consultContant":consult_content, "professorId":professorId, "consultantId":userid }; if(consult_type == '' || consult_title == '' || consult_content == ''){ $.MsgBox.Alert("message","请填写完整"); }; if(consult_type == ''){ $.MsgBox.Alert("消息","请选择联系目的"); } if(consult_title == ''){ $.MsgBox.Alert("消息","请填写咨询目的"); } if(consult_content == ''){ $.MsgBox.Alert("消息","请填写咨询内容"); } if(userid && userid != null && userid != "null" && consult_type != '' && consult_title != '' && consult_content != '' ){ $.ajax({ "url" :"/ajax/consult", "type" : "post", //传值:咨询类型、主题、内容、专家id、申请人id "data" : consultStr, "contentType" : "application/x-www-form-urlencoded", "dataType" : "json", "success" : function(response) { consultId = response.data;//咨询id }, "error":function (){ $.MsgBox.Alert("消息","咨询申请失败"); }, "complete":function(){ //$(".consultapply").remove(); $(".blackcover").remove(); $("body").css("position",""); $.MsgBox.Alert("消息","咨询申请成功"); }, }); } }*/ });
ekexiu.app - Gogs: Go Git Service

Ei kuvausta

icon-mono.png 758B

jiapeng/portal-front - Gogs: Go Git Service

1 Commitit (479500f72c4dbfe77c4d4e856659b646479fd382)

Tekijä SHA1 Viesti Päivämäärä
  luyanan d882c7d5d2 邀请好友页面 7 vuotta sitten
portal-front - Gogs: Go Git Service

portal html css js resource

cmp-pwdReset03.html 2.8KB

    <!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 class="covbodyBg"> <div class="containerCon"> <a href="../index.html" class="headlogo signLogo"></a> </div> <!--中间--> <div id="container"> <div class="containerCon contConP"> <div class="covFrmblock"> <form class="cmpAllFrm"> <p class="h1Font alignCenter cmpColor">重置企业账户密码</p> <ul class="cmpAllUl cmpCoverUl unreset" id="cmpCoverUl"> <li> <ul class="form_head clearfix"> <li class="col-w-4 stepActive"> <span class="icon_step step1"></span> 输入企业邮箱 </li> <li class="col-w-4 stepActive"> <span class="icon_step step2g"></span> 接收密码重置邮件 </li> <li class="col-w-4 stepActive"> <span class="icon_step step3g"></span> 重置密码 </li> </ul> </li> <li> <input type="password" class="frmtype frmtypeW" placeholder="请设置您的登录密码" id="newPassword"/> <div class="frmmsg msgReset1"><span></span></div> </li> <li> <input type="password" class="frmtype frmtypeW" placeholder="请再次输入密码确认" id="newPasswordok"/> <div class="frmmsg msgReset2"><span></span></div> </li> <li> <button type="button" class="frmtype frmtypeW btnModel btnModelBig headRadius save-block" disabled id="paswSubmit">重置密码</button> </li> </ul> <ul class="cmpAllUl cmpCoverUl onreset displayNone"> <li class="failImg" style="margin-top:40px;" ></li> <li class="importBlock"> <p class="importTip">很抱歉,当前的链接已失效</p> <p class="smalltip alignCenter" id="smalltip">小提醒:邮件内的链接有效时长为10分钟。</p> </li> <!--验证激活成功-已登录时隐藏按钮--> <li> <button type="button" class="frmtype frmtypeW btnModel btnModelBig headRadius save-block" id="butGo">重新找回密码</button> </li> </ul> </form> </div> </div> </div> <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-pwdReset03.js"></script> </body> </html>
portal-front - Gogs: Go Git Service

portal html css js resource

basic.css 1.5KB

    .wrap{ height:462px;} .wl{ float:left; width: 100%; height:100%} .wr{ float:left; width:225px;display: inline; } .jy-up-ch{ position: relative; width: 395px;top: -80px;left: 50px;} .jy-up-ch .bch{ display: block; position: absolute; background-repeat: no-repeat; background-image: url(../images/bch.jpg); } .jy-up-ch .bch1{ width: 15px; height: 20px; background-position: 0 0; left: 0; top: 10px; } .jy-up-ch .bch2{ width: 39px; height: 24px; background-position: -15px 0px; left: 50%; margin-left: -39px; top: 7px; } .jy-up-ch .bch3{ width: 37px; height: 24px; background-position: -54px 0px; left: 50%; top: 7px; } .jy-up-ch .bch4{ width: 15px; height: 20px; background-position: -91px 0px; right: 0; top: 10px; } .jy-up-ch .bch1:hover{ background-position: 0 -27px; } .jy-up-ch .bch2:hover{ background-position: -15px -24px;} .jy-up-ch .bch3:hover{ background-position: -54px -24px;} .jy-up-ch .bch4:hover{ background-position: -91px -27px;} .jc-demo-box{position: relative; background-color: #f8f8f8; width: 100%; height: 100%; overflow: hidden; } .jcrop_w{ width: 395px; height: 340px; overflow: hidden; } .jcrop_w img{ position: absolute; } .pre-1,.pre-2,.pre-3{ border: 1px solid #EAEAEA; margin:auto;} .pre-1 img,.pre-2 img,.pre-3 img{width:100%; height:100%} .pre-1{ width: 200px; height: 200px; border-radius:50%; overflow:hidden; } .pre-2{ width: 50px; height: 50px;border-radius:50%; overflow:hidden; margin-top: 13px; } .pre-3{ width: 26px; height: 26px;border-radius:50%; overflow:hidden;margin-top: 13px; }
ekexiu.app - Gogs: Go Git Service

Nav apraksta

field18.png 4.1KB

ekexiu.app - Gogs: Go Git Service

Brak opisu

field04.png 4.3KB

ekexiu.app - Gogs: Go Git Service

No Description

2.jpg 158KB

portal-front - Gogs: Go Git Service

portal html css js resource

Invitation.html 3.8KB

    <!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 rel="stylesheet" href="../css/bootstrap.min.css"> <link rel="stylesheet" href="../css/reset.css"> <link rel="stylesheet" href="../css/common.css"> <link rel="stylesheet" href="../css/share.css"> <style type="text/css"> html,body{min-height: auto;background: url(../images/wechat_bg_img_nor@3x.png) no-repeat;background-size:cover;background-attachment: fixed;} </style> </head> <body class="invitebody"> <div class="contentBody2" style="max-width: 640px;margin:auto;"> <div class="logobox"> <a class="logolink" href="javascript:;"> <img class="logoimg" src="../images/wechat_icon_logo_nor@3x.png" /> </a> </div> <form class="form-inline" role="form" style="width: 90%;margin:auto"> <!--填写表单信息--> <div class="formblock"> <div class="inviteTit"> <span></span> 邀请您加入「科袖」 </div> <div class="form-group"> <div class="input-group"> <input type="text" class="form-control input_name" placeholder="请输入您的姓名" id="username" autocomplete="off"> </div> <div class="input-group"> <input type="phone" class="form-control input_phone" placeholder="请输入您的手机号码" id="userphone" autocomplete="off"> </div> <div class="input-group"> <input class="form-control input_code" type="text" placeholder="请输入验证码" id="code" autocomplete="off"> <button type="button" class="btn input-group-addon canPoint" id="obtain-code">获取验证码</button> </div> <div class="input-group"> <input type="password" class="form-control input_pwd" placeholder="请设置您的登录密码" id="password" autocomplete="off"> </div> </div> <div class="checkboxT checkReg"> <div class="checkBg"> 已同意 <a href="privacyApp.html" class="protocollink" target="_blank">科袖网用户协议</a> </div> </div> <button type="button" class="btn btn-lg btn-block canPoint" disabled id="regbtn">注册</button> </div> <!--注册成功时显示--> <div class="inviteSucceed displayNone"> <div class="inviteTit"> 注册成功!<br/>欢迎您加入「科袖」 </div> <a style="margin:60px 0 54px;" href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app" class="btn btn-lg btn-block canPoint">点击下载「科袖」app</a> </div> <!--文档信息--> <div class="inforbox"> <img src="../images/wechat_bg_img_wenben_nor@3x.png" width="100%"/> <ul> <li> <img class="lefticon" src="../images/wechat_icon_pro_nor@3x.png"/> <div class="rightcon"> <h2>认证成为「科袖」专家</h2> <p>寻找企业合作,将您的科研价值变现!</p> </div> </li> <li> <img class="lefticon" src="../images/wechat_icon_xuqiu_nor@3x.png"/> <div class="rightcon"> <h2>发布研发需求</h2> <p>寻找专家帮您解决研发难题!</p> </div> </li> <li> <img class="lefticon" src="../images/wechat_icon_yaoqing_nor@3x.png"/> <div class="rightcon"> <h2>邀请好友加入</h2> <p>获取丰厚积分奖励,好礼随意换!</p> </div> </li> </ul> </div> </form> </div> <div class="bomb-box" style="display: none;"></div> <script type="text/javascript" src="../js/jquery-1.11.1.js" ></script> <script type="text/javascript" src="../js/jquery.cookie.js" ></script> <script type="text/javascript" src="../js/common.js" ></script> <script type="text/javascript" src="../js/invite-friends.js" ></script> </body> </html>
portal-front - Gogs: Go Git Service

portal html css js resource

scrollfix.js 7.0KB

    (function($) { //URI:http://caibaojian.com/scrollfix //author:caibaojian //website:http://caibaojian.com //descirption:scroll and fixed some div $.fn.scrollFix = function(options) { return this.each(function() { var opts = $.extend({}, $.fn.scrollFix.defaultOptions, options); var obj = $(this), base = this, selfTop = 0, selfLeft = 0, toTop = 0, parentOffsetLeft = 0, parentOffsetTop = 0, outerHeight, outerWidth, objWidth = 0, placeholder = jQuery('<div>'), //创建一个jquery对象 optsTop = opts.distanceTop, //定义到顶部的高度 endfix = 0; //开始停止固定的位置 var originalPosition; var originalOffsetTop; var originalZIndex; var lastOffsetLeft = -1; var isUnfixed = true; //如果没有找到节点,不进行处理 if (obj.length <= 0) { return; } if (lastOffsetLeft == -1) { originalZIndex = obj.css('z-index'); position = obj.css('position'); originalPosition = obj.css('position'); originalOffsetTop = obj.css('top'); } var zIndex = obj.css('zIndex'); if (opts.zIndex != 0) { zIndex = opts.zIndex; } //获取相对定位或者绝对定位的父类 var parents = obj.parent(); var Position = parents.css('position'); while (!/^relative|absolute$/i.test(Position)) { //检测浮动元素的父类元素定位为'relative'或者'absolute',是的话退出,否则的话,执行循环,继续寻找它的父类 parents = parents.parent(); Position = parents.css('position'); if (/^body|html$/i.test(parents[0].tagName)) break; //假如父类元素的标签为body或者HTML,说明没有找到父类为以上的定位,退出循环 } var ie6 = !-[1, ] && !window.XMLHttpRequest; //兼容IE6 var resizeWindow = false; function resetScroll() { setUnfixed(); selfTop = obj.offset().top; //对象距离顶部高度 selfLeft = obj.offset().left; //对象距离左边宽度 outerHeight = obj.outerHeight(); //对象高度 outerHeight = parseFloat(outerHeight) + parseFloat(obj.css('marginBottom').replace(/auto/, 0)); outerWidth = obj.outerWidth(); //对象外宽度 // objWidth = obj.width(); objWidth = obj.outerWidth(true); var documentHeight = $(document).height(); //文档高度 var startTop = $(opts.startTop), //开始浮动固定对象 startBottom = $(opts.startBottom), toBottom, //停止滚动位置距离底部的高度 ScrollHeight; //对象滚动的高度 //计算父类偏移值 if (/^body|html$/i.test(parents[0].tagName)) { //当父类元素非body或者HTML时,说明找到了一个父类为'relative'或者'absolute'的元素,得出它的偏移高度 parentOffsetTop = 0, parentOffsetLeft = 0; } else { parentOffsetLeft = parents.offset().left, parentOffsetTop = parents.offset().top; } // 计算父节点的上边到顶部距离 // 如果 body 有 top 属性, 消除这些位移 var bodyToTop = parseInt(jQuery('body').css('top'), 10); if (!isNaN(bodyToTop)) { optsTop += bodyToTop; } //计算停在底部的距离 if (!isNaN(opts.endPos)) { toBottom = opts.endPos; } else { toBottom = parseFloat(documentHeight - $(opts.endPos).offset().top); } //计算需要滚动的高度以及停止滚动的高度 ScrollHeight = parseFloat(documentHeight - toBottom - optsTop), endfix = parseFloat(ScrollHeight - outerHeight); //计算顶部的距离值 if (startTop[0]) { var startTopOffset = startTop.offset(), startTopPos = startTopOffset.top; selfTop = startTopPos; } if (startBottom[0]) { var startBottomOffset = startBottom.offset(), startBottomPos = startBottomOffset.top, startBottomHeight = startBottom.outerHeight(); selfTop = parseFloat(startBottomPos + startBottomHeight); } toTop = selfTop - optsTop; toTop = (toTop > 0) ? toTop : 0; var selfBottom = documentHeight - selfTop - outerHeight; //如果滚动停在底部的值不为0,并且自身到底部的高度小于上面这个值,不执行浮动固定 if ((toBottom != 0) && (selfBottom <= toBottom)) { return; } } function setUnfixed() { if (!isUnfixed) { lastOffsetLeft = -1; placeholder.css("display", "none"); obj.css({ 'z-index': originalZIndex, 'width': '', 'position': originalPosition, 'left': '', 'top': originalOffsetTop, 'margin-left': '' }); obj.removeClass('scrollfixed'); isUnfixed = true; } } function onScroll() { lastOffsetLeft = 1; var ScrollTop = $(window).scrollTop(); if (opts.bottom != -1) { ScrollTop = ScrollTop + $(window).height() - outerHeight - opts.bottom; } if (ScrollTop > toTop && (ScrollTop < endfix)) { if (ie6) { //IE6则使用这个样式 obj.addClass(opts.baseClassName).css({ "z-index": zIndex, "position": "absolute", "top": opts.bottom == -1 ? ScrollTop + optsTop - parentOffsetTop : ScrollTop - parentOffsetTop, "bottom": 'auto', "left": selfLeft - parentOffsetLeft, 'width': objWidth }) } else { obj.addClass(opts.baseClassName).css({ "z-index": zIndex, "position": "fixed", "top": opts.bottom == -1 ? optsTop : '', "bottom": opts.bottom == -1 ? '' : opts.bottom, "left": selfLeft, "width": objWidth }); } placeholder.css({ 'height': outerHeight, 'width': outerWidth, 'display': 'block' }).insertBefore(obj); } else if (ScrollTop >= endfix) { obj.addClass(opts.baseClassName).css({ "z-index": zIndex, "position": "absolute", "top": endfix - parentOffsetTop + optsTop, 'bottom': '', "left": selfLeft - parentOffsetLeft, "width": objWidth }); placeholder.css({ 'height': outerHeight, 'width': outerWidth, 'display': 'block' }).insertBefore(obj) } else { obj.removeClass(opts.baseClassName).css({ "z-index": originalZIndex, "position": "static", "top": "", "bottom": "", "left": "" }); placeholder.remove() } } var Timer = 0; // if (isUnfixed) { resetScroll(); // } $(window).on("scroll", function() { if (Timer) { clearTimeout(Timer); } Timer = setTimeout(onScroll, 0); }); // 当发现调整屏幕大小时,重新执行代码 $(window).on("resize", function() { if (Timer) { clearTimeout(Timer); } Timer = setTimeout(function() { isUnfixed = false; resetScroll(); onScroll(); }, 0); }); }) } $.fn.scrollFix.defaultOptions = { startTop: null, //滑到这个位置顶部时开始浮动,默认为空 startBottom: null, //滑到这个位置末端开始浮动,默认为空 distanceTop: 0, //固定在顶部的高度 endPos: 0, //停靠在底部的位置,可以为jquery对象 bottom: -1, //底部位置 zIndex: 0, //z-index值 baseClassName: 'scrollfixed' //开始固定时添加的类 }; })(jQuery);
ekexiu.app - Gogs: Go Git Service

Brak opisu

iconfont.ttf 18KB

ekexiu.app - Gogs: Go Git Service

Geen omschrijving

picture-upload.js 11KB

    mui.plusReady(function() { var img_obj = document.querySelector("#canvas_img"); var canvas_ok = document.querySelector("#canvas_ok"); var list = plus.webview.currentWebview(); var userId = plus.storage.getItem('userid'); var Orientation; var angle = 0; var flag = list.flag; var headFlag = list.headFlag; var resouFlag = list.resouFlag; console.log(resouFlag) img_obj.setAttribute("src", list.imgurl); canvas_ok.addEventListener("tap", function() { save_img(); imgOk = document.querySelector("#img_base64").value; console.log(imgOk) console.log(flag); console.log(list.resourceId); //alert(angle) if(flag == 1) { var urlAdd = baseUrl + "/ajax/images/saveResImg"; var $data = { "resourceId": list.resourceId, "base64": imgOk, "angle": angle, } } else { var urlAdd = baseUrl + '/ajax/image/saveHead'; var $data = { "id": userId, "base64": imgOk, "angle": angle, } } mui.ajax(urlAdd, { data: $data, dataType: 'json', //数据格式类型 type: 'post', //http请求类型 timeout: 10000, success: function(data) { if(data.success) { plus.nativeUI.toast("图片上传成功", toastStyle); if(flag == 0) { if(headFlag == 2) { var Page = plus.webview.getWebviewById('html/studentUpdata.html'); mui.fire(Page, 'newId'); } else if(headFlag == 1) { var Page = plus.webview.getWebviewById('html/companyUpdata.html'); mui.fire(Page, 'newId'); } else if(headFlag == 0) { var Page = plus.webview.getWebviewById('html/proinforupdate.html'); mui.fire(Page, 'newId'); } var Pa = plus.webview.getWebviewById('html/myaccount.html'); mui.fire(Pa, 'photoUser'); } else if(flag == 1) { if(resouFlag == 0) { var Page = plus.webview.getWebviewById('html/proinforupdate.html'); mui.fire(Page, 'newId', { rd: 1 }); } else if(resouFlag == 1) { var Page = plus.webview.getWebviewById('html/companyUpdata.html'); mui.fire(Page, 'newId', { rd: 1 }); } else if(resouFlag == 2) { var Page = plus.webview.getWebviewById('html/studentUpdata.html'); mui.fire(Page, 'newId', { rd: 1 }); } var Pa = plus.webview.getWebviewById('resinforupdate.html'); mui.fire(Pa, 'resourceMess'); } mui.currentWebview.close(); mui.back(); } else { plus.nativeUI.toast("图片上传失败", toastStyle); } }, error: function(data) { plus.nativeUI.toast("服务器链接超时", toastStyle); } }); }) //获取手机屏幕宽高 var c_w = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var c_h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; var can_obj = document.querySelector("#canvas"); var img_obj = document.querySelector("#canvas_img"); var div_obj = document.querySelector("#canvas_div"); var posX = 0, posY = 0; //相对坐标 var scale = 0; //记录在缩放动作执行前的 缩放值 var start_X1 = 0, start_Y1 = 0, start_X2 = 0, start_Y2 = 0; var start_sqrt = 0; //开始缩放比例 var sqrt = 1; var left_x = 0, left_y = 0; //计算 偏移量 设置画布中的X,Y轴 (加偏移量) img_obj.onload = function() { EXIF.getData(img_obj, function() { //alert(EXIF.pretty(this)); EXIF.getAllTags(this); //alert(EXIF.getTag(this, 'Orientation')); Orientation = EXIF.getTag(this, 'Orientation'); //return; if(Orientation == 6) { //alert('需要顺时针(向左)90度旋转'); angle = 90; var current = 0; //alert(angle); //objImg.rotate(degree); current = (current + 90) % 360; img_obj.style.transform = 'rotate(' + current + 'deg)'; can_obj.style.transform = 'rotate(' + current + 'deg)'; } if(Orientation == 3) { //alert('需要顺时针(向左)90度旋转'); angle = 180; var current = 0; //objImg.rotate(degree); current = (current + 180) % 360; img_obj.style.transform = 'rotate(' + current + 'deg)'; can_obj.style.transform = 'rotate(' + current + 'deg)'; } if(Orientation == 8) { //alert('需要顺时针(向左)90度旋转'); angle = -90; var current = 0; //objImg.rotate(degree); current = (current - 90) % 360; img_obj.style.transform = 'rotate(' + current + 'deg)'; can_obj.style.transform = 'rotate(' + current + 'deg)'; } }); load(); } function load() { //设置canvas 宽度(全屏显示),高度,上下居中显示 can_obj.width = c_w - 50; can_obj.height = c_w - 50; can_obj.style.top = (c_h - c_w - 2) / 2 + "px"; // can_obj.style.left ="25px"; //设置图片自适应大小及图片的居中显示 autoResizeImage(c_w, c_h, img_obj); //img_obj.width=c_w - 50; img_obj.style.top = (c_h - img_obj.height - 50) / 2 + "px"; img_obj.style.left = (c_w - img_obj.width) / 2 + "px"; document.querySelector("#canvas_div").addEventListener('touchstart', touch, false); document.querySelector("#canvas_div").addEventListener('touchmove', touch, false); document.querySelector("#canvas_div").addEventListener('touchend', touch, false); ctx_img = can_obj.getContext("2d"); var ctx_X = (can_obj.width - img_obj.width) / 2, ctx_Y = (can_obj.height - img_obj.height) / 2; ctx_img.drawImage(img_obj, ctx_X, ctx_Y, img_obj.width, img_obj.height); //初始化 canvas 加入图片 function touch(event) { var event = event || window.event; event.preventDefault(); //阻止浏览器或body 其他冒泡事件 var mv_x1 = event.changedTouches[0].clientX, mv_y1 = event.changedTouches[0].clientY; //手指坐标 var img_left = img_obj.left, img_top = img_obj.top; //图片坐标 if(event.touches.length == 1) { //单指操作 if(event.type == "touchstart") { //开始移动 posX = mv_x1 - img_obj.offsetLeft; //获取img相对坐标 //posd = mv_x1 - img_obj.offsetRight; //获取img相对坐标 posY = mv_y1 - img_obj.offsetTop; } else if(event.type == "touchmove") { //移动中 var _x = mv_x1 - posX; //移动坐标 var _y = mv_y1 - posY; img_obj.style.left = _x + "px"; img_obj.style.top = _y + "px"; ctx_img.clearRect(0, 0, can_obj.width, can_obj.height); //清除画布 console.log(Orientation); if(Orientation == 6) { ctx_img.drawImage(img_obj, _y - parseFloat(can_obj.style.top) + left_y - 120 / 2, -(_x + left_x / 2 + 32), img_obj.width * sqrt, img_obj.height * sqrt); //画布内图片移动 } else { ctx_img.drawImage(img_obj, _x + left_x / 2 - 25, _y - parseFloat(can_obj.style.top) + left_y / 2, img_obj.width * sqrt, img_obj.height * sqrt); //画布内图片移动 } } } /*else if(event.touches.length == 2) { //双指操作 if(event.type == "touchstart") { scale = img_obj.style.Transform == undefined ? 1 : parseFloat(img_obj.style.Transform.replace(/[^0-9^\.]/g, "")); //获取在手指按下瞬间的放大缩小值(scale),作用,在移动时,记录上次移动的放大缩小值 start_X1 = event.touches[0].clientX; //记录开始的坐标值,作用:在下次放大缩小后,去掉上次放大或缩小的值 start_Y1 = event.touches[0].clientY; start_X2 = event.touches[1].clientX; start_Y2 = event.touches[1].clientY; start_sqrt = Math.sqrt((start_X2 - start_X1) * (start_X2 - start_X1) + (start_Y2 - start_Y1) * (start_Y2 - start_Y1)) / 200; //获取在缩放时 当前缩放的值 } else if(event.type == "touchmove") { var mv_x2 = event.touches[1].clientX, mv_y2 = event.touches[1].clientY; var move_sqrt = Math.sqrt((mv_x2 - mv_x1) * (mv_x2 - mv_x1) + (mv_y2 - mv_y1) * (mv_y2 - mv_y1)) / 200; //动态获取上一次缩放值(随时变更),在下次缩放时减去上一次的值,作用:防止累加之前的缩放 sqrt = move_sqrt - start_sqrt + scale; //求出缩放值 img_obj.style.webkitTransform = "scale(" + sqrt + ")"; //设置放大缩小 img_obj.style.Transform = "scale(" + sqrt + ")"; ctx_img.clearRect(0, 0, can_obj.width, can_obj.height); //清除画布 var dImg_left = parseFloat(img_obj.style.left.replace("px", "")), dImg_top = parseFloat(img_obj.style.top.replace("px", "")); var w = img_obj.width, h = img_obj.height, sw = w * sqrt, sh = h * sqrt; left_x = w - sw; //计算 偏移量 设置画布中的X,Y轴 (加偏移量) 注:canvas 原点放大(canvas中图片左上角坐标),css3 scale 中点放大 left_y = h - sh; ctx_img.drawImage(img_obj, dImg_left + left_x / 2 - 25, dImg_top - parseFloat(can_obj.style.top.replace("px", "")) + left_y / 2, sw, sh); //画布内图片重置 } }*/ } } //window.addEventListener('load', load, false); //裁图 function save_img() { var base64 = can_obj.toDataURL("image/jpeg", 1); var subbase = base64.substring(22); document.querySelector("#img_base64").value = subbase; } //图片自适应 function autoResizeImage(maxWidth, maxHeight, objImg) { //var img = new Image(); //img.src = objImg.src; //var hRatio; //var wRatio; //var ratio = 1; var w = objImg.width; var h = objImg.height; //alert(w); //alert(h); wRatio = maxWidth / w; hRatio = maxHeight / h; if(w > maxWidth) { if(w > h) { objImg.height = maxWidth - 50; //alert('1') } else { objImg.width = c_w - 46; //objImg.height=maxHeight; // alert('2') } } else { objImg.width = maxWidth - 50; objImg.height = maxWidth - 50; } /* if(w < maxWidth && h < maxHeight){ objImg.width=maxWidth-50; objImg.height=maxWidth-50; alert('2') } if(w > maxWidth && h < maxHeight){ objImg.width=maxWidth-50; objImg.height=maxWidth-50; alert('3') }*/ /*if (w < maxWidth && h < maxHeight) { return; alert('1') } if (maxWidth == 0 && maxHeight == 0) { ratio = 1; alert('2') } else if (maxWidth == 0) { if (hRatio < 1) { ratio = hRatio; alert('3') } } else if (maxHeight == 0) { if (wRatio < 1) { ratio = wRatio; alert('4') } } else if (wRatio < 1 || hRatio < 1) { ratio = (wRatio <= hRatio ? wRatio : hRatio); alert('5') } else { ratio = (wRatio <= hRatio ? wRatio : hRatio) - Math.floor(wRatio <= hRatio ? wRatio : hRatio); alert('6') } if (ratio < 1) { if (ratio < 0.5 && w < maxWidth && h < maxHeight) { ratio = 1 - ratio; } w = w * ratio; h = h * ratio; alert('7') objImg.width=maxWidth-45; objImg.height=maxHeight; }*/ // objImg.height = h+50; //objImg.width = w; } })
Sign In - Gogs: Go Git Service

Sign In