e5bb021ab0d2bd4784"> ekexiu.app - Gogs: Go Git Service

説明なし

searchhome.js 21KB

    //搜索首页 var ifdiv = false; var bigClass = 1, allPages = 1; // 总页数; var key = "", subject = "", industry = "", province = "", address = "", authentication = "", pageSize = 0, pageNo = 1; var showblock = document.getElementById("li_show"); var selectblock = document.getElementById("div_select"); var searchVal = document.getElementById("searchval"); var table = document.body.querySelector('.list'); var yyhy = document.getElementById("yyhy"); var xsly = document.getElementById("xsly"); var provinceVal = document.getElementById("provinceval"); var addressVal = document.getElementById("addressval"); var subjectid = document.getElementById("subjectid"); var industryid = document.getElementById("industryid"); var nodatabox = document.getElementById("nodatabox"); mui.init({ pullRefresh: { container: '#pullrefresh3', up: { contentrefresh: '正在加载...', callback: pullupRefresh, //auto:true } } }); function pullupRefresh() { pageNo = ++pageNo; console.log(pageNo) key = searchVal.value; setTimeout(function() { expert2(key, subject, industry, province, address, authentication, 10, pageNo) }, 1000); mui('#pullrefresh3').pullRefresh().refresh(true); } if(mui.os.plus) { mui.plusReady(function() { setTimeout(function() { mui('#pullrefresh3').pullRefresh().pulldownLoading(); }, 500); }); } else { mui.ready(function() { mui('#pullrefresh3').pullRefresh().pulldownLoading(); }); } mui.plusReady(function(){ /*点击专家和资源列表*/ mui('.list').on('tap','a',function(){ var id=this.getAttribute("data-id"); //console.log(id); plus.nativeUI.showWaiting();//显示原生等待框 if(bigClass==1){ plus.webview.create("../html/proinforbrow.html",'proinforbrow.html',{},{proid:id}); }else{ plus.webview.create("../html/resinforbrow.html",'resinforbrow.html',{},{resourceId:id}); } }) var self = plus.webview.currentWebview(); if(self.key==undefined){ self.key=""; }else{ key=self.key; searchVal.value=key; } if(self.subject==undefined){ self.subject="学术领域"; }else{ subject=self.subject; subjectid.innerText = self.subject; } bigClass=self.bigClass; if(bigClass==1){ selectblock.innerText='专家'; }else{ selectblock.innerText='资源'; } expert(key, subject, industry, province, address, authentication, 10, 1); }) /*搜专家搜资源的下拉选择框*/ selectblock.addEventListener('tap', function() { showblock.style.display = 'block'; }); mui("#li_show").on('tap', 'li', function() { pageNo = 1 bigClass = this.getAttribute("data-num"); if(bigClass==1){ searchVal.setAttribute("placeholder","输入专家姓名、研究方向等关键字"); }else{ searchVal.setAttribute("placeholder","输入资源名称、应用用途等关键字"); } selectblock.innerHTML = this.innerHTML; showblock.style.display = 'none'; plus.nativeUI.showWaiting(); expert(key, subject, industry, province, address, authentication, 10, 1); }); /*按键字搜索*/ searchval.addEventListener("keyup", function() { var e = event || window.event || arguments.caller.arguments[0]; if(e.keyCode == 13) { pageNo = 1 key = searchVal.value; /* console.log(key); console.log(subject); console.log(industry); console.log(address); console.log(province); console.log(authentication);*/ plus.nativeUI.showWaiting(); expert(key, subject, industry, province, address, authentication, 10, 1); } }) /*省会*/ mui(".provinceval").on('tap', 'a', function() { key = searchVal.value; province = this.innerText; document.querySelector('#provinceval li a.active').classList.remove('active'); this.classList.add("active"); if(province == "全国") { province = ""; address = ""; document.getElementById("addressid").innerText = "全国"; addressVal.innerHTML = ""; plus.nativeUI.showWaiting(); mui('.mui-popover').popover('hide'); expert(key, subject, industry, province, address, authentication, 10, 1); } else { mui.ajax(baseUrl + '/ajax/dataDict/qaCity', { data: { "dictCode": "ADDRESS", province: province }, dataType: 'json', //数据格式类型 type: 'GET', //http请求类型 timeout: 10000, success: function(data) { if(province == "北京市" || province == "上海市" || province == "天津市" || province == "重庆市" ){ var finallist = ''; }else{ var finallist = '<li class="mui-table-view-cell"><a class="active">全省</a></li>'; } console.log(data.success) console.log(JSON.stringify(data.data)) if(data.success && data.data != "") { mui.each(data.data, function(i, n) { finallist += '<li class="mui-table-view-cell"><a >' + n.caption + '</a></li>'; }); addressVal.innerHTML = finallist; addressVal.firstChild.childNodes.item(0).classList.add('active'); } }, error: function() { plus.nativeUI.toast("服务器链接超时", toastStyle); } }); } }); /*市检索*/ mui("#addressval").on('tap', 'a', function() { key = searchVal.value; address = this.innerText; document.getElementById("addressid").innerText = address; document.querySelector('#addressval li a.active').classList.remove('active'); this.classList.add("active"); if(address == "全省") { address = ""; document.getElementById("addressid").innerText = province; } //console.log(province); //console.log(address); plus.nativeUI.showWaiting(); mui('.mui-popover').popover('hide'); expert(key, subject, industry, province, address, authentication, 10, 1); }) /*应用行业*/ mui(".yyhy").on('tap', 'a', function() { pageNo = 1 key = searchVal.value; industry = this.innerText; industryid.innerText = industry; document.querySelector('#yyhy li a.active').classList.remove('active'); this.classList.add("active"); if(industry == "不限") { industry = ""; industryid.innerText ="应用行业"; } plus.nativeUI.showWaiting(); mui('.mui-popover').popover('hide'); /*console.log(key); console.log(subject); console.log(industry); console.log(address); console.log(province); console.log(authentication);*/ expert(key, subject, industry, province, address, authentication, 10, 1); }); /*学术领域*/ mui(".xsly").on('tap', 'a', function() { pageNo = 1 key = searchVal.value; subject = this.innerText; subjectid.innerText = subject; document.querySelector('#xsly li a.active').classList.remove('active'); this.classList.add("active"); if(subject == "不限") { subject = ""; subjectid.innerText="学术领域"; } /* console.log(key); console.log(subject); console.log(industry); console.log(address); console.log(province); console.log(authentication);*/ plus.nativeUI.showWaiting(); mui('.mui-popover').popover('hide'); expert(key, subject, industry, province, address, authentication, 10, 1); }); /*初始化数据*/ function expert(key, subject, industry, province, address, authentication, pageSize, pageNo) { //console.log(bigClass) if(bigClass == 1) { mui.ajax(baseUrl + '/ajax/professor/pqAPP', { data: { "key": key, "subject": subject, "industry": industry, "province": province, "address": address, "authentication": authentication, "pageSize": pageSize, "pageNo": pageNo, }, dataType: 'json', //数据格式类型 type: 'GET', //http请求类型 timeout: 10000, success: function(data) { table.innerHTML = ''; plus.webview.currentWebview().show("slide-in-right",150); plus.nativeUI.closeWaiting(); var perrid = plus.webview.getWebviewById('../html/search-home.html'); if(perrid){ setTimeout(function() { perrid.close(); }, 1000); } if(data.success && data.data.data != '') { nodatabox.style.display = 'none'; var datalist = data.data.data; console.log(data.data.total) datalistEach(datalist); mui('#pullrefresh3').pullRefresh().refresh(true); mui('#pullrefresh3').pullRefresh().scrollTo(0,0); if(data.data.total<data.data.pageSize){ mui('#pullrefresh3').pullRefresh().disablePullupToRefresh(); //没有数据禁止上拉刷新 } } else { //plus.nativeUI.toast("抱歉,没有找到对应的搜索", toastStyle); nodatabox.style.display = 'block'; mui('#pullrefresh3').pullRefresh().disablePullupToRefresh(); //没有数据禁止上拉刷新 } }, error: function() { plus.nativeUI.toast("服务器链接超时", toastStyle); } }); } else { mui.ajax(baseUrl + '/ajax/resource/pqRes', { data: { "key": key, "subject": subject, "industry": industry, "province": province, "address": address, "authentication": authentication, "pageSize": pageSize, "pageNo": pageNo, }, dataType: 'json', //数据格式类型 type: 'GET', //http请求类型 timeout: 10000, success: function(data) { table.innerHTML = ''; plus.nativeUI.closeWaiting(); plus.webview.currentWebview().show("slide-in-right",150); var perrid = plus.webview.getWebviewById('../html/search-home.html'); if(perrid){ setTimeout(function() { perrid.close(); }, 1000); } if(data.success && data.data.data != '') { nodatabox.style.display = 'none'; var datalist = data.data.data; resourcesEach(datalist); mui('#pullrefresh3').pullRefresh().refresh(true); mui('#pullrefresh3').pullRefresh().scrollTo(0,0,0); if(data.data.total<data.data.pageSize){ mui('#pullrefresh3').pullRefresh().disablePullupToRefresh(); //没有数据禁止上拉刷新 } } else { //plus.nativeUI.toast("抱歉,没有找到对应的搜索", toastStyle); nodatabox.style.display = 'block'; mui('#pullrefresh3').pullRefresh().disablePullupToRefresh(); //没有数据禁止上拉刷新 } }, error: function() { plus.nativeUI.toast("服务器链接超时", toastStyle); } }); } } /*上拉刷新数据*/ function expert2(key, subject, industry, province, address, authentication, pageSize, pageNo) { //console.log(pageNo) //console.log(bigClass); console.log(pageNo); if(bigClass == 1) { mui.ajax(baseUrl + '/ajax/professor/pqAPP', { data: { "key": key, "subject": subject, "industry": industry, "province": province, "address": address, "authentication": authentication, "pageSize": pageSize, "pageNo": pageNo, }, dataType: 'json', //数据格式类型 type: 'GET', //http请求类型 timeout: 10000, success: function(data) { plus.nativeUI.closeWaiting(); if(data.success && data.data.data != '') { nodatabox.style.display = 'none'; mui('#pullrefresh3').pullRefresh().enablePullupToRefresh(); //启用上拉刷新 var datalist = data.data.data; var dice1 = data.data.total; //总条数 var dice2 = data.data.pageSize; //每页条数 console.log(dice1); console.log(dice2); allPages = Math.ceil(dice1 / dice2); if(allPages == 1) { //下拉刷新需要先清空数据 table.innerHTML = ''; // 在这里清空可以防止刷新时白屏 } console.log(allPages); var datalist = data.data.data; datalistEach(datalist); mui('#pullrefresh3').pullRefresh().refresh(true);//重置上拉加载 if(pageNo < allPages) { mui('#pullrefresh3').pullRefresh().endPullupToRefresh(false); //能上拉 } else { mui('#pullrefresh3').pullRefresh().endPullupToRefresh(true); //不能上拉 } } else { mui('#pullrefresh3').pullRefresh().disablePullupToRefresh(); //没有数据禁止上拉刷新 table.innerHTML = ''; //plus.nativeUI.toast("抱歉,没有找到对应的搜索", toastStyle); nodatabox.style.display = 'block'; } }, error: function() { plus.nativeUI.toast("服务器链接超时", toastStyle); mui('#pullrefresh3').pullRefresh().endPullupToRefresh(true); } }); } else { mui.ajax(baseUrl + '/ajax/resource/pqRes', { data: { "key": key, "subject": subject, "industry": industry, "province": province, "address": address, "authentication": authentication, "pageSize": pageSize, "pageNo": pageNo, }, dataType: 'json', //数据格式类型 type: 'GET', //http请求类型 timeout: 10000, success: function(data) { plus.nativeUI.closeWaiting(); if(data.success && data.data.data != '') { nodatabox.style.display = 'none'; mui('#pullrefresh3').pullRefresh().enablePullupToRefresh(); //启用上拉刷新 var datalist = data.data.data; var dice1 = data.data.total; //总条数 var dice2 = data.data.pageSize; //每页条数 allPages = Math.ceil(dice1 / dice2); if(allPages == 1) { //下拉刷新需要先清空数据 table.innerHTML = ''; // 在这里清空可以防止刷新时白屏 } var datalist = data.data.data; resourcesEach(datalist); mui('#pullrefresh3').pullRefresh().refresh(true); if(pageNo < allPages) { mui('#pullrefresh3').pullRefresh().endPullupToRefresh(false); //能上拉 } else { mui('#pullrefresh3').pullRefresh().endPullupToRefresh(true); //不能上拉 } } else { mui('#pullrefresh3').pullRefresh().disablePullupToRefresh(); //没有数据禁止上拉刷新 table.innerHTML = ''; //plus.nativeUI.toast("抱歉,没有找到对应的搜索", toastStyle); nodatabox.style.display = 'block'; } }, error: function() { plus.nativeUI.toast("服务器链接超时", toastStyle); mui('#pullrefresh3').pullRefresh().endPullupToRefresh(true); } }); } } /*专家数据遍历*/ function datalistEach(datalist) { mui.each(datalist, function(index, item) { /*获取头像*/ if(item.hasHeadImage == 1) { var img = baseUrl + "/images/head/" + item.id + "_l.jpg"; } else { var img = "../images/default-photo.jpg"; } /*判断用户是否认证*/ var icon = ''; if(item.authType) { icon='<em class="mui-icon iconfont icon-vip authicon-cu"> </em>'; } else { if(item.authStatus) { if(item.authentication == 1) { icon='<em class="mui-icon iconfont icon-renzheng authicon-mana"><span>科研</span></em>'; } else if(item.authentication == 2) { icon='<em class="mui-icon iconfont icon-renzheng authicon-staff"><span>企业</span></em>'; } else { icon='<em class="mui-icon iconfont icon-renzheng authicon-stu"><span>学生</span></em>'; } } } /*获取研究方向信息*/ var researchAreas = item.researchAreas; var rlist = '' for(var n = 0; n < researchAreas.length; n++) { rlist = '<span>' + researchAreas[n].caption + '</span>'; } /*获取资源信息*/ var resources = item.resources; var zlist = '' for(var m = 0; m < resources.length; m++) { zlist = '<span>' + resources[m].resourceName + '</span>'; } //var title; //(item.title != '') ? title = item.title + " , " : title = ''; var title = item.title || ""; var office = item.office || ""; var orgName = item.orgName || ""; var address = item.address || ""; if(title != "") { title = title + " , "; } if(office != "") { office = office + " , "; } if(orgName != "") { orgName = orgName; } if(address != "") { address = " | " + address; } var li = document.createElement('li'); li.className = 'mui-table-view-cell mui-media'; li.innerHTML = '<a class="proinfor" data-id="'+item.id+'"' + '<p><img class="mui-media-object mui-pull-left headimg headRadius" src="' + img + '"></p>' + '<div class="mui-media-body">' + '<span class="listtit">' + item.name + icon + '</span>' + '<p class="listtit2"><span>' + title + '</span><span>' + office + '</span><span>' + orgName + '</span><span>' + address + '</span></p>' + '<p class="mui-ellipsis listtit3">' + rlist + '</p>' + '<p class="mui-ellipsis listtit3">' + zlist + '</p>' + '</div></a></li>'; table.appendChild(li, table.firstChild); }); } /*资源数据遍历*/ function resourcesEach(datalist) { mui.each(datalist, function(index, item) { /*获取头像*/ if(item.images.length) { var img = baseUrl + "/images/resource/" + item.resourceId + ".jpg"; } else { var img = "../images/default-resource.jpg"; } /*判断用户是否认证*/ var icon = ''; if(item.authType) { icon='<em class="mui-icon iconfont icon-vip authicon-cu"> </em>'; } else { if(item.authStatus) { if(item.authentication == 1) { icon='<em class="mui-icon iconfont icon-renzheng authicon-mana"><span>科研</span></em>'; } else if(item.authentication == 2) { icon='<em class="mui-icon iconfont icon-renzheng authicon-staff"><span>企业</span></em>'; } else { icon='<em class="mui-icon iconfont icon-renzheng authicon-stu"><span>学生</span></em>'; } } } var title = item.professor.title || ""; var office = item.professor.office || ""; var orgName = item.professor.orgName || ""; var address = item.professor.address || ""; if(title != "") { title = title + " , "; } if(office != "") { office = office + " , "; } if(orgName != "") { orgName = orgName; } if(address != "") { address = " | " + address; } var li = document.createElement('li'); li.className = 'mui-table-view-cell mui-media'; li.innerHTML = '<a class="proinfor" data-id="'+item.resourceId+'"' + '<p><div class="mui-media-object mui-pull-left ResImgBox"><img class="resImg" src="' + img + '"></div></p>' + '<div class="mui-media-body">' + '<span class="listtit">' + item.resourceName + '</span>' + '<p class="mui-ellipsis listtit2">' + item.supportedServices + '</p>' + '<span class="listtit">' + item.professor.name + icon + '</span>' + '<p class="listtit3"><span>' + title + '</span><span>' + office + '</span><span>' + orgName + '</span><span>' + address + '</span></p>' + '</div></a></li>'; table.appendChild(li, table.firstChild); }); } mui.plusReady(function(){ //省 mui.ajax(baseUrl + '/ajax/dataDict/qaCity', { data: { "dictCode": "PROVINCE" }, dataType: 'json', //数据格式类型 type: 'GET', //http请求类型 timeout: 10000, success: function(data) { var finallist = '<li class="mui-table-view-cell"><a class="active">全国</a></li>'; console.log(data.success) console.log(JSON.stringify(data.data)) if(data.success && data.data != "") { mui.each(data.data, function(i, n) { finallist += '<li class="mui-table-view-cell"><a >' + n.caption + '</a></li>'; }); provinceVal.innerHTML = finallist; } }, error: function() { plus.nativeUI.toast("服务器链接超时", toastStyle); } }); //应用行业 mui.ajax(baseUrl + '/ajax/dataDict/qaDictCode', { data: { "dictCode": "INDUSTRY" }, dataType: 'json', //数据格式类型 type: 'GET', //http请求类型 timeout: 10000, success: function(data) { var finallist = '<li class="mui-table-view-cell mui-col-xs-5"><a class="active">不限</a></li>'; console.log(data.success) console.log(JSON.stringify(data.data)) if(data.success && data.data != "") { mui.each(data.data, function(i, n) { finallist += '<li class="mui-table-view-cell mui-col-xs-5"><a >' + n.caption + '</a></li>'; }); yyhy.innerHTML = finallist; } }, error: function() { plus.nativeUI.toast("服务器链接超时", toastStyle); } }); //学术领域 mui.ajax(baseUrl + '/ajax/dataDict/qaDictCode', { data: { "dictCode": "SUBJECT" }, dataType: 'json', //数据格式类型 type: 'GET', //http请求类型 timeout: 10000, success: function(data) { var finallist = '<li class="mui-table-view-cell mui-col-xs-5"><a class="active" >不限</a></li>'; //console.log(data.success) //console.log(JSON.stringify(data.data)) if(data.success && data.data != "") { mui.each(data.data, function(i, n) { finallist += '<li class="mui-table-view-cell mui-col-xs-5"><a >' + n.caption + '</a></li>'; }); xsly.innerHTML = finallist; } mui("#xsly li a").each(function () { if(this.innerText==subject){ document.querySelector('#xsly li a.active').classList.remove('active'); this.classList.add("active"); } }); }, error: function() { plus.nativeUI.toast("服务器链接超时", toastStyle); } }); })
