list.wxml 1.2 KB

123456789101112131415161718192021222324
  1. <view class="box" wx:if="{{show}}">
  2. <view class="comment-box">
  3. <textarea maxlength='499' confirm-type='send' auto-focus='{{!comments.length}}' value="{{comment}}" placeholder="{{language['我评论']||'我评论'}}:" placeholder-style='font-size:28rpx; color:#BBBBBB;' auto-height bind:input="onInput" bindconfirm='{{comment.length?"onSend":""}}' />
  4. <view class="but-box">
  5. <van-button custom-class='but' disabled='{{!comment.length}}' loading='{{loading}}' bind:tap="onSend">{{language['发布']||'发布'}}</van-button>
  6. </view>
  7. </view>
  8. <view id="CommentNode{{ownerid}}" />
  9. <view class="list" wx:if="{{comments.length}}">
  10. <view class="title">{{language['评论']||'评论'}}({{quantity}})</view>
  11. <scroll-view wx:if="{{quantity > 4}}" class="scroll" scroll-y>
  12. <view class="scroll-content">
  13. <view style="margin-top: -24rpx;">
  14. <items userid='{{userid}}' comments='{{comments}}' replyid='{{replyid}}' ownerid='{{ownerid}}' ownertable='{{ownertable}}' />
  15. </view>
  16. </view>
  17. </scroll-view>
  18. <view wx:else class="scroll-content">
  19. <view style="margin-top: -24rpx;">
  20. <items userid='{{userid}}' comments='{{comments}}' replyid='{{replyid}}' ownerid='{{ownerid}}' ownertable='{{ownertable}}' />
  21. </view>
  22. </view>
  23. </view>
  24. </view>