35 lines
1.9 KiB
Plaintext
35 lines
1.9 KiB
Plaintext
<view class="talk-container">
|
|
<view bindtap="checkDetail" class="talk" data-id="{{item.trifleMyselfId}}" wx:if="{{talkList.length>0}}" wx:for="{{talkList}}" wx:key="index">
|
|
<view class="talk-user">
|
|
<view class="user-info">
|
|
<image src="{{item.headPortrait}}"></image>
|
|
<view class="user-name">
|
|
<view class="name">{{item.nickName}}</view>
|
|
<view class="time">{{item.gmtCreate}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="talk-content"> {{item.content}} </view>
|
|
<view class="talk-photo" wx:if="{{item.photo.length>0}}">
|
|
<view class="photo-box photo-one" wx:if="{{item.photo.length==1}}" wx:for="{{item.photo}}" wx:for-item="photo" wx:key="index">
|
|
<image mode="widthFix" src="{{serviceUrl+baseImgUrl+photo}}"></image>
|
|
</view>
|
|
<view class="photo-box photo-four" wx:if="{{item.photo.length==4}}" wx:for="{{item.photo}}" wx:for-item="photo" wx:key="index">
|
|
<image mode="widthFix" src="{{serviceUrl+baseImgUrl+photo}}"></image>
|
|
</view>
|
|
<view class="photo-box photo-more" wx:if="{{item.photo.length>1&&item.photo.length!=4}}" wx:for="{{item.photo}}" wx:for-item="photo" wx:key="index">
|
|
<image mode="widthFix" src="{{serviceUrl+baseImgUrl+photo}}"></image>
|
|
</view>
|
|
</view>
|
|
<view catchtap="clickVideo" class="talk-photo" wx:if="{{item.video}}">
|
|
<view class="photo-box video-box">
|
|
<video src="{{serviceUrl+baseImgUrl+item.video}}"></video>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="no-data" wx:if="{{talkList.length==0}}">
|
|
<image mode="widthFix" src="{{sourceUrl}}no-data.png"></image>
|
|
</view>
|
|
</view>
|
|
<view bindtap="newTalk" class="new-talk" wx:if="{{isShowMenu}}">+</view>
|