<template>
  <view class="chargeBox">
    <!-- 理想 -->
    <view class="chargeItem">
      <view class="chargeIconBox">
        <img class="chargeIcon" src="/static/images/home/LXIcon.png" />
      </view>
      <view class="chargeInfo">
        <span class="empty">空</span>
        <span class="emptyValue"></span>
        <span class="sum"></span>
      </view>
    </view>

    <!-- 蔚来 -->
    <view class="chargeItem">
      <view class="chargeIconBox">
        <img class="chargeIcon" src="https://eshangtech.com/minTestImg/WLIcon.png" />
      </view>
      <view class="chargeInfo">
        <span class="empty">空</span>
        <span class="emptyValue"></span>
        <span class="sum"></span>
      </view>
    </view>

    <!-- 时代新能源(阳光) -->
    <view class="chargeItem">
      <view class="chargeIconBox">
        <img class="chargeIcon" src="/static/images/home/sunIcon.png" />
      </view>
      <view class="chargeInfo">
        <span class="empty">空</span>
        <span class="emptyValue"></span>
        <span class="sum"></span>
      </view>
    </view>

    <!-- 国网(充换电) -->
    <view class="chargeItem">
      <view class="chargeIconBox">
        <img class="chargeIcon" src="/static/images/home/stateGridIcon.png" />
      </view>
      <view class="chargeInfo">
        <span class="empty">空</span>
        <span class="emptyValue"></span>
        <span class="sum"></span>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: ["SERVERPARTID"],
  watch: {
    SERVERPARTID: {
      handler(newVal, oldVal) {
        console.log("发生了变化", newVal, oldVal);
      },
      deep: true,
    },
  },
};
</script>

<style scoped lang="less">
.chargeBox {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  .chargeItem {
    .chargeIconBox {
      width: 40rpx;
      height: 40rpx;
      .chargeIcon {
        width: 40rpx;
        height: 40rpx;
      }
    }
    .chargeInfo {
      margin-top: 8rpx;
      .empty {
        font-family: "PingFangSC";
        font-weight: 400;
        font-size: 24rpx;
        color: #130f05;
        line-height: 36rpx;
        text-align: left;
        font-style: normal;
        margin-right: 4rpx;
      }
      .emptyValue {
        font-family: "DINAlternate";
        font-weight: bold;
        font-size: 32rpx;
        color: #130f05;
        line-height: 36rpx;
        text-align: left;
        font-style: normal;
        margin-right: 4rpx;
      }
      .sum {
        font-family: "DINAlternate";
        font-weight: bold;
        font-size: 32rpx;
        color: #716f69;
        line-height: 36rpx;
        text-align: left;
        font-style: normal;
      }
    }
  }
}
</style>
