community-comment-list.wxml 4.0 KB

1
  1. <view class="comment data-v-b2b67c16"><view class="comment--item data-v-b2b67c16"><view class="flex col-top row-between data-v-b2b67c16"><navigator hover-class="none" open-type="navigate" url="{{'/bundle_b/pages/community_user/community_user?id='+commentInfo.user_id}}" class="data-v-b2b67c16"><u-image vue-id="94699d7c-1" src="{{commentInfo.avatar}}" width="88" height="88" borderRadius="50%" class="data-v-b2b67c16" bind:__l="__l"></u-image></navigator><view data-event-opts="{{[['tap',[['onComment',['$0','$1'],['commentInfo.id','commentInfo.nickname']]]]]}}" class="m-l-16 flex-1 data-v-b2b67c16" bindtap="__e"><view class="lighter sm flex data-v-b2b67c16">{{''+commentInfo.nickname+''}}<block wx:if="{{commentInfo.is_author}}"><text class="lighter xxs author data-v-b2b67c16">作者</text></block></view><view class="m-t-10 nr normal content data-v-b2b67c16">{{commentInfo.comment}}</view><view class="muted xs m-t-10 data-v-b2b67c16">{{commentInfo.create_time}}</view></view><view data-event-opts="{{[['tap',[['handleCommentLike',['$0','$1','$2'],['commentInfo.id','commentInfo.is_like','commentInfo']]]]]}}" class="good text-center m-l-30 data-v-b2b67c16" bindtap="__e"><image src="{{commentInfo.is_like?'/static/images/icon_good_s.png':'/static/images/icon_good.png'}}" class="data-v-b2b67c16"></image><view class="xxs muted data-v-b2b67c16">{{commentInfo.like}}</view></view></view></view><block wx:if="{{$root.g0}}"><view class="data-v-b2b67c16"><block wx:for="{{commentInfo.child}}" wx:for-item="commentItem2" wx:for-index="commentIndex2" wx:key="id"><block class="data-v-b2b67c16"><view class="comment--item sons m-t-20 data-v-b2b67c16"><view class="flex col-top row-between data-v-b2b67c16"><navigator hover-class="none" open-type="navigate" url="{{'/bundle_b/pages/community_user/community_user?id='+commentItem2.user_id}}" class="data-v-b2b67c16"><u-image vue-id="{{'94699d7c-2-'+commentIndex2}}" src="{{commentItem2.avatar}}" width="88" height="88" borderRadius="50%" class="data-v-b2b67c16" bind:__l="__l"></u-image></navigator><view data-event-opts="{{[['tap',[['onComment',['$0','$1'],[[['commentInfo.child','id',commentItem2.id,'id']],[['commentInfo.child','id',commentItem2.id,'nickname']]]]]]]}}" class="m-l-16 flex-1 data-v-b2b67c16" bindtap="__e"><view class="lighter sm flex data-v-b2b67c16">{{''+commentItem2.nickname+''}}<block wx:if="{{commentItem2.is_author}}"><text class="lighter xxs author data-v-b2b67c16">作者</text></block></view><view class="m-t-10 nr normal content data-v-b2b67c16"><block wx:if="{{commentItem2.is_second==0}}"><text class="data-v-b2b67c16">回复<text class="primary m-l-6 m-r-6 data-v-b2b67c16">{{"@"+commentItem2.reply_nickname}}</text></text></block>{{''+commentItem2.comment+''}}</view><view class="muted xs m-t-10 data-v-b2b67c16">{{commentItem2.create_time}}</view></view><view data-event-opts="{{[['tap',[['handleCommentLike',['$0','$1','$2'],[[['commentInfo.child','id',commentItem2.id,'id']],[['commentInfo.child','id',commentItem2.id,'is_like']],[['commentInfo.child','id',commentItem2.id]]]]]]]}}" class="good text-center m-l-30 data-v-b2b67c16" bindtap="__e"><image src="{{commentItem2.is_like?'/static/images/icon_good_s.png':'/static/images/icon_good.png'}}" class="data-v-b2b67c16"></image><view class="xxs muted data-v-b2b67c16">{{commentItem2.like}}</view></view></view></view></block></block><block wx:if="{{$root.g1}}"><view data-event-opts="{{[['tap',[['handleLoadingMore',['$event']]]]]}}" class="sons primary xs m-t-10 flex data-v-b2b67c16" bindtap="__e">展开更多回复<u-icon vue-id="94699d7c-3" name="arrow-down" size="22" color="{{colorConfig.primary}}" class="data-v-b2b67c16" bind:__l="__l"></u-icon></view></block><block wx:if="{{commentInfo.loading}}"><view class="sons primary xs data-v-b2b67c16"><u-loading vue-id="94699d7c-4" color="{{colorConfig.primary}}" size="{{30}}" mode="circle" class="data-v-b2b67c16" bind:__l="__l"></u-loading><text class="m-l-20 data-v-b2b67c16">加载中</text></view></block></view></block><view class="border-b data-v-b2b67c16"></view></view>