yaofang/components/wall/comment.wxml

23 lines
1.4 KiB
Plaintext

<view class="uni-flex uni-row">
<view class="flex-item-avatar">
<image class="_img" src="{{xitem.user.avatar}}"></image>
</view>
<view class="flex-item-content">
<view class="uni-flex uni-row line-header">
<view class="username">{{xitem.user.nick_name}}</view>
<view bindtap="__e" class="user-zan" data-event-opts="{{[ [ 'tap',[ ['commentLike'] ] ] ]}}">
<uni-icons bind:__l="__l" color="{{xitem.is_like==1?'#007aff':'#999'}}" size="18" type="hand-up" vueId="466afad1-1"></uni-icons>
<text style="{{xitem.is_like==1?focusColor:normalColor}}">{{xitem.like_num}}</text>
</view>
</view>
<view class="container-text">
<text>{{xitem.content}}</text>
</view>
<view class="uni-flex uni-row reply_line">
<text bindtap="__e" class="container-return" data-event-opts="{{[ [ 'tap',[ [ 'x_redirect',['/pages/wall/comment_detail?id='+wall_id+'&comment_id='+id] ] ] ] ]}}" wx:if="{{xitem.comment_num==0}}">回复></text>
<text bindtap="__e" class="container-return" data-event-opts="{{[ [ 'tap',[ [ 'x_redirect',['/pages/wall/comment_detail?id='+wall_id+'&comment_id='+id] ] ] ] ]}}" wx:if="{{xitem.comment_num>0}}">{{'回复 ('+xitem.comment_num+') >'}}</text>
<text>{{xitem.create_at}}</text>
</view>
</view>
</view>