Browse Source

企业版未登录直接跳转登录页面

luyanan 7 years ago
parent
commit
d3c16e959d

+ 3 - 3
cmp-portal/css/cmpindex.css

348
348
349
.form-item{}
349
.form-item{}
350
.form-drop{position:relative;top:0;border:1px solid #E5E5E5;border-top:none;width: 100%;}
350
.form-drop{position:relative;top:0;border:1px solid #E5E5E5;border-top:none;width: 100%;}
351
.form-item .madiaHead{position:absolute;border:1px solid #E5E5E5;width: 50px;height:50px;background-position: center;background-size: cover;}
351
.form-item .madiaHead{position:absolute;border:1px solid #E5E5E5;width: 50px;height:50px;top:50%;margin-top:-25px;background-position: center;background-size: cover;}
352
.form-item .madiaHead.useHead{background-image: url(../../images/default-photo.jpg);border-radius: 50%;}
352
.form-item .madiaHead.useHead{background-image: url(../../images/default-photo.jpg);border-radius: 50%;}
353
.form-item .madiaHead.resouseHead{background-image: url(../../images/default-resource.jpg);border-radius:0;}
353
.form-item .madiaHead.resouseHead{background-image: url(../../images/default-resource.jpg);border-radius:0;}
354
.form-item .madiaHead.artHead{background-image: url(../../images/default-artical.jpg);border-radius:0;}
354
.form-item .madiaHead.artHead{background-image: url(../../images/default-artical.jpg);border-radius:0;}
406
/*文章列表*/
406
/*文章列表*/
407
.itemListCon{background: #fff;}
407
.itemListCon{background: #fff;}
408
.itemListBolck .searchAbout{position: relative;}
408
.itemListBolck .searchAbout{position: relative;}
409
.itemListBolck .searchAbout .frmcontype{height: 36px;font-size: 14px;}
409
.itemListBolck .searchAbout .frmcontype{height: 36px;font-size: 14px;line-height:22px;}
410
.itemListBolck .searchAbout .searchSpan{position:absolute;top:50%;margin-top:-9px;right:18px;display:inline-block;width:16px;height:16px;background: url(../../images/g_article_icon_sousuo_nor.png);background-size:cover;cursor: pointer;}
410
.itemListBolck .searchAbout .searchSpan{position:absolute;top:50%;margin-top:-9px;right:18px;display:inline-block;width:16px;height:16px;background: url(../../images/g_article_icon_sousuo_nor.png);background-size:cover;cursor: pointer;}
411
.itemListBolck .frmcontype{width:100%;border-radius: 20px;padding-left:20px;background: #f5f6f8;}
411
.itemListBolck .frmcontype{width:100%;border-radius: 20px;padding-left:20px;background: #f5f6f8;}
412
.itemListBolck .topOperaBlock{padding:20px 0 0 20px;}
412
.itemListBolck .topOperaBlock{padding:20px 0 0 20px;}
417
.itemListBolck .itemListCon .form-result>ul>li:after{content: "";position: absolute;left: 0;right: 0;bottom: 0;height: 2px;background: #f4f6f8;}
417
.itemListBolck .itemListCon .form-result>ul>li:after{content: "";position: absolute;left: 0;right: 0;bottom: 0;height: 2px;background: #f4f6f8;}
418
.itemListBolck .itemListCon .form-result>ul>li:hover{background:#EEEEEE;}
418
.itemListBolck .itemListCon .form-result>ul>li:hover{background:#EEEEEE;}
419
.itemListBolck .itemListCon .form-result{margin:20px 0 30px;border-top:1px solid #E5E5E5;}
419
.itemListBolck .itemListCon .form-result{margin:20px 0 30px;border-top:1px solid #E5E5E5;}
420
.itemListBolck .itemListCon .madiaHead{width:120px;height:80px;}
420
.itemListBolck .itemListCon .madiaHead{width:120px;height:80px;margin-top:-40px;}
421
.itemListBolck .itemListCon .madiaInfo>ul>li{float: left;margin-left:20px;}
421
.itemListBolck .itemListCon .madiaInfo>ul>li{float: left;margin-left:20px;}
422
.itemListBolck .itemListCon .madiaInfo>ul>li:first-child{margin-left:0;}
422
.itemListBolck .itemListCon .madiaInfo>ul>li:first-child{margin-left:0;}
423
.itemListBolck .itemListCon .madiaInfo{padding-left:140px;min-height: 80px;padding-top:15px;}
423
.itemListBolck .itemListCon .madiaInfo{padding-left:140px;min-height: 80px;padding-top:15px;}

+ 3 - 0
cmp-portal/js/articalIssue.js

5
	var articleId;
5
	var articleId;
6
	var fa = false;
6
	var fa = false;
7
    var orgId = $.cookie("orgId");
7
    var orgId = $.cookie("orgId");
8
    if(orgId == "" || orgId == null || orgId == "null"){
9
    	location.href = "cmp-settled-log.html";
10
    }
8
	//校验标题
11
	//校验标题
9
	$("#newstitle").on({
12
	$("#newstitle").on({
10
		focus: function() {
13
		focus: function() {

+ 3 - 0
cmp-portal/js/articalModify.js

6
    var modifyTimeval;
6
    var modifyTimeval;
7
    var settime = false;
7
    var settime = false;
8
	var orgId = $.cookie("orgId");
8
	var orgId = $.cookie("orgId");
9
	if(orgId == "" || orgId == null || orgId == "null"){
10
    	location.href = "cmp-settled-log.html";
11
    }
9
	articleshow();
12
	articleshow();
10
	relevantExperts();
13
	relevantExperts();
11
	relevantResources();
14
	relevantResources();

+ 3 - 0
cmp-portal/js/cmp-UnstaffList.js

1
$(document).ready(function() {
1
$(document).ready(function() {
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	var id = $.cookie('orgId');
3
	var id = $.cookie('orgId');
4
	if(id == "" || id == null || id == "null"){
5
    	location.href = "cmp-settled-log.html";
6
    }
4
	/*获取企业未认证的用户*/
7
	/*获取企业未认证的用户*/
5
	function UnauthorizedUser() {
8
	function UnauthorizedUser() {
6
		$.ajax({
9
		$.ajax({

+ 3 - 0
cmp-portal/js/cmp-articalList.js

1
/*文章个人列表*/
1
/*文章个人列表*/
2
var orgId = $.cookie("orgId");
2
var orgId = $.cookie("orgId");
3
if(orgId == "" || orgId == null || orgId == "null"){
4
	location.href = "cmp-settled-log.html";
5
}
3
$(function() {
6
$(function() {
4
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
7
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
5
	var  falseno = false;
8
	var  falseno = false;

+ 3 - 0
cmp-portal/js/cmp-needList.js

1
$(document).ready(function() {
1
$(document).ready(function() {
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	var id = $.cookie('orgId');
3
	var id = $.cookie('orgId');
4
	if(id == "" || id == null || id == "null"){
5
    	location.href = "cmp-settled-log.html";
6
    }
4
	var oDemandAim = "",
7
	var oDemandAim = "",
5
		oSortType = "";
8
		oSortType = "";
6
	/*查询企业认证状态*/
9
	/*查询企业认证状态*/

+ 4 - 1
cmp-portal/js/cmp-needShow.js

1
$(document).ready(function() {
1
$(document).ready(function() {
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	var demandId = GetQueryString("demandId");	
3
	var demandId = GetQueryString("demandId");	
4

4
	var orgId = $.cookie("orgId");
5
	if(orgId == "" || orgId == null || orgId == "null"){
6
		location.href = "cmp-settled-log.html";
7
	}
5
	function angleDemand() {
8
	function angleDemand() {
6
		$.ajax({
9
		$.ajax({
7
			url: "/ajax/demand/queryOne",
10
			url: "/ajax/demand/queryOne",

+ 3 - 0
cmp-portal/js/cmp-setAuth.js

2
$(function() {
2
$(function() {
3

3

4
	var orgid = $.cookie('orgId');
4
	var orgid = $.cookie('orgId');
5
	if(orgid == "" || orgid == null || orgid == "null"){
6
    	location.href = "cmp-settled-log.html";
7
    }
5
	var auth = GetQueryString("auth");
8
	var auth = GetQueryString("auth");
6
	var temp = [];
9
	var temp = [];
7
	/*查询企业认证状态*/
10
	/*查询企业认证状态*/

+ 3 - 0
cmp-portal/js/cmp-setBind.js

2
$(function() {
2
$(function() {
3
	var emailCookieshow;
3
	var emailCookieshow;
4
	var orgid = $.cookie('orgId');
4
	var orgid = $.cookie('orgId');
5
	if(orgid == "" || orgid == null || orgid == "null"){
6
    	location.href = "cmp-settled-log.html";
7
    }
5
	var orgEmail = $.cookie('orgEmail');
8
	var orgEmail = $.cookie('orgEmail');
6
	var setemail = false;
9
	var setemail = false;
7
	$(".bindEmailbtn").click(function() {
10
	$(".bindEmailbtn").click(function() {

+ 3 - 0
cmp-portal/js/cmp-setPwd.js

3
	
3
	
4
	var oldPwdVal, newPwdVal, newPwdOkVal;
4
	var oldPwdVal, newPwdVal, newPwdOkVal;
5
	var orgid = $.cookie('orgId');
5
	var orgid = $.cookie('orgId');
6
	if(orgid == "" || orgid == null || orgid == "null"){
7
    	location.href = "cmp-settled-log.html";
8
    }
6
	var setoldpwd = false;
9
	var setoldpwd = false;
7
	var setnewpwd = false;
10
	var setnewpwd = false;
8
	var setnewpwd2 = false;
11
	var setnewpwd2 = false;

+ 3 - 0
cmp-portal/js/cmp-staffList.js

1
$(document).ready(function() {
1
$(document).ready(function() {
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	var id = $.cookie('orgId');
3
	var id = $.cookie('orgId');
4
	if(id == "" || id == null || id == "null"){
5
    	location.href = "cmp-settled-log.html";
6
    }
4
	/*判断企业是否认证*/
7
	/*判断企业是否认证*/
5
	function companyAuthStatus() {
8
	function companyAuthStatus() {
6
		$.ajax({
9
		$.ajax({

+ 3 - 0
cmp-portal/js/cmp-updateinfo.js

1
$(document).ready(function() {
1
$(document).ready(function() {
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	var id = $.cookie('orgId');
3
	var id = $.cookie('orgId');
4
	if(id == "" || id == null || id == "null"){
5
    	location.href = "cmp-settled-log.html";
6
    }
4
	var fileId = null;
7
	var fileId = null;
5
	var cacheImageKey = null;
8
	var cacheImageKey = null;
6
	/*企业信息*/
9
	/*企业信息*/

+ 3 - 0
cmp-portal/js/cmp-workspaces.js

1
$(document).ready(function() {
1
$(document).ready(function() {
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	var id = $.cookie('orgId');
3
	var id = $.cookie('orgId');
4
	if(id == "" || id == null || id == "null"){
5
    	location.href = "cmp-settled-log.html";
6
    }
4
	/*企业信息*/
7
	/*企业信息*/
5
	function companyInformation() {
8
	function companyInformation() {
6
		$.ajax({
9
		$.ajax({

+ 6 - 3
cmp-portal/js/resourceIssue.js

4
		$("#deleteResource").removeClass("disableLi").addClass("deleteResource");
4
		$("#deleteResource").removeClass("disableLi").addClass("deleteResource");
5
		getRecourceMe();
5
		getRecourceMe();
6
	}
6
	}
7
	var id = $.cookie('orgId');
7
	var orgId = $.cookie('orgId');
8
	if(orgId == "" || orgId == null || orgId == "null"){
9
    	location.href = "cmp-settled-log.html";
10
    }
8
	var temp = [];
11
	var temp = [];
9
	var array = [];
12
	var array = [];
10
	var oProfessor=[];
13
	var oProfessor=[];
425
		if(resourceId) {
428
		if(resourceId) {
426
			$data.resourceId = resourceId;
429
			$data.resourceId = resourceId;
427
		}
430
		}
428
		$data.orgId = id;
431
		$data.orgId = orgId;
429
		$data.resourceName = $("#resourceName").val(); //资源名字
432
		$data.resourceName = $("#resourceName").val(); //资源名字
430
		$data.cooperationNotes = $("#remarkContent").val(); //合作备注
433
		$data.cooperationNotes = $("#remarkContent").val(); //合作备注
431
		$data.subject = captiureSubInd("keywordList p");
434
		$data.subject = captiureSubInd("keywordList p");
493
			dataType: "json",
496
			dataType: "json",
494
			async:"false",
497
			async:"false",
495
			data: {
498
			data: {
496
				"orgId": id,
499
				"orgId": orgId,
497
				"orgAuth": 1
500
				"orgAuth": 1
498
			},
501
			},
499
			success: function(data, textState) {
502
			success: function(data, textState) {

+ 5 - 2
cmp-portal/js/resourceList.js

1
$(document).ready(function(){
1
$(document).ready(function(){
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3
	var id = $.cookie('orgId');
3
	var orgId = $.cookie('orgId');
4
	if(orgId == "" || orgId == null || orgId == "null"){
5
    	location.href = "cmp-settled-log.html";
6
    }
4
	var resourceId;
7
	var resourceId;
5
	/*资源列表查询*/
8
	/*资源列表查询*/
6
	function getRecourceMe(n,isbind,num) {
9
	function getRecourceMe(n,isbind,num) {
7
		var resourceNameVa=$("#resouceName").val();
10
		var resourceNameVa=$("#resouceName").val();
8
		var $info={};
11
		var $info={};
9
		$info.orgId=id;
12
		$info.orgId=orgId;
10
		$info.pageSize=10;
13
		$info.pageSize=10;
11
		if(resourceNameVa !="") {
14
		if(resourceNameVa !="") {
12
			$info.key=resourceNameVa;
15
			$info.key=resourceNameVa;

+ 3 - 3
css/genindex.css

281
	                align-items: center;}
281
	                align-items: center;}
282
/*.form-item .flexCenter{min-height: 60px;}*/
282
/*.form-item .flexCenter{min-height: 60px;}*/
283
.form-drop{position:relative;top:0;border:1px solid #E5E5E5;border-top:none;width: 100%;}
283
.form-drop{position:relative;top:0;border:1px solid #E5E5E5;border-top:none;width: 100%;}
284
.form-item .madiaHead{position:absolute;border:1px solid #E5E5E5;width: 50px;height:50px;background-position: center;background-size: cover;}
284
.form-item .madiaHead{position:absolute;border:1px solid #E5E5E5;width: 50px;height:50px;top:50%;margin-top:-25px;background-position: center;background-size: cover;}
285
.form-item .madiaHead.useHead{background-image: url(../images/default-photo.jpg);border-radius: 50%;}
285
.form-item .madiaHead.useHead{background-image: url(../images/default-photo.jpg);border-radius: 50%;}
286
.form-item .madiaHead.resouseHead{background-image: url(../images/default-resource.jpg);border-radius:0;}
286
.form-item .madiaHead.resouseHead{background-image: url(../images/default-resource.jpg);border-radius:0;}
287
.form-item .madiaHead.artHead{background-image: url(../images/default-artical.jpg);border-radius:0;}
287
.form-item .madiaHead.artHead{background-image: url(../images/default-artical.jpg);border-radius:0;}
325
.form-item.otherShow .madiaInfo{padding-left:92px;margin:4px 0;}
325
.form-item.otherShow .madiaInfo{padding-left:92px;margin:4px 0;}
326
/*.otherShow .form-result>ul>li{min-height:80px;}*/
326
/*.otherShow .form-result>ul>li{min-height:80px;}*/
327
.form-item.otherShow .pointOk>ul>li{cursor: pointer;}
327
.form-item.otherShow .pointOk>ul>li{cursor: pointer;}
328
.form-item.otherShow .aboutRes .madiaHead{width:118px;height: 80px;}
328
.form-item.otherShow .aboutRes .madiaHead{width:118px;height: 80px;margin-top:-40px}
329
.form-item.otherShow .aboutRes .madiaInfo{padding-left:130px;margin:4px 0;}
329
.form-item.otherShow .aboutRes .madiaInfo{padding-left:130px;margin:4px 0;}
330
.form-item.otherShow .aboutRes .ellipsisSty-2{height:48px;}
330
.form-item.otherShow .aboutRes .ellipsisSty-2{height:48px;}
331
/*点赞模块*/
331
/*点赞模块*/
414
.itemListBolck .itemListCon .form-result>ul>li:after{content: "";position: absolute;left: 0;right: 0;bottom: 0;height: 2px;background: #f4f6f8;}
414
.itemListBolck .itemListCon .form-result>ul>li:after{content: "";position: absolute;left: 0;right: 0;bottom: 0;height: 2px;background: #f4f6f8;}
415
.itemListBolck .itemListCon .form-result>ul>li:hover{background:#EEEEEE;}
415
.itemListBolck .itemListCon .form-result>ul>li:hover{background:#EEEEEE;}
416
.itemListBolck .itemListCon .form-result{margin:20px 0 30px;border-top:1px solid #E5E5E5;}
416
.itemListBolck .itemListCon .form-result{margin:20px 0 30px;border-top:1px solid #E5E5E5;}
417
.itemListBolck .itemListCon .madiaHead{width:120px;height:80px;}
417
.itemListBolck .itemListCon .madiaHead{width:120px;height:80px;margin-top:-40px;}
418
.itemListBolck .itemListCon .madiaInfo>ul>li{float: left;margin-left:20px;}
418
.itemListBolck .itemListCon .madiaInfo>ul>li{float: left;margin-left:20px;}
419
.itemListBolck .itemListCon .madiaInfo>ul>li:first-child{margin-left:0;}
419
.itemListBolck .itemListCon .madiaInfo>ul>li:first-child{margin-left:0;}
420
.itemListBolck .itemListCon .madiaInfo{padding-left:140px;min-height: 80px;padding-top:15px;}
420
.itemListBolck .itemListCon .madiaInfo{padding-left:140px;min-height: 80px;padding-top:15px;}