45 lines
2.8 KiB
Plaintext
45 lines
2.8 KiB
Plaintext
<view class="lists" wx:if="{{surveyArr.length > 0}}">
|
|
<view class="lists-item" wx:for="{{surveyArr}}" wx:key="surveyArr">
|
|
<view class="lists-top">
|
|
<image class="lists-head" src="{{item.user.avatar}}" mode="aspectFill"></image>
|
|
<view class="lists-cont">
|
|
<view class="lists-name">
|
|
{{item.user.nickname}}
|
|
</view>
|
|
<image wx:if="{{item.user.identity.order == '1'}}" class="lists-identity" src="/static/icons/member_01.png" mode="widthFix"></image>
|
|
<image wx:elif="{{item.user.identity.order == '2'}}" class="lists-identity" src="/static/icons/member_02.png" mode="widthFix"></image>
|
|
<image wx:elif="{{item.user.identity.order == '3'}}" class="lists-identity" src="/static/icons/member_03.png" mode="widthFix"></image>
|
|
<image wx:elif="{{item.user.identity.order == '4'}}" class="lists-identity" src="/static/icons/member_04.png" mode="widthFix"></image>
|
|
<image wx:elif="{{item.user.identity.order == '5'}}" class="lists-identity" src="/static/icons/member_05.png" mode="widthFix"></image>
|
|
<image wx:else src="/static/icons/member_06.png" class="lists-identity" mode="widthFix"></image>
|
|
</view>
|
|
</view>
|
|
<view class="lists-text">
|
|
<text>{{item.content}}</text>
|
|
</view>
|
|
<view class="lists-img" wx:if="{{item.pictures.length > 0}}">
|
|
<block wx:if="{{item.pictures.length >= 3}}">
|
|
<view class="lists-label lists-three" wx:for="{{item.pictures}}" wx:key="picturesItems" wx:for-item="items">
|
|
<image src="{{items}}" mode="aspectFill" bindtap="openImg" data-imgs="{{item.pictures}}" data-index="{{index}}"></image>
|
|
</view>
|
|
</block>
|
|
<block wx:elif="{{item.pictures.length == 1}}">
|
|
<view class="lists-label lists-one" wx:for="{{item.pictures}}" wx:key="picturesItems" wx:for-item="items">
|
|
<image src="{{items}}" mode="aspectFill" bindtap="openImg" data-imgs="{{item.pictures}}" data-index="{{index}}"></image>
|
|
</view>
|
|
</block>
|
|
<block wx:else>
|
|
<view class="lists-label lists-two" wx:for="{{item.pictures}}" wx:key="picturesItems" wx:for-item="items">>
|
|
<image src="{{items}}" mode="aspectFill" bindtap="openImg" data-imgs="{{item.pictures}}" data-index="{{index}}"></image>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="pack-center pages-hint" wx:else>
|
|
<image src="/static/imgs/coupon_null.png"></image>
|
|
<view>暂无数据</view>
|
|
</view>
|
|
<navigator hover-class="none" url="/pages/index/write/index" class="write">
|
|
<image src="/static/icons/white.png"></image>
|
|
</navigator> |