Browse Source

添加底部加入企业链接

xuchunyang 8 years ago
parent
commit
8898245b95
3 changed files with 25 additions and 5 deletions
  1. 13 2
      cmp-portal/js/public/cmpFooter.js
  2. 10 0
      js/common.js
  3. 2 3
      js/footer.js

+ 13 - 2
cmp-portal/js/public/cmpFooter.js

@ -10,8 +10,8 @@ footerHtml += '<div class="container-fulid">'+
10 10
								'<div class="logo-block"></div>'+
11 11
								'<p>' +
12 12
									'<a class="listlink" href="javascript:void(0);" target="_blank" rel="nofollow">关于我们</a>' +
13
									'<a class="listlink" href="" target="_blank" rel="nofollow">企业入驻</a>' +
14
									'<a class="listlink" href="" target="_blank" rel="nofollow">我是专家</a>' +
13
									'<a class="listlink" href="javascript:void(0);" target="_blank" rel="nofollow" id="cmpSet">企业入驻</a>' +
14
									'<a class="listlink" href="javascript:void(0);" target="_blank" rel="nofollow">我是专家</a>' +
15 15
									'<a class="listlink" href="../privacy.html" target="_blank" rel="nofollow">用户协议</a>' +
16 16
									'<a class="listlink" href="../download.html" target="_blank" rel="nofollow">产品下载</a>' +
17 17
								'</p>' +
@ -46,3 +46,14 @@ footerHtml += '<div class="container-fulid">'+
46 46

47 47
document.write(footerHtml);
48 48

49
$(function(){
50
	var orgid = $.cookie('orgId');
51
	$("#cmpSet").on("click",function(){
52
		if (orgid && orgid != "null" && orgid != null) {
53
			location.href="cmp-workspaces.html"
54
		}else{
55
			location.href="cmp-settled-reg.html"
56
		}
57
	})
58
})
59


+ 10 - 0
js/common.js

@ -7,6 +7,16 @@ $(document).ready(function(){
7 7
		$('#container').css("padding-bottom", footerHeight +"px" );
8 8
		//console.log(footerHeight)
9 9
	});
10
	//底部企业入驻
11
	var orgid = $.cookie('orgId');
12
	$("#cmpSet2").on("click",function(){
13
		if (orgid && orgid != "null" && orgid != null) {
14
			location.href="cmp-portal/cmp-workspaces.html"
15
		}else{
16
			location.href="cmp-portal/cmp-settled-reg.html"
17
		}
18
	})
19
10 20
});
11 21
/*向下滚动时,header背景变半透明*/
12 22
$(document).scroll(function() {

+ 2 - 3
js/footer.js

@ -7,8 +7,8 @@ footerHtml += '<div class="container-fulid">'+
7 7
								'<div class="logo-block"></div>'+
8 8
								'<p>' +
9 9
									'<a class="listlink" href="javascript:void(0);" target="_blank" rel="nofollow">关于我们</a>' +
10
									'<a class="listlink" href="" target="_blank" rel="nofollow">企业入驻</a>' +
11
									'<a class="listlink" href="" target="_blank" rel="nofollow">我是专家</a>' +
10
									'<a class="listlink" href="javascript:void(0);" target="_blank" rel="nofollow" id="cmpSet2">企业入驻</a>' +
11
									'<a class="listlink" href="javascript:void(0);" target="_blank" rel="nofollow">我是专家</a>' +
12 12
									'<a class="listlink" href="privacy.html" target="_blank" rel="nofollow">用户协议</a>' +
13 13
									'<a class="listlink" href="download.html" target="_blank" rel="nofollow">产品下载</a>' +
14 14
								'</p>' +
@ -67,4 +67,3 @@ fHtml +='<div class="wrapper clearfix">' +
67 67

68 68

69 69
document.write(footerHtml);
70