Browse Source

fix: 修复vip订阅跳转错误

zhangyuhan 5 years ago
parent
commit
c5505eca38
1 changed files with 7 additions and 4 deletions
  1. 7 4
      src/web/templates/weixin/historypush.html

+ 7 - 4
src/web/templates/weixin/historypush.html

@@ -132,8 +132,12 @@
             });
             // TODO 缺陷疑问
             $(".wx_header_right .sub_manager").click(function () {
-                setSessionStorage();
-                window.location.href = '/wxkeyset/keyset/index';
+                if (!isVipSub) {
+                    setSessionStorage();
+                    window.location.href = '/wxkeyset/keyset/index';
+                } else {
+                    tosetpage()
+                }
             });
             //
             $(window).scroll(function () {
@@ -389,8 +393,7 @@
                 $('.wx_header').show();
                 // $(".vip_set").show();
                 // TODO vip
-                $(".switch").addClass("only-vip");
-                $(".switch").text("VIP订阅").show();
+                $(".switch").addClass("only-vip");$(".switch").text("VIP订阅").show();
                 $(".switch").click(tosetpage);
                 // thisClass.InitVip(r);
                 // extend(1);