<!--
 * @Author: your name
 * @Date: 2021-03-18 14:43:45
 * @LastEditTime: 2021-03-18 15:01:03
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \rebatedine-mini\src\pagesSub\commission\commissionRecord.vue
-->
<template>
  <view class="main">
    <network-error />
    <scroll-view class="list">
      <view v-for="(item,index) in list"
            :key="index"
            class="item">
        <view class="item-content">
          <view class="item-content-left">
            <image class="avatar"
                   :src="item.head_url"></image>
            <text class="name">{{item.nick_name}}</text>
          </view>
          <text class="time">{{item.created_at}}</text>
        </view>
        <view class="gap"></view>
      </view>
    </scroll-view>
  </view>
</template>
<script>
export default {
  data () {
    return {
      list: [{
        created_at: '2020-11-30 23:11:11',
        nick_name: 'Grace'
      }, {
        created_at: '2020-11-30 23:11:11',
        nick_name: 'Grace'
      }]
    }
  }
}
</script>
<style lang="scss" scoped>
.list {
  width: 100%;
  height: 100%;
}
.item {
  background-color: white;
  &-content {
    padding: 32rpx;
    display: flex;
    justify-content: space-between;
    align-items: center;
    &-left {
      display: flex;
      align-items: center;
      .avatar {
        background-image: url(~@/static/icon/avatar.png);
        background-size: 100%;
        width: 72rpx;
        height: 72rpx;
      }
      .name {
        font-size: 30rpx;
        color: #212121;
        font-weight: 400;
        margin-left: 16rpx;
      }
    }
    .time {
      font-size: 22rpx;
      color: #767778;
      font-weight: 400;
    }
  }
  .gap {
    height: 2rpx;
    width: 100%;
    background-color: #eaebec;
    margin-left: 32rpx;
  }
}
</style>
