Selaa lähdekoodia

fix: 修复新用户进入老订阅管理页面的问题

熊啸云 3 vuotta sitten
vanhempi
commit
245d290203

+ 1 - 3
src/jfw/modules/app/src/web/staticres/jyapp/vipsubscribe/js/vip_index_new.js

@@ -74,7 +74,6 @@ var subNode = new Vue({
                         $('.update_renew').hide()
                         $('.update_renew').hide()
                         if(num == 1) {
                         if(num == 1) {
                             $('.custom-header-title').html('<span class="title-text"><em class="title_icon icon_zj"></em>订阅管理-大会员</span>')
                             $('.custom-header-title').html('<span class="title-text"><em class="title_icon icon_zj"></em>订阅管理-大会员</span>')
- 
                         } else if(num == 2) {
                         } else if(num == 2) {
                             $('.custom-header-title').html('<span class="title-text"><em class="title_icon icon_zh"></em>订阅管理-大会员</span>')
                             $('.custom-header-title').html('<span class="title-text"><em class="title_icon icon_zh"></em>订阅管理-大会员</span>')
 
 
@@ -333,10 +332,9 @@ $(function () {
               } else if (switchProduct == 'free') {
               } else if (switchProduct == 'free') {
                 subNode.initData = r.data
                 subNode.initData = r.data
               } else {
               } else {
-                res = r
+                res = resObj
               }
               }
           }
           }
-          if (!res.success) return;
           if(!res.data.industry) {
           if(!res.data.industry) {
               res.data.industry = []
               res.data.industry = []
           }
           }

+ 12 - 8
src/jfw/modules/app/src/web/templates/weixin/historypush.html

@@ -858,12 +858,14 @@
             let thisType = sessionStorage.getItem('userIsNew')
             let thisType = sessionStorage.getItem('userIsNew')
             if (userNewType || thisType) {
             if (userNewType || thisType) {
                 location.href = '/jyapp/vipsubscribe/toSubVipSetPage'
                 location.href = '/jyapp/vipsubscribe/toSubVipSetPage'
-            }
-            if(vm.rootInfo.memberStatus > 0) {
-                location.href = '/jyapp/vipsubscribe/toSubVipSetPage'
             } else {
             } else {
-                tokeyset()
+                if(vm.rootInfo.memberStatus > 0) {
+                    location.href = '/jyapp/vipsubscribe/toSubVipSetPage'
+                } else {
+                    tokeyset()
+                }
             }
             }
+            
         });
         });
         $(".tab_left .area").hide();
         $(".tab_left .area").hide();
         if (r.isPassCount) {
         if (r.isPassCount) {
@@ -887,12 +889,14 @@
             let thisType = sessionStorage.getItem('userIsNew')
             let thisType = sessionStorage.getItem('userIsNew')
             if (userNewType || thisType) {
             if (userNewType || thisType) {
                 location.href = '/jyapp/vipsubscribe/toSubVipSetPage'
                 location.href = '/jyapp/vipsubscribe/toSubVipSetPage'
-            }
-            if(vm.selectPro) {
-                location.href = '/jyapp/vipsubscribe/toSubVipSetPage'
             } else {
             } else {
-                tosetpage()
+                if(vm.selectPro) {
+                    location.href = '/jyapp/vipsubscribe/toSubVipSetPage'
+                } else {
+                    tosetpage()
+                }
             }
             }
+            
         });
         });
         if(productType == 0) {
         if(productType == 0) {
             $(".vip_report").show();
             $(".vip_report").show();