console-front - Gogs: Go Git Service

Geen omschrijving

XMTT ba43c6a729 文章编辑 7 jaren geleden
..
webapp.html ba43c6a729 文章编辑 7 jaren geleden
portal-front - Gogs: Go Git Service

portal html css js resource

xuchunyang bdf84638b6 编辑器组件 7 jaren geleden
..
dragicon.png bdf84638b6 编辑器组件 7 jaren geleden
edittable.css bdf84638b6 编辑器组件 7 jaren geleden
edittable.html bdf84638b6 编辑器组件 7 jaren geleden
edittable.js bdf84638b6 编辑器组件 7 jaren geleden
edittd.html bdf84638b6 编辑器组件 7 jaren geleden
edittip.html bdf84638b6 编辑器组件 7 jaren geleden
portal-front - Gogs: Go Git Service

portal html css js resource

information.html 19KB

    <!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 rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" /> <link href="css/bootstrap.min.css" rel="stylesheet"> <link type="text/css" rel="stylesheet" href="cmp-portal/css/bootstrap-datetimepicker.min.css"> <link type="text/css" rel="stylesheet" href="cmp-portal/css/glyIcon.css"> <link type="text/css" href="css/common.css" rel="stylesheet"> <link type="text/css" href="css/genindex.css" rel="stylesheet"> <script type="text/javascript" src="js/jquery-1.11.1.js"></script> </head> <body> <!--头部--> <header id="header"> <script src="js/header.js"></script> </header> <div id="container"> <div class="containerCon"> <div class="contentCon clearfix"> <div class="headconBox flexCenter"> <div class="headimgBox head-left floatL" id="proHead"><a href="photo-set.html" class="replace-photo">上传头像</a></div> <div class="reInfoBlock head-center floatL"> <div class="coninfocon"> <div class="h1Font"><span id="proName"></span><em class="authiconNew" id="proAuth"></em></div> <div class="h2Font ellipsisSty"><span id="proTit"></span> <span id="proOther"></span></div> <a class="btnClick edit proEdit">编辑</a> <div class="h3Font" id="proAddress"></div> <ul class="clearfix h3Font" style="margin-top: 4px;"> <li class="col-w-4"><span id="phone"></span></li> <li class="col-w-4"><span id="mail"></span></li> <li class="col-w-4"> <p style="color:#FC7443;font-size:12px;">未征得您的同意之前,我们不会公开您的联系方式。</p></li> </ul> </div> <!--个人信息修改--> <div class="modifybox" style="margin:0;"> <ul class="cmpFrmList"> <li> <span class="col-w-2 lableSpan">姓名:</span> <div class="col-w-4"> <span class="lableSpan" id="name"></span> </div> </li> <li> <span class="col-w-2 lableSpan">性别:</span> <div class="col-w-4"> <label class="radiolabel"> <input type="radio" name="sex" value="1" />男 </label> <label class="radiolabel"> <input type="radio" name="sex" value="2" />女 </label> </div> </li> <li> <span class="col-w-2 lableSpan">出生日期:</span> <div class="col-w-4" style="position: relative;"> <div class="input-append date form_date dateBtn" data-date="" data-date-format="yyyy-mm-dd" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd"> <em class="mr_sj"></em> <input size="16" type="text" value="" readonly class="frmtype frmcontype fColor" placeholder="请选择出生日期" id="birthTime" style="background:#ffffff;color:#666"> <span class="dateIcon"><i class="icon-calendar displayNone"></i></span> <span class="add-on"><i class="icon-th displayNone"></i></span> </div> <input type="hidden" id="dtp_input2" value="" /> <span></span> </div> </li> <li> <span class="col-w-2 lableSpan">职称:</span> <div class="col-w-4"> <input type="text" class="frmcontype" placeholder="请填写最高职称" id="title" /> </div> </li> <li> <span class="col-w-2 lableSpan">职位:</span> <div class="col-w-4"> <input type="text" class="frmcontype" placeholder="请填写当前担任的职位" id="officeRevise" /> </div> </li> <li> <span class="col-w-2 lableSpan">所在机构:</span> <div class="col-w-8"> <input type="text" class="frmcontype" placeholder="请填写当前就职的机构" id="orgName" /> </div> </li> <li> <span class="col-w-2 lableSpan">所在部门:</span> <div class="col-w-8"> <input type="text" class="frmcontype" placeholder="请填写当前就职的部门" id="department" /> </div> </li> <li> <span class="col-w-2 lableSpan">所在城市:</span> <div class="col-w-8"> <form action="" class="col-w-12" name="form1"> <div class="col-w-6 citybox2"> <span class="frmcontype" id="Province"> <em class="mr_sj"></em> <i class="mr_show" id="oprovince">请选择省/直辖市</i> <ul> <li><a href="javascript:void(0)" alt="请选择省/直辖市">请选择省/直辖市</a></li> </ul> <input type="hidden" name="cho_Province" value="请选择省/直辖市"> </span> </div> <div class="col-w-6 citybox2"> <span class="frmcontype floatR" id="City" > <em class="mr_sj"></em> <i class="mr_show" id="ocity">请选择城市</i> <ul> <li><a href="javascript:void(0)" alt="请选择城市">请选择城市</a></li> </ul> <input type="hidden" name="cho_City" value="请选择城市 "> </span> </div> </form> </div> </li> <li> <span class="col-w-2 lableSpan">联系电话:</span> <div class="col-w-4"> <input type="tel" class="frmcontype" placeholder="请填写手机/办公电话" id="mobilePhone" /> </div> </li> <li> <span class="col-w-2 lableSpan">联系邮箱:</span> <div class="col-w-8"> <input type="email" class="frmcontype" placeholder="请填写电子邮箱" id="moileMail" /> </div> </li> <li class="saveBtn"> <span class="col-w-2">&nbsp;</span> <div class="col-w-10"> <button type="button" class="frmcontype btnModel" id="saveProfessor">保存</button> <button type="button" class="frmcontype btnModel btnCancel">取消</button> </div> </li> </ul> </div> </div> </div> <div class="leftconBox updateLeft floatL" style="padding-bottom: 40px;"> <!--个人简介--> <div class="coninfobox"> <div class="coninfotit">个人简介<a class="btnClick edit">编辑</a></div> <div class="coninfocon"> <div id="descpS"> </div> </div> <div class="modifybox cmpFrmList"> <div class="msgContbox"> <textarea class="msgCont frmcontype" id="descp" placeholder="请填写一个简单的介绍,让大家更好地了解您"></textarea> <span class="msgconNum"><em class="limitNum">0</em>/500</span> </div> <div class="saveBtn clearfix"> <div class="col-w-12"> <button type="button" class="frmcontype btnModel" id="saveDescp">保存</button> <button type="button" class="frmcontype btnModel btnCancel">取消</button> </div> </div> </div> </div> <!--学术领域--> <div class="coninfobox xslyshow"> <div class="coninfotit"><span>学术领域</span><a class="btnClick edit">编辑</a></div> <div class="coninfocon listArea"> <ul id="subjectShow"> </ul> </div> <div class="modifybox form-item"> <div class="col-w-12" style="position: relative;"> <input type="text" class="frmcontype oinput" placeholder="请填写您研究的学科,如:腐蚀防护、石墨烯、纳米材料" data-pro="学术领域不得超过15个字" data-num="20" data-fontSizeN="15" id="subject"/> <button type="button" class="frmcontype btnModel frmaddG addButton" id="subjectAdd">添加</button> <div class="form-drop keydrop"> <ul> </ul> </div> </div> <div class="form-result keyResult"> <ul class="ulspace editUlist clearfix" id="subjectList"> <!--<li>XXX<div class="closeThis"></div></li>--> </ul> </div> <div class="saveBtn clearfix"> <div class="col-w-12"> <button type="button" class="frmcontype btnModel" id="subjectSave">保存</button> <button type="button" class="frmcontype btnModel btnCancel">取消</button> </div> </div> </div> </div> <!--研究方向--> <div class="coninfobox"> <div class="coninfotit"><span>研究方向</span><a class="btnClick edit">编辑</a></div> <div class="coninfocon listResearch"> <ul class="clearfix" id="researchAreaShow"> </ul> </div> <div class="modifybox form-item"> <div class="col-w-12" style="position: relative;"> <input type="text" class="frmcontype oinputM" placeholder="请用一句话描述您的研究方向,如:微生物腐蚀的机理研究、防治与检测" id="researchArea"/> <button type="button" class="frmcontype btnModel frmaddG" id="researchAreaAdd">添加</button> </div> <div class="form-result keyResult"> <ul class="ulspace editUlistC clearfix" id="researchAreaList"> </ul> </div> <div class="saveBtn clearfix"> <div class="col-w-12"> <button type="button" class="frmcontype btnModel" id="researchAreaSave">保存</button> <button type="button" class="frmcontype btnModel btnCancel">取消</button> </div> </div> </div> </div> <!-- 行业领域 --> <div class="coninfobox"> <div class="coninfotit">行业领域<a class="btnClick edit">编辑</a></div> <div class="coninfocon listArea"> <ul id="industryShow"> </ul> </div> <div class="modifybox form-item"> <div class="col-w-12" style="position: relative;"> <input type="text" class="frmcontype oinput" placeholder="请填写企业所属的行业,如:制造业、互联网、服务业" data-pro="行业领域不得超过15个字" data-num="20" data-fontSizeN="15" id="industry"/> <button type="button" class="frmcontype btnModel frmaddG addButton" id="industryAdd">添加</button> <div class="form-drop keydrop"> <ul> </ul> </div> </div> <div class="form-result keyResult"> <ul class="ulspace editUlist clearfix" id="industryList"> <!--<li>XXX<div class="closeThis"></div></li>--> </ul> </div> <div class="saveBtn clearfix"> <div class="col-w-12"> <button type="button" class="frmcontype btnModel" id="industrySave">保存</button> <button type="button" class="frmcontype btnModel btnCancel">取消</button> </div> </div> </div> </div> <!--项目经历--> <div class="coninfobox"> <div class="coninfotit">项目经历<a class="btnClick addedit" id="projectAdd">添加</a></div> <div class="coninfocon listSector"> <ul id="projectShow"> </ul> </div> </div> <!--荣誉及奖项--> <div class="coninfobox"> <div class="coninfotit">荣誉奖项<a class="btnClick addedit" id="honorAdd">添加</a></div> <div class="coninfocon listSector"> <ul id="honorShow"> </ul> </div> </div> <!--工作经历--> <div class="coninfobox"> <div class="coninfotit">工作经历<a class="btnClick addedit" id="timeJobAdd">添加</a></div> <div class="coninfocon listSector"> <ul id="timeJobShow"> </ul> </div> </div> <!-- 教育背景 --> <div class="coninfobox"> <div class="coninfotit">教育背景<a class="btnClick addedit" id="addEdu">添加</a></div> <div class="coninfocon listSector"> <ul id="eduUl"> <!--<li>航空航天大学-计科系-信管-硕士-2016<em class="exitlist"></em></li>--> </ul> </div> </div> </div> <div class="rightconBox floatR"> <div class="conItem statisticsBox alignCenter clearfix" style="cursor:pointer;"> <div class="col-w-12"> <a class="goarrow" target="_blank" id="showMyself">查看我的主页<em></em></a> </div> </div> <div class="conItem statisticsBox alignCenter clearfix"> <div class="col-w-12"> <a class="goarrow" id="downResume" href="">下载我的简历<em></em></a> </div> </div> <div class="conItem statisticsBox alignCenter clearfix" style="padding:30px 10px"> <div class="col-w-12"> <p>发布需求、资源、文章、专利、论文 </p> <a class="goarrow" target="_blank" href="myConsult.html">进入我的工作台<em></em></a> </div> </div> </div> </div> </div> </div> <footer> <script type="text/javascript" src="js/footer.js"></script> </footer> <script type="text/javascript" src="js/jquery.cookie.js"></script> <script type="text/javascript" src="cmp-portal/js/public/bootstrap.min.js"></script> <script type="text/javascript" src="cmp-portal/js/public/bootstrap-datetimepicker.js"></script> <script type="text/javascript" src="js/jquery.similar.msgbox.js"></script> <script type="text/javascript" src="js/city.min.js"></script> <script type="text/javascript" src="js/public/baseUtil.js"></script> <script type="text/javascript" src="js/public/genCom.js"></script> <script type="text/javascript" src="js/information.js"></script> <script> $("body").on("click", ".date-btn", function() { $(".mr_calendar_ym:visible").hide(); var flag = $(this).attr("flag"); var c = $(this).val(); if(flag == 1) { console.log("年插件位置") if(c) { if (c == "至今") { $(this).siblings(".mr_calendar_ym").show(); $(this).siblings(".mr_calendar_ym").find(".yearli:contains('" + c + "')").addClass("active").siblings().removeClass("active"); return false; } else{ var ye = new Date().getFullYear(); var sroTop = (ye - parseInt(c)) * 32; $(this).siblings(".mr_calendar_ym").show(); $(this).siblings(".mr_calendar_ym").find(".full_year").scrollTop(sroTop); $(this).siblings(".mr_calendar_ym").find(".yearli:contains('" + c + "')").addClass("active").siblings().removeClass("active"); return false; } } else { var ye = new Date().getFullYear(); $(this).siblings(".mr_calendar_ym").show(); $(this).siblings(".mr_calendar_ym").find(".yearli:contains('" + ye + "')").addClass("active").siblings().removeClass("active"); return false; } } else if(flag == 2) { console.log("月插件位置") if(c) { if(c == "至今") { $(this).siblings(".mr_calendar_ym").show(); $(this).siblings(".mr_calendar_ym").find(".mli").removeClass("active"); $(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + c + "')").addClass("active").siblings().removeClass("active"); return false; } else { $(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + c.substr(0, 4) + "')").addClass("active"); $(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + c.substr(0, 4) + "')").siblings().removeClass("active"); if(c.substr(5, 1) == 0) { if(c.substr(6, 1) == 1) { $(this).siblings(".mr_calendar_ym").find(".mli:first").addClass("active").siblings().removeClass("active");; } else if(c.substr(6, 1) == 2) { $(this).siblings(".mr_calendar_ym").find(".mli:eq(1)").addClass("active").siblings().removeClass("active");; } else { $(this).siblings(".mr_calendar_ym").find(".mli:contains('" + c.substr(6, 1) + "')").addClass("active").siblings().removeClass("active");; } } else { $(this).siblings(".mr_calendar_ym").find(".mli:contains('" + c.substr(5, 2) + "')").addClass("active"); $(this).siblings(".mr_calendar_ym").find(".mli:contains('" + c.substr(5, 2) + "')").siblings().removeClass("active"); } $(this).siblings(".mr_calendar_ym").show(); var ya = $(this).siblings(".mr_calendar_ym").find(".mr_year .ymli").length; var ye = new Date().getFullYear(); if(ya == 61) { ye = ye + 1; } var sroTop = (ye - parseInt(c.substr(0, 4))) * 32; $(this).siblings(".mr_calendar_ym").find(".mr_year").scrollTop(sroTop); return false; } } else { var ye = new Date().getFullYear(); $(this).siblings(".mr_calendar_ym").show(); $(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + ye + "')").addClass("active"); $(this).siblings(".mr_calendar_ym").find(".ymli:contains('" + ye + "')").siblings().removeClass("active"); return false; } } }) $("body").on("click", ".yearli", function() { $(this).addClass("active").siblings().removeClass("active"); $(this).parents(".mr_calendar_ym ").siblings().val($(this).text()); $(this).parents(".mr_calendar_ym ").hide(); return false; }) $("body").on("click", ".ymli", function() { $(this).addClass("active").siblings().removeClass("active"); var year = $(this).text(); if(year == "至今") { $(this).parents(".mr_calendar_ym ").siblings().val($(this).text()) $(this).parents(".mr_calendar_ym ").hide(); } return false; }) $("body").on("click", ".mli", function() { var yearli = $(this).parents(".mr_month").siblings(".mr_year").children(".active").text(); console.log(yearli); if($(this).text() < 10) { var month = "0" + $(this).text(); } else { var month = $(this).text(); } if(yearli == "至今") { var valueM = yearli; $(this).parents(".mr_calendar_ym ").siblings().val(valueM); $(this).parents(".mr_calendar_ym ").hide(); } else { $(this).addClass("active").siblings().removeClass("active"); var valueM = yearli + "-" + month $(this).parents(".mr_calendar_ym ").siblings().val(valueM); $(this).parents(".mr_calendar_ym ").hide(); } return false; }) $("body").click(function(){ $(".mr_calendar_ym:visible").hide(); }) function yearAdd() { //先给年下拉框赋内容 var y = new Date().getFullYear(); $(".full_year").empty(); $(".mr_year").empty(); for(var i = y; i > y - 60; i--) { //以今年为准,前60年,后10年 $(".mr_year").append('<li class="ymli">' + i + '</li>'); $(".full_year").append('<li class="yearli">' + i + '</li>'); if(i == y) { $(".mr_year>li:contains(" + i + ")").addClass("active"); $(".full_year>li:contains(" + i + ")").addClass("active"); } } //$(".mr_year li:first-child").before('<li class="ymli">至今</li>'); //$(".full_year li:first-child").before('<li class="ymli">至今</li>'); } function month() { //赋月份的下拉框 $(".mr_month").empty(); for(var i = 1; i < 13; i++) { $(".mr_month").append('<li class="mli" style="text-align:center">' + i + '</li>'); } } </script> </body> </html>
