syshxcx/pages/talk/talk.wxml
dong_bo0602 c7f6c43f46 0609
2022-06-09 15:40:43 +08:00

59 lines
2.5 KiB
Plaintext

<view class="talk-container">
<view class="talk" bindtap="checkDetail" wx:for="{{talkList}}" wx:key="index" data-id="{{item.trifleMyselfId}}" wx:if="{{talkList.length > 0}}">
<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 class="good">
<image src="/images/good.png"></image>
<text>100</text>
</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:for="{{item.photo}}" wx:for-item="photo" wx:key="index" wx:if="{{item.photo.length == 1}}">
<image src="{{serviceUrl + baseImgUrl + photo}}" mode="widthFix"></image>
</view>
<view class="photo-box photo-four" wx:for="{{item.photo}}" wx:for-item="photo" wx:key="index" wx:if="{{item.photo.length == 4}}">
<image src="{{serviceUrl + baseImgUrl + photo}}" mode="widthFix"></image>
</view>
<view class="photo-box photo-more" wx:for="{{item.photo}}" wx:for-item="photo" wx:key="index" wx:if="{{item.photo.length > 1 && item.photo.length != 4}}">
<image src="{{serviceUrl + baseImgUrl + photo}}" mode="widthFix"></image>
</view>
</view>
<view class="talk-photo" wx:if="{{item.video}}" catchtap="clickVideo">
<view class="photo-box video-box">
<video src="{{serviceUrl + baseImgUrl + item.video}}"></video>
</view>
</view>
<!-- <view class="reply">
<view class="talk-user">
<view class="user-info">
<image src="/images/community-icon.png"></image>
<view class="user-name">
<view class="name">官方回复</view>
<view class="time">01月01日</view>
</view>
</view>
<view class="good">
<image src="/images/good.png"></image>
<text>100</text>
</view>
</view>
<view class="reply-content">
请问阿斯顿发射点饭卡手动阀垃圾筐第三方接口问阿斯顿发射点饭卡手动阀垃圾筐第三
</view>
</view> -->
</view>
<view class="no-data" wx:if="{{talkList.length == 0}}">
<image src="{{sourceUrl}}no-data.png" mode="widthFix"></image>
</view>
</view>
<!-- <view class="my-talk" bindtap="checkMyTalk">我的微事我言</view> -->
<view class="new-talk" bindtap="newTalk">+</view>