index.vue 649 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <view class="content">
  3. <home v-if="tabbarActive === 'home'" />
  4. <exhibitor v-if="tabbarActive === 'exhibitor'" />
  5. <tab-bar :active.sync="tabbarActive"></tab-bar>
  6. </view>
  7. </template>
  8. <script>
  9. import TabBar from '@/components/layout/tab-bar.vue'
  10. import Home from '@/pages/index/home.vue'
  11. import Exhibitor from '@/pages/exhibitor/index.vue'
  12. export default {
  13. options: {
  14. // styleIsolation: 'shared'
  15. },
  16. components: {
  17. TabBar,
  18. Home,
  19. Exhibitor
  20. },
  21. data() {
  22. return {
  23. tabbarActive: 'home'
  24. }
  25. },
  26. created() {},
  27. methods: {
  28. onClickSearch() {
  29. }
  30. }
  31. }
  32. </script>
  33. <style lang="scss" scoped>
  34. </style>