portal-front - Gogs: Go Git Service

portal html css js resource

resourceInfo.js 6.8KB

    $(document).ready(function() { loginStatus();//判断个人是否登录 /*获取资源ID*/ var resourceId = GetQueryString("resourceId"); var professorId; var userid = $.cookie("userid"); //填充学术领域 var subjectShow = function(data) { if(data != undefined && data.length != 0) { var subs = new Array(); if(data.indexOf(',')) { subs = data.split(','); } else { subs[0] = data; } if(subs.length > 0) { for(var i = 0; i < subs.length; i++) { $("#subjectList").append("<li>" + subs[i] + "</li>") }; } } } //填充应用行业 var industryShow = function(data) { if(data != undefined && data.length != 0) { var subs = new Array(); if(data.indexOf(',')) { subs = data.split(','); } else { subs[0] = data; } if(subs.length > 0) { for(var i = 0; i < subs.length; i++) { $("#industryList").append("<li>" + subs[i] + "</li>") }; } } } /*获取资源的数据的函数*/ var resourceData = function() { $.ajax({ "url": "/ajax/resource/resourceInfo", data: { 'resourceId': resourceId }, "type": "get", "async": true, "success": function(info) { if(info.success) { //console.log(info) var $info = info.data; $(".h2Font").text($info.resourceName); $("#application").text($info.supportedServices); professorId = $info.professorId; if(userid==professorId){ $("#consultin,.attentBtn").hide() } if($info.subject) { subjectShow($info.subject) } else { $("span:contains('学术领域')").hide(); } if($info.industry) { industryShow($info.industry) } else { $("span:contains('应用行业')").hide(); } if($info.cooperationNotes) { $("#cooperationNote").text($info.cooperationNotes); } else { $("span:contains('合作备注')").hide(); } if(!$info.subject && !$info.industry && !$info.cooperationNotes) { $(".resAbout").hide(); } if($info.images.length) { $("#resouImg").attr("src", "/images/resource/" + $info.resourceId + ".jpg") } if($info.descp) { $(".resMore").html($info.descp); var pWidth = $(".resMore").find("p").width(); var leng = $(".resMore").find("img").length; for(var i = 0; i < leng; i++) { (function(i) { $(".resMore").find("img").eq(i).load(function() { var imgWidth = $(".resMore").find("img").eq(i).width(); if(imgWidth > pWidth) { $(".resMore").find("img").eq(i).css({ "width": "100%" }) } }) })(i) } } else { $(".resBottom").hide(); } $("#nameS").text($info.editProfessor.name); if($info.editProfessor.title) { if($info.editProfessor.office) { $("#title").text($info.editProfessor.title + ","); } else { $("#title").text($info.editProfessor.title); } } if($info.editProfessor.office) { $("#office").text($info.editProfessor.office); } if($info.editProfessor.department) { $("#department").text($info.editProfessor.department); } if($info.editProfessor.orgName) { $("#orgName").text($info.editProfessor.orgName); } if($info.editProfessor.address) { $("#address").text($info.editProfessor.address); } if($info.editProfessor.hasHeadImage) { $("#headImg").attr("src", "/images/head/" + $info.professorId + "_l.jpg") } var resourcetitle = $info.resourceName + "-科袖网"; window.setInterval(function() { document.title = resourcetitle; }, 500); //专家相关资源 relevantResource($info.professorId, $info.resourceId) } else { $.MsgBox.Alert('消息提醒', info.msg); } }, "error": function() { $.MsgBox.Alert('message', 'failed') } }); } /*资源信息*/ resourceData(); /*点击专家头像进入专家页面*/ $("#headImg").on("click", function() { location.href = "information-brow.html?professorId=" + professorId; }); /*点击咨询*/ $("#consultin").on("click", function() { clickResouceConsultHandler(); }); /*咨询函数*/ function clickResouceConsultHandler() { if(userid && userid != "null" && userid != null) { ConsultApply(); concultProInfo(professorId); //专家信息common.js中 //默认选中资源咨询和标题 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 consultTitleVal = $(".h2Font").text(); $("#consultTitle").val("关于" + consultTitleVal + "的咨询"); //点击的发送 $("#sendConsultBtn").click(function() { sendConsultHandler(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'); } }; /*专家相关资源*/ var relevantResource = function(id, reid) { $.ajax({ "url": "/ajax/resource/qapro", "type": "get", "data": { "professorId": id }, "async": true, "success": function(data) { if(data.success) { var $info = data.data; var reId = reid; var j = 0; for(var i = 0; i < $info.length; i++) { if($info[i].resourceId != reId) { var string = "" string += '<li>' string += '<a class="resoumag" href="resourceShow.html?resourceId=' + $info[i].resourceId + '">' string += '<div class="ResImgBox resourceImgBox">' if($info[i].images.length) { string += '<img class="resImg headRadius resourceImg" src="/images/resource/' + $info[i].resourceId + '.jpg" />' } else { string += '<img class="resImg headRadius resourceImg" src="images/default-resource.jpg" />' } string += '</div>' string += '<h2>' + $info[i].resourceName + '</h2>' string += '</a>' string += '</li>' j++; if(j == 4) { return; } $(".otherRes").append(string); } if($info.length == 1) { $("#relaResou").hide() } } } else { $.MsgBox.Alert("消息", data.msg); } }, "error": function() { $.MsgBox.Alert('message', 'fail') } }); } })
portal-front - Gogs: Go Git Service

portal html css js resource

xuchunyang bdf84638b6 编辑器组件 %!s(int64=7) %!d(string=hace) años
..
music.css bdf84638b6 编辑器组件 %!s(int64=7) %!d(string=hace) años
music.html bdf84638b6 编辑器组件 %!s(int64=7) %!d(string=hace) años
music.js bdf84638b6 编辑器组件 %!s(int64=7) %!d(string=hace) años
ekexiu.app - Gogs: Go Git Service

Nessuna descrizione

identity.html 2.3KB

    <!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/iconfont.css" rel="stylesheet" /> <link href="../css/app.css" rel="stylesheet" /> </head> <body style="background: #fff;"> <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> </header> <div class="mui-content" style="background: #fff; margin-top:10px;" id="navsub"> <h3 class="boxnav-title">请确认您现在的身份:</h3> <ul class="boxnav"> <li><span typenum="1">科研工作者</span></li> <li><span typenum="2">在企人员</span></li> <li><span typenum="3">在校生</span></li> </ul> </div> <div class="mui-content-padded frmbox" style="margin-top:40px;"> <button class="mui-btn mui-btn-block mui-btn-outlined frmbtn" id="nextStep">确定,下一步</button> </div> <script src="../js/public/mui.min.js"></script> <script src="../js/public/base.js"></script> <script> mui.plusReady(function(){ var self = plus.webview.currentWebview(); //判断用户初始化身份 mui(".boxnav span").each(function () { var typenum = this.getAttribute("typenum"); if(typenum==self.usertype){ this.parentNode.classList.add('set'); } }); }) tab("navsub");//身份切换 var nextStep = document.getElementById("nextStep"); nextStep.addEventListener('tap', function() { var typetext = document.querySelector(".boxnav li.set"); mui.openWindow({ url: '../html/identity-up.html', id: '../html/identity-up.html', show: { aniShow: "slide-in-right" }, extras:{ usertype:typetext.innerText, } }); }) function tab(name) { var oDome = document.getElementById(name); var oSpan = oDome.getElementsByTagName('ul')[0].childNodes; for(var i = 0; i < oSpan.length; i++) { oSpan[i].onclick = function() { for(var i = 0; i < oSpan.length; i++) { oSpan[i].className = ''; } this.className = 'set'; } } } </script> </body> </html>
Sign In - Gogs: Go Git Service

Sign In