1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <view class="comment-class-contain" bind:tap="tapCommentAction">
- <image class="head-img" src="{{ data.userInfo.avatar || '../../images/default_head.png'}}"></image>
- <view class="right-wrap {{showLine?'bottom-line':''}}">
- <view class="name-like-wrap">
- <text class="name">{{data.userInfo.userName || ""}}</text>
- <!-- <view class="like-wrap">
- <image class="like-icon" src="{{ data.like || '../../images/default_head.png'}}"></image>
- <text class="like">{{data.likeNum}}</text>
- </view> -->
- </view>
- <text class="content">{{data.content || ''}}</text>
- <view class="flex-center pad-bot-20">
- <text class="time ">{{data.createTimeText || ''}}</text>
- <text wx:if="{{data.isCommentUser}}" class="delete" catch:tap="tapDeleteAction">删除</text>
- </view>
- <block wx:if="{{data.replyList.length}}">
- <view class="reply-wrap" catch:tap="tapCommentAction" data-current-item="{{item}}"
- data-current-index="{{index}}" wx:for="{{data.replyList}}" wx:key="index">
- <image class="reply-head" src="{{ item.userInfo.avatar || '../../images/default_head.png'}}"></image>
- <view class="reply-item flex-1">
- <view class="flex-center-between flex-1">
- <view class="flex-center">
- <text class="reply-name">{{item.userInfo.userName}} <text class="owner"
- wx:if="{{!!item.userInfo.isAuthor}}">作者</text></text>
- <block wx:if="{{item.toUserInfo}}">
- <image class="icon" src="{{ data.like || '../../images/arrow_right.png'}}"></image>
- <text class="reply-name">{{item.toUserInfo.userName}}<text class="owner"
- wx:if="{{!!item.toUserInfo.isAuthor}}">作者</text></text>
- </block>
- </view>
- <!-- <view class="like-wrap">
- <image class="like-icon" src="{{ data.like || '../../images/default_head.png'}}"></image>
- <text class="like">{{item.likeNum}}</text>
- </view> -->
- </view>
- <text class="content">{{item.content || ''}}</text>
- <view class="flex-center">
- <text class="time">{{item.createTimeText || ''}}</text>
- <text wx:if="{{item.isCommentUser}}" data-current-item="{{item}}" data-current-index="{{index}}"
- class="delete" catch:tap="tapDeleteAction">删除</text>
- </view>
- </view>
- <!-- <text wx:if="{{data.replyNum && data.replyNum > 3}}" class="look-all"
- catch:tap="loolDetailAction">查看全部{{data.replyNum}}条回复</text>
- <text wx:if="{{!data.son}}" class="look-all" catch:tap="loolDetailAction">回复</text> -->
- </view>
- </block>
- </view>
- </view>
|