index.vue 673 B

123456789101112131415161718192021222324252627
  1. <script setup lang="ts">
  2. import home from './components/home.vue'
  3. import order from './components/order.vue'
  4. definePage({
  5. name: 'video-rights-tabbar',
  6. islogin: true,
  7. style: {
  8. navigationBarTitleText: '',
  9. navigationStyle: 'custom',
  10. },
  11. })
  12. const tabbar = ref(0)
  13. </script>
  14. <template>
  15. <home v-if="tabbar === 0" />
  16. <order v-if="tabbar === 1" />
  17. <view class="">
  18. <wd-tabbar v-model="tabbar" safe-area-inset-bottom placeholder fixed :bordered="false" :z-index="99999">
  19. <wd-tabbar-item title="商品" icon="goods" />
  20. <wd-tabbar-item title="订单记录" icon="list" />
  21. </wd-tabbar>
  22. </view>
  23. </template>
  24. <style lang="scss" scoped></style>