<template>
  <view class="page__view">

		<navbar :title="title" leftClick @leftClick="$utils.navigateBack" color="#191919" bgColor="#FFFFFF" />

    <view class="main">
      <view class="comment">
        <view class="comment-item" v-for="item in list" :key="item.id">
          <commentCard :data="item"></commentCard>
        </view>
      </view>
    </view>

  </view>
</template>

<script>
	import mixinsList from '@/mixins/list.js'

  import commentCard from '@/pages_order/comment/commentCard.vue'

  export default {
		mixins: [mixinsList],
    components: {
      commentCard,
    },
    data() {
      return {
        title: '用户评价',
				mixinsListApi: 'productEvaluate',
      }
    },
    onShow() {
      console.log('onShow')
    },
    onLoad(arg) {
      console.log('onLoad')
      const { productId } = arg

      this.queryParams.productId = productId

      this.getData()
    },
    methods: {
    },
  }
</script>

<style scoped lang="scss">
  .page__view {
    width: 100vw;
    min-height: 100vh;
    background-color: $uni-bg-color;
    position: relative;
    
    /deep/ .nav-bar__view {
      position: fixed;
      top: 0;
      left: 0;
    }
    
  }

  .main {
    width: 100vw;
    padding-top: calc(var(--status-bar-height) + 120rpx);
    box-sizing: border-box;
	}

  
  .comment {
    padding: 40rpx 32rpx;
    
    &-item {
      & + & {
        margin-top: 40rpx;
      }
    }
  }

</style>