Răsfoiți Sursa

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

yangfeng 1 an în urmă
părinte
comite
fa48830806
1 a modificat fișierele cu 14 adăugiri și 2 ștergeri
  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]
       const item = this.navs[navIndex]
       this.setActiveIcon(key)
       this.setActiveIcon(key)
       this.$emit('change', item)
       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()
+      }
     }
     }
   }
   }
 }
 }