<template>
  <!-- 校园轨迹组件 -->
  <view class="card radius shadow-warp bg-white">
    <view class="card-head solid-bottom">
      <view class="card-head-avatar bg-green">
        <view class="iconfont icon-temperature"></view>
      </view>
      <view class="card-head-title">健康上报</view>
      <!-- <view class="card-head-action">icon</view> -->
    </view>

    <view class="card-content">
      <view class="data-wrap">
        <view class="data-item">
          <view class="data-text text-green">100</view>
          <view class="data-title">正常</view>
        </view>
        <view class="data-item">
          <view class="data-text text-red">9</view>
          <view class="data-title">发烧</view>
        </view>
        <view class="data-item">
          <view class="data-text text-purple">10</view>
          <view class="data-title">其他</view>
        </view>
        <view class="data-item">
          <view class="data-text text-orange">50</view>
          <view class="data-title">未上报</view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  name: 'HealthData',
  data() {
    return {};
  },

  onLoad() {},

  methods: {},
};
</script>

<style lang="scss" scoped>
.data-wrap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 40rpx 0;

  .data-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;

    .data-text {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .data-title {
      font-size: 13px;
      color: $grey;
    }
  }
}
</style>
