mytalk.wxml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <view class='container'>
  2. <view class="comment-cotent">
  3. <block wx:for="{{commentList.data}}" wx:for-item="comment" wx:key="id">
  4. <view class="comment-item user-comment">
  5. <view class="user-comment-title">
  6. <view class="user-pic float-left">
  7. <block wx:if="{{!comment.avatarUrl}}">
  8. <image class="user-pic-img" src="/img/icon/default_header.png"></image>
  9. </block>
  10. <block wx:if="{{comment.avatarUrl}}">
  11. <image class="user-pic-img" src="{{comment.avatarUrl}}"></image>
  12. </block>
  13. </view>
  14. <view class="user-title-mid float-left">
  15. <view class="user-name">
  16. {{comment.nickName}}
  17. </view>
  18. <view class="user-comment-score">
  19. <!-- <image class="star" src="/img/icon/star-1.png"></image>-->
  20. 环境:{{comment.environmentScore}} 味道:{{comment.tasteScore}} 服务:{{comment.serviceScore}}
  21. </view>
  22. </view>
  23. <!-- 时间 -->
  24. <view class="user-comment-date float-left">
  25. {{comment.createTime}}
  26. </view>
  27. </view>
  28. <view class="user-comment-content">
  29. <view class="user-comment-text">
  30. {{comment.content}}
  31. </view>
  32. <view wx:if="{{comment.picUrls}}" class="user-comment-pics">
  33. <block wx:for="{{comment.picUrls}}" wx:for-item="pic" wx:key="*this">
  34. <image src="{{serverPrefix+pic.picUrl}}"></image>
  35. </block>
  36. </view>
  37. <view wx:if="{{comment.reply}}" class="user-comment-reply">
  38. 商家回复:{{comment.reply}}
  39. </view>
  40. </view>
  41. <!-- 操作 -->
  42. </view>
  43. </block>
  44. <view class="bottom" wx:if="{{reachedBottom}}">我也是有底线的哦</view>
  45. </view>
  46. </view>
  47. <view class="empty" wx:if="{{!showflag}}">
  48. <image src="/img/icon/empty2.png"></image>
  49. <text>亲,您暂时没有评价呢</text>
  50. </view>