<template>
    <div class="historyListBody">
        <div class="historyItem" v-for="item in historyList">
            <div class="tags">会议室</div>
            <div class="historyItemTitle">主题主题主题主题主题主题主题主题主题主题主题主题主题</div>
            <div class="historyItemInfo">使用日期：7月30日</div>
            <div class="historyItemInfo">资源名称：党建会议室</div>
            <div class="historyItemInfo">位置：A栋一楼</div>
            <div class="historyItemInfo">预约时间：2024.07.21  12：30</div>
            <div class="historyItemBottom">
              <span class="typeInfo" :class="item.type==='已通过'?'tgType':item.type==='已取消'?'qxType':''">{{item.type}}</span>
              <button class="btn" :class="item.type==='暂存'?'zcBtn':''" v-if="item.type !=='已取消'">{{item.type==='暂存'?'暂存':'取消'}}</button>
            </div>
        </div>
    </div>
</template>

<script>
export default {
  name: "appointmentHistory",
  data(){
    return{
      historyList:[
        {type:'审核中'},
        {type:'已通过'},
        {type:'已取消'},
        {type:'暂存'},
      ]
    }
  }
}
</script>

<style lang="scss">
    .historyListBody{
      margin-top: 24rpx;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-bottom: 100rpx;
      .historyItem{
        width: 686rpx;
        padding: 24rpx 0;
        background: white;
        box-sizing: border-box;
        position: relative;
        border-radius: 16rpx;
        margin-bottom: 24rpx;
        .tags{
          width: 148rpx;
          height: 56rpx;
          position: absolute;
          top: 0;
          right: 0;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 26rpx;
          color: rgba(3, 101, 249, 1);
          background: url('https://www.idea-co-sf.com/gardenProduct/image/bj04.png') no-repeat;
          background-size: 100%;
        }
        .historyItemTitle{
          padding: 8rpx 32rpx;
          width: 480rpx;
          color: rgba(34, 34, 34, 1);
          font-size: 32rpx;
          line-height: 40rpx;
          font-weight: 500;
        }
        .historyItemInfo{
          color: rgba(102, 102, 102, 1);
          font-size: 28rpx;
          padding: 10rpx 32rpx;
        }
        .historyItemBottom{
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 28rpx 32rpx 0 32rpx;
          border-top: 1px solid rgba(232, 237, 245, 1);
          margin-top: 22rpx;
          .typeInfo{
            font-size: 28rpx;
            color: rgba(226, 81, 0, 1);
          }
          .tgType{
            color: rgba(3, 101, 249, 1);
          }
          .qxType{
            color:rgba(242, 25, 18, 1);
          }
          .btn{
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28rpx;
            width: 160rpx;
            height: 60rpx;
            border-radius: 32rpx;
            border: 2rpx solid rgba(255, 107, 24, 1);
            color:rgba(255, 107, 24, 1);
            &::after{
              border: none;
            }
          }
          .zcBtn{
            background: linear-gradient( 316deg, #84AAFF 0%, #0365F9 100%);
            color: white;
            border: none;
          }
        }
      }
    }
</style>
