comment.wxml 1.2 KB

123456789101112131415161718192021222324252627
  1. <!--component/comment/comment.wxml-->
  2. <wxs src="../../wxs/tool.wxs" module="tool"></wxs>
  3. <view class="comment z-padding-24 z-radius-24 z-margin-b-24">
  4. <view class="comment_item_top">
  5. <view class="comment_item_top_left">
  6. <image class="comment_item_img z-margin-r-16" src="{{tool.cdn(info.user.avatar)}}" mode="" />
  7. <view class="comment_item_top_left_text">
  8. <view>匿名用户</view>
  9. <view class="z-margin-t-16 z-font-24 text_999">{{tool.formatTime(info.createtime)}}</view>
  10. </view>
  11. </view>
  12. <view class="comment_item_top_right">
  13. <van-rate value="{{ info.score }}" color='#FF9600' readonly bind:change="onChangerate" />
  14. </view>
  15. </view>
  16. <view class="lable-box z-margin-t-24">
  17. <view class="label z-flex z-margin-r-8 z-margin-b-8 z-padding-lr-24 z-font-24"
  18. wx:for="{{tool.split(info.comment_label)}}">{{item}}</view>
  19. </view>
  20. <view class="comment_content z-margin-tb-24 z-font-24 z-font-w">
  21. {{info.content}}
  22. </view>
  23. <view class="scroll_box">
  24. <image src="{{tool.cdn(item)}}" bindtap="previewImages" data-index="{{index}}" wx:for="{{info.images}}"
  25. wx:key="*this" class="scroll_box_img z-radius-24" mode="aspectFill" />
  26. </view>
  27. </view>