<template>
  <view>
    <view class="evaluate-detail">
      <page-navbar bgColor="#fff" title="评价详情" />
      <dynamic-list :list="list" @message="handleMessage"></dynamic-list>
      <view class="fl-flex merchant-mine">
        <base-img
          src="/static/img.jpg"
          width="160rpx"
          height="160rpx"
          borderRadius="16rpx"
        ></base-img>
        <view class="merchant-list u-m-l-32">
          <view class="f-s-30 text-primary u-m-b-14 text-bold u-m-t-8">
            新世纪环球购物中心
          </view>
          <view class="fl-flex u-m-b-14 fl-align-center">
            <u-rate
              v-model="value"
              readonly
              gutter="0"
              size="24"
              activeColor="#ffa033"
            ></u-rate>
            <view class="f-s-26 text-99">(3.0)</view>
          </view>
          <view class="f-s-24 text-999">世纪城国际展览中心世纪城国际展览中心</view>
        </view>
      </view>

      <view class="evaluate">
        <view class="fl-text-title u-m-b-32">全部评价</view>
        <evaluate-list v-for="(item, index) in 8" :key="index"></evaluate-list>
      </view>
    </view>
    <view class="evaluate-button">
      <publish-bottom></publish-bottom>
    </view>
    <publish-review :show="show" @close="handleClose"></publish-review>
  </view>
</template>

<script>
export default {
  name: 'evaluate-detail',
  data() {
    return {
      list: [{}],
      value: 3,
      show: false,
    };
  },
  methods: {
    handleMessage(item) {
      console.log(item, 'item');
      this.show = true;
    },
    handleClose(val) {
      this.show = val;
    },
  },
};
</script>

<style lang="scss" scoped>
.evaluate-detail {
  height: 100%;
  padding: 20rpx 32rpx;
  background-color: #fff;
  .merchant-mine {
    padding: 16rpx;
    border-radius: 8rpx;
    border: 2rpx solid #e6e6e6;
  }
  .evaluate {
    margin: 32rpx 0;
  }
}
.evaluate-button {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #fff;
}
</style>