city_card/pages/talk/talkDetail.wxml

57 lines
2.7 KiB
Plaintext
Raw Normal View History

2023-07-15 14:25:28 +08:00
<view class="talk">
<view class="talk-user">
<view class="user-info">
<image src="{{talkDetail.headPortrait}}"></image>
<view class="user-name">
<view class="name">{{talkDetail.nickName}}</view>
<view class="time">{{talkDetail.gmtCreate}}</view>
</view>
</view>
</view>
<view class="talk-content"> {{talkDetail.content}} </view>
<view class="talk-photo" wx:if="{{talkDetail.photo.length>0}}">
<view bindtap="viewImg" class="photo-box photo-one" data-id="{{item}}" wx:if="{{talkDetail.photo.length==1}}" wx:for="{{talkDetail.photo}}" wx:key="index">
<image mode="widthFix" src="{{serviceUrl+baseImgUrl+item}}"></image>
</view>
<view bindtap="viewImg" class="photo-box photo-more" data-id="{{item}}" wx:if="{{talkDetail.photo.length>1}}" wx:for="{{talkDetail.photo}}" wx:key="index">
<image mode="widthFix" src="{{serviceUrl+baseImgUrl+item}}"></image>
</view>
</view>
<view class="talk-photo" wx:if="{{talkDetail.video}}">
<view class="photo-box video-box">
<video src="{{serviceUrl+baseImgUrl+talkDetail.video}}"></video>
</view>
</view>
</view>
<view class="click-good">
<view bindtap="toggleGood" class="good-text">
<image src="{{sourceUrl}}good-on.png" wx:if="{{isClickGood=='yes'}}"></image>
<image src="{{sourceUrl}}good.png" wx:else></image>
<view class="good-count">{{goodCount}}人点赞</view>
</view>
<view class="good-avatar">
<image src="{{item.headPortrait}}" wx:for="{{clickGoodPeople}}" wx:key="index"></image>
</view>
</view>
<view class="reply-container">
<view bindtap="getFocus" class="reply" data-id="{{item.commentId}}" data-name="{{item.userName}}" data-user="{{item.userName}}" wx:for="{{replyList}}" wx:key="index">
<view class="talk-user">
<view class="user-info">
<image src="{{item.headPortrait}}"></image>
<view class="user-name">
<view class="name">{{item.userName}}</view>
<view class="time">{{item.gmtCreate}}</view>
</view>
</view>
</view>
<view class="reply-content"> {{item.content}} </view>
<view class="reply-reply">
<view class="reply-row" wx:for="{{item.subCommentList}}" wx:for-item="child">
<text>{{child.userName}}</text> 回复 <text>{{child.replyUserName}}</text> : {{child.content}} </view>
</view>
</view>
</view>
<view class="edit-reply">
<input bindblur="inputBlur" bindconfirm="doReply" focus="{{isGetFocus}}" value="{{reply}}" placeholder="{{placeholder}}" type="text"></input>
</view>