<wxs src="../../utils/filter.wxs" module="filters" /> <view class="commentBox" wx:if="{{show}}"> <view class="commentBg" catchtap="close" catchtouchmove="true"></view> <view class="comment {{tabBarPadding?'seat2':''}}" animation="{{animationData}}"> <view class="header"> <view class="hl">评论 {{totalSize}}</view> <view class="hr" catchtap="close">×</view> </view> <view class="body" bindtap="cancelId"> <view class="body-box"> <view class="content" wx:for="{{list}}" wx:key="id"> <image src="{{item.user.avatar}}" class="c-avatar" /> <view class="c-right"> <view class="nickName"> {{item.user.nickName||item.user.eid}} </view> <view class="detailDesc">{{item.detailDesc}}</view> <view class="replyList" wx:if="{{item.replyVOList.length>0}}"> <view class="reply" wx:for="{{item.replyVOList}}" wx:for-item="reply" wx:key='id'> <text class="replyTitle">{{reply.user.nickName||reply.user.eid}}</text> <text class="replyContent">:{{reply.content}}</text> </view> </view> <view class="record"> <view class="time">{{filters.formatDate(item.gmtCreated,3)}}</view> <view class="record-right"> <view class="iconBox" catchtap="{{item.isLike? null:'setLike'}}" data-index="{{index}}" data-id="{{item.id}}"> <image class="icon" src="{{item.isLike? '/static/like_reply.png' : '/static/like_reply_grey.png'}}" /> <text>{{item.likeCount}}</text> </view> <view class="iconBox" catchtap="ReplyComment" data-index="{{index}}" data-id="{{item.id}}"> <image class="icon" src="/static/reply_icon.png" /> <text>{{item.replyCount}}</text> </view> </view> </view> </view> </view> </view> </view> <view class="footer"> <input class="input" bindinput="bindKeyInput" value="{{detailDesc}}" placeholder="留下你的赞美,鼓励一下" focus="{{ifGetFocus}}" /> <view class="submit" bindtap="sendReply">发送</view> </view> </view> </view>