<script setup>
import CalendarTab from './components/CalendarTab.vue'
import CheckInTab from './components/CheckInTab.vue'

const currTab = ref(0)
const tabChange = (value) => {
  currTab.value = value
}
</script>

<template>
  <view>
    <CheckInTab v-if="currTab === 0" />
    <CalendarTab v-else />

    <up-tabbar :value="currTab" @change="tabChange">
      <up-tabbar-item text="签到" icon="map-fill" />
      <up-tabbar-item text="统计" icon="calendar-fill" />
    </up-tabbar>
  </view>
</template>
