evaluateList.wxml
2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!--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>