Parcourir la Source

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

luyanan 7 ans auparavant
Parent
commit
d3c16e959d

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

@ -348,7 +348,7 @@ ul.artAbout .frmadd{width:auto;position:absolute;right:0;top:0;background: #28b8
348 348
349 349
.form-item{}
350 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 352
.form-item .madiaHead.useHead{background-image: url(../../images/default-photo.jpg);border-radius: 50%;}
353 353
.form-item .madiaHead.resouseHead{background-image: url(../../images/default-resource.jpg);border-radius:0;}
354 354
.form-item .madiaHead.artHead{background-image: url(../../images/default-artical.jpg);border-radius:0;}
@ -406,7 +406,7 @@ ul.tagList>li .h2Font{color:#666}
406 406
/*文章列表*/
407 407
.itemListCon{background: #fff;}
408 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 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 411
.itemListBolck .frmcontype{width:100%;border-radius: 20px;padding-left:20px;background: #f5f6f8;}
412 412
.itemListBolck .topOperaBlock{padding:20px 0 0 20px;}
@ -417,7 +417,7 @@ ul.tagList>li .h2Font{color:#666}
417 417
.itemListBolck .itemListCon .form-result>ul>li:after{content: "";position: absolute;left: 0;right: 0;bottom: 0;height: 2px;background: #f4f6f8;}
418 418
.itemListBolck .itemListCon .form-result>ul>li:hover{background:#EEEEEE;}
419 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 421
.itemListBolck .itemListCon .madiaInfo>ul>li{float: left;margin-left:20px;}
422 422
.itemListBolck .itemListCon .madiaInfo>ul>li:first-child{margin-left:0;}
423 423
.itemListBolck .itemListCon .madiaInfo{padding-left:140px;min-height: 80px;padding-top:15px;}

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

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

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

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

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

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

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

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

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

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

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

@ -1,7 +1,10 @@
1 1
$(document).ready(function() {
2 2
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
3 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 8
	function angleDemand() {
6 9
		$.ajax({
7 10
			url: "/ajax/demand/queryOne",

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

@ -2,6 +2,9 @@
2 2
$(function() {
3 3

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

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

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

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

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

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

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

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

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

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

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

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

@ -4,7 +4,10 @@ $(document).ready(function() {
4 4
		$("#deleteResource").removeClass("disableLi").addClass("deleteResource");
5 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 11
	var temp = [];
9 12
	var array = [];
10 13
	var oProfessor=[];
@ -425,7 +428,7 @@ $(document).ready(function() {
425 428
		if(resourceId) {
426 429
			$data.resourceId = resourceId;
427 430
		}
428
		$data.orgId = id;
431
		$data.orgId = orgId;
429 432
		$data.resourceName = $("#resourceName").val(); //资源名字
430 433
		$data.cooperationNotes = $("#remarkContent").val(); //合作备注
431 434
		$data.subject = captiureSubInd("keywordList p");
@ -493,7 +496,7 @@ $(document).ready(function() {
493 496
			dataType: "json",
494 497
			async:"false",
495 498
			data: {
496
				"orgId": id,
499
				"orgId": orgId,
497 500
				"orgAuth": 1
498 501
			},
499 502
			success: function(data, textState) {

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

@ -1,12 +1,15 @@
1 1
$(document).ready(function(){
2 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 7
	var resourceId;
5 8
	/*资源列表查询*/
6 9
	function getRecourceMe(n,isbind,num) {
7 10
		var resourceNameVa=$("#resouceName").val();
8 11
		var $info={};
9
		$info.orgId=id;
12
		$info.orgId=orgId;
10 13
		$info.pageSize=10;
11 14
		if(resourceNameVa !="") {
12 15
			$info.key=resourceNameVa;

+ 3 - 3
css/genindex.css

@ -281,7 +281,7 @@ ul.artAbout .frmadd{width:auto;position:absolute;right:0;top:0;background: #ff99
281 281
	                align-items: center;}
282 282
/*.form-item .flexCenter{min-height: 60px;}*/
283 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 285
.form-item .madiaHead.useHead{background-image: url(../images/default-photo.jpg);border-radius: 50%;}
286 286
.form-item .madiaHead.resouseHead{background-image: url(../images/default-resource.jpg);border-radius:0;}
287 287
.form-item .madiaHead.artHead{background-image: url(../images/default-artical.jpg);border-radius:0;}
@ -325,7 +325,7 @@ ul.tagList>li .h2Font{color:#666}
325 325
.form-item.otherShow .madiaInfo{padding-left:92px;margin:4px 0;}
326 326
/*.otherShow .form-result>ul>li{min-height:80px;}*/
327 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 329
.form-item.otherShow .aboutRes .madiaInfo{padding-left:130px;margin:4px 0;}
330 330
.form-item.otherShow .aboutRes .ellipsisSty-2{height:48px;}
331 331
/*点赞模块*/
@ -414,7 +414,7 @@ ul.tagList>li .h2Font{color:#666}
414 414
.itemListBolck .itemListCon .form-result>ul>li:after{content: "";position: absolute;left: 0;right: 0;bottom: 0;height: 2px;background: #f4f6f8;}
415 415
.itemListBolck .itemListCon .form-result>ul>li:hover{background:#EEEEEE;}
416 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 418
.itemListBolck .itemListCon .madiaInfo>ul>li{float: left;margin-left:20px;}
419 419
.itemListBolck .itemListCon .madiaInfo>ul>li:first-child{margin-left:0;}
420 420
.itemListBolck .itemListCon .madiaInfo{padding-left:140px;min-height: 80px;padding-top:15px;}