yuminge-app/yun-min-program-plugin-master/packageI/newMedia/components/comment/comment.wxml

118 lines
5.6 KiB
Plaintext

<!--packageI/newMedia/components/comment/comment.wxml-->
<van-popup show="{{ commentsShow }}" bind:close="openComments" round position="bottom" closeable custom-style="height: 70%">
<view class="commentWrapper">
<view class="title">全部评论{{comment_total_count}}条</view>
<view class="commentList">
<view class="ul maincomment">
<view class="li" wx:for="{{StickCommentData}}" wx:key="index">
<view class="maincommentleft" catchtap="replyCommentsBtn" data-hostcommentid="{{item.id}}" data-secondcommentid=""
data-uname="{{item.nickname}}" data-content="{{item.comment}}" data-isown="{{item.is_current_member}}">
<image src="{{item.avatar}}" mode='widthFix' />
</view>
<view class="maincommentright">
<view class="master_content" catchtap="replyCommentsBtn" data-hostcommentid="{{item.id}}" data-secondcommentid=""
data-uname="{{item.nickname}}" data-content="{{item.comment}}" data-isown="{{item.is_current_member}}">
<view class="master_content_left">
<view class="name">{{ item.nickname }}</view>
<view class="createdata">{{ item.created_at }}</view>
<view class="review_content">
{{ item.comment }}
</view>
</view>
<view class="thumb_up" catchtap="praiseBtn" data-hostcommentid="{{item.id}}" data-secondcommentid="" data-index="{{index}}"
data-chilindex="" data-ispraise="{{item.is_like}}">
<view class="thumb_img">
<block wx:if="{{item.is_like}}">
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/home_praise_cur@2x.png" mode='widthFix' />
</block>
<block wx:else>
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/home_praise@2x.png" mode='widthFix' />
</block>
</view>
<view class="thumb_num">{{ item.like_count }}</view>
</view>
</view>
<block wx:if="{{item.has_many_comment}}" wx:for-index="childindex" wx:key="childindex" wx:for-item="childitem" wx:for="{{item.has_many_comment}}">
<view class="deputy_comment" catchtap="replyCommentsBtn" data-hostcommentid="{{childitem.parent_id}}"
data-secondcommentid="{{childitem.id}}" data-uname="{{childitem.nickname}}" data-content="{{childitem.comment}}"
data-isown="{{childitem.is_current_member}}">
<view class="deputy_comment_left">
<image src="{{childitem.avatar}}" mode='widthFix' />
</view>
<view class="deputy_comment_right">
<view class="deputy_message">
<view class="name">{{ childitem.nickname }}</view>
<view class="createdata">{{ childitem.created_at }}</view>
<view class="review_content">
<block wx:if="{{childitem.subordinate_name}}">
回复<text class="span selecolor">{{
childitem.subordinate_name
}}</text>
</block>
{{ childitem.comment }}
</view>
</view>
<view class="thumb_up" catchtap="praiseBtn" data-hostcommentid="{{childitem.parent_id}}"
data-secondcommentid="{{childitem.id}}" data-index="{{index}}" data-chilindex="{{childindex}}" data-ispraise="{{childitem.is_like}}">
<view class="thumb_img">
<block wx:if="{{childitem.is_like}}">
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/home_praise_cur@2x.png" mode='widthFix' />
</block>
<block wx:else>
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/home_praise@2x.png" mode='widthFix' />
</block>
</view>
<view class="thumb_num">{{ childitem.like_count }}</view>
</view>
</view>
</view>
</block>
</view>
</view>
</view>
<view class="loadMore" bindtap="getMoreStickComment" wx:if="{{comment_page<comment_total}}" style="text-align:center;">{{comment_loading ? '正在加载...' : '加载更多~'}}</view>
</view>
<view class="inputWrapper" bindtap="subMainCommentBtn"><view class="reply">来都来了,留点什么吧...</view></view>
</view>
</van-popup>
<van-popup show="{{mainCommentShow}}" position="bottom" overlay="{{true}}" bind:close="subMainCommentBtn">
<view class="replyMainComment">
<view class="left">
<input type="text" model:value="{{maincomment}}" placeholder="请留下你的精彩评论吧" />
</view>
<view class="right" catchtap="subMainBtn">发送</view>
</view>
</van-popup>
<van-popup show="{{commentManagement}}" position="bottom" overlay="{{true}}" bind:close="commentManagementClose">
<view class="rewardPay">
<view class="content">
<text class="span">{{ replyName }}:</text>{{ replyshowcontent }}
</view>
<view class="payMode">
<view class="ul">
<view class="li" catchtap="replyBtn">回复</view>
<view class="li" catchtap="delBtn" wx:if="{{is_own}}">删除</view>
</view>
</view>
<view class="cancel" catchtap="replyCancelBtn">取消</view>
</view>
</van-popup>
<van-popup show="{{replyshow}}" position="bottom" overlay="{{true}}" bind:close="replyshowClose">
<view class="replyComment">
<view class="top">
<view class="left">
回复<span class="selcolor">@{{ replyName }}</span>
</view>
</view>
<view class="bottom" style="margin-bottom: {{replyheight}}px;" catchtouchmove="noop">
<textarea adjust-position="{{false}}" model:value="{{replyContent}}" placeholder="请输入你的回复吧" bindinput="replyContentinp" bindfocus="replyfocus" bindblur="replyblur"></textarea>
<view class="replysubmit" catchtap="replySubmitBtn">发送</view>
</view>
</view>
</van-popup>