|
@@ -1,27 +1,20 @@
|
|
|
<view class="commentArea">
|
|
|
+ <view class='padding-bottom'>
|
|
|
<view class="{{index === 0? class1 : classNormal}}" wx:for="{{comment}}" wx:key="{{index}}">
|
|
|
- <image class="avatar" src="{{item.avatar}}" />
|
|
|
- <view class="commentCore">
|
|
|
- <text class="nickName">{{item.name}}</text>
|
|
|
- <text class="time">{{item.time}}</text>
|
|
|
- <text class="gut">{{item.text}}</text>
|
|
|
- </view>
|
|
|
- <view class="btnWrapper">
|
|
|
- <image class="commentBtn" src="../../../static/image/comment.png" wx:if="{{index===0}}" bindtap="setSBId" />
|
|
|
- <text class="commentText" wx:if="{{index===0}}">评论</text>
|
|
|
- <!-- <image class="likeBtn" data-index="{{index}}" data-likes="{{item.likes}}" data-id="{{item.id}}" src="../../../static/image/like.png" bindtap="likeCommend" /> -->
|
|
|
- <!-- <text class="likeText" >{{item.likes}}</text> -->
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- 评论框 -->
|
|
|
- <view class="replySection" wx:if="{{replyModal}}">
|
|
|
- <input bindblur="bindTextAreaBlur" bindconfirm="replySB" confirm-type="send" placeholder="回复" bindinput="inputSBValue" auto-focus auto-height />
|
|
|
- </view>
|
|
|
- <view class='reply-msg'>
|
|
|
- <!-- <input name='reply' class='reply-input' placeholder='回复@{{ comment[0].name }}' confirm-type="send" bindinput='saveValue' auto-focus auto-height></input> -->
|
|
|
-
|
|
|
- <input name='reply' class='reply-input' placeholder='回复@{{ comment[0].name }}' bindinput='saveValue'>
|
|
|
- </input>
|
|
|
- <text class='reply-btn' bindtap='replyDone'>回复</text>
|
|
|
+ <image class="avatar" src="{{item.avatar}}" />
|
|
|
+ <view class="commentCore">
|
|
|
+ <text class="nickName">{{item.name}}</text>
|
|
|
+ <text class="time">{{item.time}}</text>
|
|
|
+ <text class="gut">{{item.text}}</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
+ <view class='reply-all'>
|
|
|
+ 全部回复({{ count }})
|
|
|
+ </view>
|
|
|
+ <view class='reply-msg'>
|
|
|
+ <input name='reply' class='reply-input' placeholder='回复@{{ comment[0].name }}' value='{{ replyInfo }}' bindinput='saveValue' confirm-type ="send">
|
|
|
+ </input>
|
|
|
+ <text class='reply-btn' bindtap='replyDone'>回复</text>
|
|
|
+ </view>
|
|
|
</view>
|