|
@@ -300,9 +300,10 @@
|
|
$.post("/jyapp/myinfo?t="+new Date().getTime(),null,function(r){
|
|
$.post("/jyapp/myinfo?t="+new Date().getTime(),null,function(r){
|
|
if(r.userType=="vip"){
|
|
if(r.userType=="vip"){
|
|
$(".switch").addClass("only-vip");
|
|
$(".switch").addClass("only-vip");
|
|
- $(".switch>span").text("VIP订阅").show();
|
|
|
|
|
|
+ $(".switch").text("VIP订阅").show();
|
|
$(".switch").click(tosetpage);
|
|
$(".switch").click(tosetpage);
|
|
thisClass.InitVip(r);
|
|
thisClass.InitVip(r);
|
|
|
|
+ extend(1);
|
|
}else{
|
|
}else{
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
if (scrollTop==0){
|
|
if (scrollTop==0){
|
|
@@ -315,27 +316,29 @@
|
|
$(".switch_ext").click(tointroducepage);
|
|
$(".switch_ext").click(tointroducepage);
|
|
thisClass.InitPersonal(r);
|
|
thisClass.InitPersonal(r);
|
|
userMergeQuery();
|
|
userMergeQuery();
|
|
- extend();
|
|
|
|
|
|
+ extend(0);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- function extend(){
|
|
|
|
|
|
+ function extend(i){
|
|
window.listScroll = function() {
|
|
window.listScroll = function() {
|
|
- var nowT = $(".listcontent").scrollTop()
|
|
|
|
- if (nowT > 0) {
|
|
|
|
- $(".header_header").css({height: (60 - nowT) +'px'})
|
|
|
|
- if (nowT > 50) {
|
|
|
|
- $(".header_header").hide();
|
|
|
|
- $(".switch").show();
|
|
|
|
- }else{
|
|
|
|
- $(".header_header").show();
|
|
|
|
|
|
+ if (i==0){
|
|
|
|
+ var nowT = $(".listcontent").scrollTop()
|
|
|
|
+ if (nowT > 0) {
|
|
|
|
+ $(".header_header").css({height: (60 - nowT) +'px'})
|
|
|
|
+ if (nowT > 50) {
|
|
|
|
+ $(".header_header").hide();
|
|
|
|
+ $(".switch").show();
|
|
|
|
+ }else{
|
|
|
|
+ $(".header_header").show();
|
|
|
|
+ $(".switch").hide();
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ $(".header_header").css({height: (60) +'px'})
|
|
|
|
+ $(".header_header").show()
|
|
$(".switch").hide();
|
|
$(".switch").hide();
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- $(".header_header").css({height: (60) +'px'})
|
|
|
|
- $(".header_header").show()
|
|
|
|
- $(".switch").hide();
|
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//页面渲染处理
|
|
//页面渲染处理
|