wangshan 5 anos atrás
pai
commit
7eea1ce8a3

+ 20 - 17
src/jfw/modules/app/src/web/templates/weixin/historypush.html

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