|
@ -2,6 +2,34 @@ $(document).ready(function() {
|
2
|
2
|
var id = GetQueryString("orgId");
|
3
|
3
|
var oComDescp,oComIndustry,oComSubject,oComQualification,oComUser;
|
4
|
4
|
loginStatus();//判断个人是否登录
|
|
5
|
$(document).scroll(function(){
|
|
6
|
var top3 = $(window).height();
|
|
7
|
var top5 = $(".content-left").height();
|
|
8
|
var top4 = $("#container").height();
|
|
9
|
var top1 = $(document).scrollTop();
|
|
10
|
var top2 = $("#container").height() - top3 + (top3 - 80 - top5) - 10; //变成绝对定位
|
|
11
|
if(top1 >= 300) {
|
|
12
|
$(".content-left").css({
|
|
13
|
"position": "fixed",
|
|
14
|
"top": "80px"
|
|
15
|
});
|
|
16
|
if(top1 >= top2) {
|
|
17
|
$('.information-content').css("position", "static");
|
|
18
|
$(".content-left").css("position", "absolute");
|
|
19
|
$(".content-left").css("top", top4 - top5 - 10 + "px");
|
|
20
|
} else {
|
|
21
|
$('.information-content').css("position", "relative");
|
|
22
|
$(".content-left").css({
|
|
23
|
"position": "fixed",
|
|
24
|
"top": "80px"
|
|
25
|
});
|
|
26
|
}
|
|
27
|
} else {
|
|
28
|
$(".content-left").css({
|
|
29
|
"position": "static"
|
|
30
|
});
|
|
31
|
}
|
|
32
|
})
|
5
|
33
|
/*企业信息*/
|
6
|
34
|
function companyInformation() {
|
7
|
35
|
$.ajax({
|