index.vue 676 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <div>
  3. <van-tabs :active="active" @change="onChange">
  4. <van-tab title="共享资源" :name="0">
  5. <shareResources/>
  6. </van-tab>
  7. <van-tab title="预约历史" :name="1">
  8. <appointmentHistory />
  9. </van-tab>
  10. </van-tabs>
  11. </div>
  12. </template>
  13. <script>
  14. import shareResources from "./components/shareResources.vue";
  15. import appointmentHistory from "./components/appointmentHistory.vue";
  16. export default {
  17. components:{
  18. shareResources,
  19. appointmentHistory
  20. },
  21. name: "index",
  22. data(){
  23. return{
  24. active:0
  25. }
  26. },
  27. methods:{
  28. onChange(){
  29. }
  30. }
  31. }
  32. </script>
  33. <style scoped>
  34. </style>