<template>
  <view class="">
    <view class="item" v-for="item of 3">
      <view class="item-top">
        <view class="top-l">
          <img class="img" src="@/static/QR57a.jpg" alt="">
          <view class="l-text">
            <p class="l-name">匿名用户</p>
            <p class="l-time">2023-11-05</p>
          </view>
        </view>
        <view class="top-r">
          <p class="r-text">更多</p>
          <u-icon name="arrow-right" color="#9B9B9B" size="18"></u-icon>
        </view>
      </view>

      <view class="rate-box">
        <span class="rate-text">评分:</span>
        <u-rate :count="count" v-model="value"></u-rate>
      </view>

      <view class="content-box">
        <p class="content-text">服务非常好服务非常好服务非常好服务非常好服务非常好服务非常好服务非常好</p>
        <view class="content-img-box">
          <img class="content-img" src="@/static/QR57a.jpg" alt="" v-for="item of 5">
        </view>
      </view>


      <view class="btn-box">
        <view class="btn" @click="handlerSkipBack">回复</view>
      </view>
    </view>
  </view>
</template>

<script>
  export default{
    data(){
      return{
        count: 5,
        value: 2,
      }
    },
    methods:{
      // 点击跳转到回复
      handlerSkipBack(){
        uni.navigateTo({
          url:'/pages/tabbar/store/evaluateBack'
        })
      }
    }
  }
</script>

<style lang="scss" scoped>
  .item{
    background-color: #fff;
    padding: 20rpx;
    margin: 10rpx 0;
    .item-top{
      display: flex;
      justify-content: space-between;
      align-items: center;
      .top-l{
        display: flex;
        align-items: center;
          .img{
            width: 120rpx;
            height: 120rpx;
            border-radius: 50%;
          }
          .l-text{
            .l-name{
              font-size: 28rpx;
              color: #777777;
            }
            .l-time{
              font-size: 24rpx;
              color: #777777;
            }
          }
      }
      .top-r{
        display: flex;
        .r-text{
          font-size: 26rpx;
          color: #777777;
        }
      }
    }

    .rate-box{
      display: flex;
      font-size: 28rpx;
      color: #777777;
      margin: 20rpx;
      .rate-text{
        margin-right: 10rpx;
      }
    }

    .content-box{
      .content-text{

      }
      .content-img-box{
        display: grid;
        grid-template-columns: 22% 22% 22% 22%;
        justify-content: space-around;
        .content-img{
          width: 180rpx;
          height: 180rpx;
        }
      }
    }
    .btn-box{
      display: flex;
      justify-content: flex-end;
      .btn{
        background-color: #fff;
        border: 2rpx solid #F56C6C;
        color: #F56C6C;
        text-align: center;
        width: 120rpx;
        font-size: 26rpx;
        padding: 10rpx 0;
        border-radius: 20rpx;
      }
    }
  }
</style>
