<template>
  <div class="carmange">
    <div class="top">
      <div class="add">
        <div class="text" @click="jumpPage('/pages/subPackages/carmange/add')">
          新增
        </div>
        <van-icon name="add" />
      </div>
    </div>
    <div class="list">
      <div class="list-row">
        <div class="left">
          <div class="info">车牌号：苏B51WK7</div>
          <div class="info1">司机姓名：苏B51WK7</div>
          <div class="info1">手机号：苏B51WK7</div>
        </div>
        <div class="right">
          <van-icon size="48rpx" color="rgba(138, 5, 84, 1)" name="delete" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    jumpPage(path) {
      console.log(path);
      uni.navigateTo({
        url: path,
        fail: (fail) => {},
      });
    },
  },
};
</script>

<style lang="scss">
.carmange {
  .top {
    width: 750rpx;
    color: #8a0554;
    height: 80rpx;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 36rpx;
    box-sizing: border-box;
    .add {
      display: flex;
      margin-left: auto;
      .text {
        margin-right: 12rpx;
      }
    }
  }
  .list {
    width: 100%;
    box-sizing: border-box;
    .list-row {
      box-sizing: border-box;
      padding: 24rpx;
      display: flex;
      align-items: center;
      justify-content: space-between;

      .left {
        .info {
          font-weight: 400;
          font-size: 32rpx;
          color: #222222;
          margin-bottom: 16rpx;
        }
        .info1 {
          font-weight: 400;
          font-size: 28rpx;
          color: #888888;
        }
      }
    }
  }
}
</style>