inspector.vue 788 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <view>
  3. <u-sticky bgColor="#fff"><u-tabs :lineWidth="tabLineWidth" :list="tabs" @click="click"></u-tabs></u-sticky>
  4. <handling v-if="currentTab == 0"></handling>
  5. <handled v-if="currentTab == 1"></handled>
  6. <tabbar></tabbar>
  7. </view>
  8. </template>
  9. <script>
  10. import tabbar from "@/components/tabbar";
  11. import Handled from "./components/handled.vue";
  12. import Handling from "./components/handling.vue";
  13. export default {
  14. components: {
  15. tabbar,
  16. Handled,
  17. Handling,
  18. },
  19. data() {
  20. return {
  21. currentTab: 0,
  22. tabLineWidth: 60,
  23. tabs: [{ name: "处理中", index: 0 }, { name: "已完结", index: 1 }],
  24. };
  25. },
  26. onLoad(option) {},
  27. methods: {
  28. click(e) {
  29. this.currentTab = e.index;
  30. },
  31. },
  32. };
  33. </script>
  34. <style lang="scss"></style>