<!--
 * @Author: your name
 * @Date: 2023-02-01 14:25:29
 * @LastEditTime: 2023-02-02 14:32:40
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \app-template（泸州）\src\components\yjzlItem.vue
-->
<template>
  <div class="yjzlItem-box">
    <div class="time"><van-icon name="clock-o" />{{props.data.warnningTime}}</div>
    <div class="info">
      <div class="item-tip">
        <span class="status"
        :class="props.data.alarmStatus.desc == '待处理'?'colorRed':''"
        >{{props.data.alarmStatus.desc}}</span>
        <span class="bq"><span class="sircle"></span> {{props.data.label}}</span>
      </div>
      <div class="itemitem">
        <span><van-icon name="coupon-o" />{{props.data.plateNumber}}</span>
        <span class="name"><van-icon name="user-o" />{{props.data.userName}}</span>
      </div>
      <div class="itemitem">
        <span><van-icon name="coupon-o" />{{props.data.checkName}}</span>
      </div>
      <div class="itemitem">
        <span
          ><van-icon
            name="location-o"
          />{{props.data.activityAddress}}</span
        >
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref, onMounted, reactive, defineProps } from "vue";
const props = defineProps({
  data: Object,
});
</script>

<style lang="scss" scoped>
.yjzlItem-box {
  padding: 3vw 4vw;
  box-sizing: border-box;
  .time {
    font-size: 16px;
    .van-icon-clock-o {
      margin-right: 2vw;
      font-size: 16px;
    }
  }
  .info {
    background-color: rgba(241, 241, 241, 0.5);
    padding: 2vw;
    box-sizing: border-box;
    border-radius: 3px;
    .item-tip {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      .status {
        color: #3373fa;
      }
      .colorRed{
        color: red;
      }
      .bq {
        padding: 0 0.3125rem;
        border-radius: 100px 0 0 100px;
        background-color: #ffb139;
        color: #fff;
        font-size: 0.875rem;
        line-height: 24px;
        height: 24px;
        .sircle {
          display: inline-block;
          width: 8px;
          height: 8px;
          background: #fff;
          border-radius: 50%;
          margin-right: 1vw;
        }
      }
    }
    .itemitem {
      font-size: 0.875rem;
      color: #999;
      line-height: 6vw;
      .van-icon {
        margin-right: 1vw;
      }
      .name {
        margin-left: 2vw;
      }
    }
  }
}
</style>