<template>
    <div>
      <van-tabs :active="active" @change="onChange">
        <van-tab title="共享资源" :name="0">
          <shareResources/>
        </van-tab>
        <van-tab title="预约历史" :name="1">
          <appointmentHistory />
        </van-tab>
      </van-tabs>
    </div>
</template>

<script>
import shareResources from "./components/shareResources.vue";
import appointmentHistory from "./components/appointmentHistory.vue";
export default {
  components:{
    shareResources,
    appointmentHistory
  },
  name: "index",
  data(){
    return{
      active:0
    }
  },
  methods:{
    onChange(){

    }
  }
}
</script>

<style scoped>

</style>
