index.wxml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <view class="content">
  2. <view class="comment-box white-bg">
  3. <view class="scoreBox">
  4. <view class="scoreTit">整体评分</view>
  5. <view class="starBlank">
  6. <view class="scoreBG" style="width:{{score}}%"></view>
  7. </view>
  8. </view>
  9. <view class="tag-list mTop20">
  10. <view data-sort="{{item.sort}}" data-keyword="{{item.keyword}}" bindtap="setTag" class="text {{item.sort == queryData.sort ? ' active':''}}" wx:for="{{datas.tagList}}" wx:key="unique">{{item.name}}<text wx:if="{{item.cnt > 0}}">({{item.cnt}})</text></view>
  11. </view>
  12. </view>
  13. <view class="comment white-bg" wx:for="{{datas.comments}}" wx:key="unique">
  14. <view class="userInfor">
  15. <view class="headerBox">
  16. <image class="headerImgB" src="{{item.ownerAvatar}}" />
  17. <text>{{item.ownerNick}}</text>
  18. <view class="starBlank mini-starBlank inline-block">
  19. <view class="scoreBG" style="width:{{item.arating * 20}}%"></view>
  20. </view>
  21. </view>
  22. <view class="userBox">
  23. <text class="gray font12">{{item.weiboTime}}</text>
  24. </view>
  25. </view>
  26. <view class="listScore">
  27. <view class="score"><text>{{item.contented}}</text>
  28. <view class="subtitleColor mTop10"><text wx:for="{{item.option}}" wx:for-item="items" wx:key="unique">{{items}}</text>
  29. </view>
  30. </view>
  31. <view class="scoreImg mTop10" wx:if="{{item.imageList.length>0}}" bindtap="previewImage" data-index="{{index}}">
  32. <image wx:for="{{item.imageList}}" wx:key="unique" data-i="{{index}}" wx:for-item="itemImg" src="{{itemImg}}?x-oss-process=image/resize,m_mfit,h_300,w_300" mode="aspectFill"></image>
  33. </view>
  34. <view class="addScore" wx:if="{{item.fcomments.fcontent}}">
  35. <view class="addTitle">{{item.fcomments.fweibotime}}追加评论</view>
  36. <view class="score"><text>{{item.fcomments.fcontent}}</text></view>
  37. <view class="scoreImg mTop10" wx:if="{{item.fcomments.fimages.length > 0}}" bindtap="previewFimages" data-index="{{index}}">
  38. <image wx:for="{{item.fcomments.fimages}}" wx:key="unique" wx:for-item="itemImg" src="{{itemImg}}?x-oss-process=image/resize,m_mfit,h_300,w_300" mode="aspectFill" data-i="{{index}}"></image>
  39. </view>
  40. </view>
  41. <view class="reply" wx:if="{{item.answer}}">
  42. <view class="addTitle replyTitle"><text class="icon icon-commentd"></text>宝大大回复:</view>
  43. <view class="score">{{item.answer}}</view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>