evaluateList.wxml 2.76 KB
<!--evaluateList.wxml-->
<view class='container'>
  <scroll-view tt:if='{{evaluateList.length > 0}}' scroll-y style="height:{{screenHeight}}px" bindscrolltolower="loadMore" >

      <!-- 分类选择 -->
      <view class="contentContainer">
          <block tt:for="{{fileterList}}" tt:key="{{item.filterId}}">
            <view class="category-item {{currentFilterId == item.filterId ? 'selected' : ''}}" 
            style="{{currentFilterId == item.filterId ? 'background: #444444;' : 'background: #F0F0F0;'}}" 
            data-id="{{item.filterId}}" bindtap="onFilterIdSelected">
              <text class="item-name">{{item.msg}}({{item.num}})</text>
            </view>
          </block>
        </view>

      <!-- 晒单评价list -->
      <block tt:for="{{evaluateList}}" tt:key="evaluate">
        <view class="gap"></view>
        <view class='evaluateLis-item-view'>
          <view class='evaluateLis-item-head'>
            <image class='evaluateLis-item-ico' src='{{item.headIco}}' mode="aspectFit"></image>
            <text class='evaluateLis-item-name'>{{item.nickName}}</text>
            <image class='evaluateLis-item-level' src='{{item.vipLevelImg}}' mode="aspectFit"></image>
          </view>
        </view>
        <view class='evaluateLis-item-time-view'>
          <text class='evaluateLis-item-time'>{{item.createTime}}</text>
          <text class='evaluateLis-item-time'>{{item.factory_goods_name}}</text>
          <text class='evaluateLis-item-time'>{{item.size_name}}</text>
        </view>
        
        <view tt:if='{{item.content}}' class='evaluateLis-item-content-view'>
          <text class='evaluateLis-item-content'>{{item.content}}</text>
        </view>
        <view tt:if='{{item.url}}' class='evaluateLis-item-time-view'>
          <image class='evaluateLis-item-img' data-src="{{item.src}}" src='{{item.url}}' mode="aspectFit" bindtap="previewImage"></image>
        </view>
        <view tt:if='{{item.reply}}' class='goodsReply'>
          <text class='bold'>{{item.replyTitle}}</text>{{item.reply}}
        </view>
        <view class='evaluateLis-item-weight-view'>
          <view class='evaluateLis-item-head'>
            <text class='evaluateLis-item-weight'>{{item.weight}}</text>
            <text class='evaluateLis-item-weight'>{{item.height}}</text>
          </view>
          <view class='evaluateLis-item-head-right'>
            <block tt:for="{{item.satisfied}}" tt:key='index'>
              <image class='evaluateLis-item-start' src='/pages/goodsDetail/images/star@3x.png' 
                     mode="aspectFit"></image>
            </block>
            <text class='evaluateLis-item-size'>{{item.size}}</text>
          </view>
        </view>

      </block>
    
    <loading tt:if="{{isFetching}}">加载中...</loading>

  </scroll-view>
</view>