<template>
  <view class="padding">
    <!-- 日期组件 -->
    <date-selector @change="getData" />
    <!-- 健康上报组件 -->
    <health-data />
    <!-- 校园轨迹组件 -->
    <location-map />
  </view>
</template>

<script>
import DateSelector from './components/date-selector';
import HealthData from './components/health-data';
import LocationMap from './components/location-map';

export default {
  name: 'Statistics',
  components: { DateSelector, LocationMap, HealthData },
  data() {
    return {};
  },

  onLoad() {},

  methods: {
    /**
     * 获取数据
     * @param {string} start 开始时间
     * @param {string} end 截止时间
     */
    getData(start, end) {
      console.log('start, end: ', start, end);
    },
  },
};
</script>
