Browse Source

fix:底部导航栏增加订阅、工作台引导页跳转

yangfeng 11 months ago
parent
commit
fa48830806
1 changed files with 14 additions and 2 deletions
  1. 14 2
      apps/mobile/src/components/footer-tabbar/index.vue

+ 14 - 2
apps/mobile/src/components/footer-tabbar/index.vue

@@ -172,8 +172,20 @@ export default {
       const item = this.navs[navIndex]
       this.setActiveIcon(key)
       this.$emit('change', item)
-      callChangeTab(item.key, this.$router)
-      this.getCount()
+      if(!this.isLogin) {
+        if (item.key === 'subscribe') {
+          // TODO 跳转到订阅引导页
+          location.replace('/jyapp/freesubscribe/')
+        } else if (item.key === 'box') {
+          // TODO 跳转到工作台引导页
+          location.replace('/jyapp/workbench/')
+        } else {
+          callChangeTab(item.key, this.$router)
+        }
+      } else {
+        callChangeTab(item.key, this.$router)
+        this.getCount()
+      }
     }
   }
 }