69 lines
2.8 KiB
Plaintext
69 lines
2.8 KiB
Plaintext
<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 class="good">
|
|
<image src="/images/good.png"></image>
|
|
<text>100</text>
|
|
</view> -->
|
|
</view>
|
|
<view class="talk-content">
|
|
{{talkDetail.content}}
|
|
</view>
|
|
<view class="talk-photo" wx:if="{{talkDetail.photo.length > 0}}">
|
|
<view class="photo-box photo-one" wx:for="{{talkDetail.photo}}" wx:key="index" bindtap="viewImg" data-id="{{item}}" wx:if="{{talkDetail.photo.length == 1}}">
|
|
<image src="{{serviceUrl + baseImgUrl + item}}" mode="widthFix"></image>
|
|
</view>
|
|
<view class="photo-box photo-more" wx:for="{{talkDetail.photo}}" wx:key="index" bindtap="viewImg" data-id="{{item}}" wx:if="{{talkDetail.photo.length > 1}}">
|
|
<image src="{{serviceUrl + baseImgUrl + item}}" mode="widthFix"></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 class="good-text" bindtap="toggleGood">
|
|
<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 class="reply" wx:for="{{replyList}}" wx:key="index" bindtap="getFocus" data-user="{{item.userName}}" data-id="{{item.commentId}}" data-name="{{item.userName}}">
|
|
<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 class="good">
|
|
<image src="/images/good.png"></image>
|
|
<text>100</text>
|
|
</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 type="text" placeholder="{{placeholder}}" model:value="{{reply}}" bindconfirm="doReply" focus="{{isGetFocus}}" bindblur="inputBlur"/>
|
|
</view> |