<template>
  <view class="main">
    <view class="listBox">
      <view class="listItem" v-for="(item,index) in dataList" :key="index">

        <view class="itemLeft">
          <view class="leftTop">
            <view class="icon"  src="https://eshangtech.com/ShopICO/yxcl/settlementApproval/personIcon.png"></view>
          </view>
          <view class="line" v-if="index!==dataList.length - 1"></view>
        </view>

        <view class="itemRight">
          <view class="itemTop">
            <span class="itemTime">{{item.StatisticsDate || ''}}</span>
            <span class="value">{{item.CorrectAmount || ''}}</span>
          </view>
          <view class="personBox">
            <image class="personIcon"/>
            <span class="personText">{{item.CorrectStaff || ''}}</span>
          </view>
          <view class="descBox">{{item.CorrectDesc || ''}}</view>
        </view>

      </view>
    </view>
  </view>
</template>
<script>
export default {
  name: "dailyList",
  data() {
    return {
      dataList:[]
    }
  },
  onLoad(query){
    if(query.res){
      this.dataList = JSON.parse(query.res)
    }
    console.log('this.dataList',this.dataList)
  }
}
</script>


<style scoped lang="scss">
.main{
  width: 100%;
  min-height: 100vh;
  background-color: #F3F3F3;
  box-sizing: border-box;
  padding: 24rpx 32rpx;
  .listBox{
    width: 100%;
    box-sizing: border-box;
    background: #FFFFFF;
    border-radius: 16rpx;
    background: linear-gradient( 180deg, #FFF7F2 0%, #FFFFFF 10%);
    padding: 40rpx 0;
    .listItem{
      width: 100%;
      box-sizing: border-box;
      padding: 0 24rpx;
      display: flex;
      align-items: flex-start;
      .itemLeft{
        margin-right: 16rpx;
        height: 100%;
        line-height: 0;
        .leftTop{
          width: 16rpx;
          height: 20px;
          line-height: 40rpx;
          .icon{
            display: inline-block;
            width: 16rpx;
            height: 16rpx;
            border-radius: 50%;
            background: #CC9E8C;
            margin-right: 16rpx;
          }
        }
        .line{
          width: 4rpx;
          min-height: 224rpx;
          background: #F3EAE7;
          margin: 4rpx 0;
          margin-left: 6rpx;
        }
      }
      .itemRight{
        flex: 1;
        margin-bottom: 40rpx;
        .itemTop{
          display: flex;
          align-items: center;
          justify-content: space-between;
          .itemTime{
              font-family: PingFangSC, PingFang SC;
              font-weight: 600;
              font-size: 28rpx;
              color: #160002;
              line-height: 40rpx;
              text-align: left;
              font-style: normal;
          }
          .value{
            font-family: PingFangSC, PingFang SC;
            font-weight: 600;
            font-size: 28rpx;
            color: #9A3D1A;
            line-height: 40rpx;
            text-align: center;
            font-style: normal;
          }
        }
        .personBox{
          display: flex;
          align-items: center;
          .personIcon{
            width: 32rpx;
            height: 32rpx;
          }
          .personText{
            font-family: PingFangSC, PingFang SC;
            font-weight: 400;
            font-size: 28rpx;
            color: #786B6C;
            line-height: 40rpx;
            text-align: left;
            font-style: normal;
          }
        }
        .descBox{
          background: #F7F8FA;
          border-radius: 8rpx;
          display: inline-block;
          box-sizing: border-box;
          width: 100%;
          padding: 16rpx 24rpx;
          margin-top: 16rpx;
        }
      }



    }
  }
}
</style>
