replyDetail.wxml 1.5 KB

123456789101112131415161718192021222324252627
  1. <view class="commentArea">
  2. <view class="{{index === 0? class1 : classNormal}}" wx:for="{{comment}}" wx:key="{{index}}">
  3. <image class="avatar" src="{{item.avatar}}" />
  4. <view class="commentCore">
  5. <text class="nickName">{{item.name}}</text>
  6. <text class="time">{{item.time}}</text>
  7. <text class="gut">{{item.text}}</text>
  8. </view>
  9. <view class="btnWrapper">
  10. <image class="commentBtn" src="../../../static/image/comment.png" wx:if="{{index===0}}" bindtap="setSBId" />
  11. <text class="commentText" wx:if="{{index===0}}">评论</text>
  12. <!-- <image class="likeBtn" data-index="{{index}}" data-likes="{{item.likes}}" data-id="{{item.id}}" src="../../../static/image/like.png" bindtap="likeCommend" /> -->
  13. <!-- <text class="likeText" >{{item.likes}}</text> -->
  14. </view>
  15. </view>
  16. <!-- 评论框 -->
  17. <view class="replySection" wx:if="{{replyModal}}">
  18. <input bindblur="bindTextAreaBlur" bindconfirm="replySB" confirm-type="send" placeholder="回复" bindinput="inputSBValue" auto-focus auto-height />
  19. </view>
  20. <view class='reply-msg'>
  21. <!-- <input name='reply' class='reply-input' placeholder='回复@{{ comment[0].name }}' confirm-type="send" bindinput='saveValue' auto-focus auto-height></input> -->
  22. <input name='reply' class='reply-input' placeholder='回复@{{ comment[0].name }}' bindinput='saveValue'>
  23. </input>
  24. <text class='reply-btn' bindtap='replyDone'>回复</text>
  25. </view>
  26. </view>