myread.wxml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <wxs src="../../commonWxs/format.wxs" module="format" />
  2. <view class='my-read'>
  3. <view class='worksCard' wx:for="{{ wareCards }}" wx:key="{{ index }}" bindtap='toWork' data-lessonId='{{ item.id }}' data-title='{{ item.title }}'>
  4. <!-- <view class='user-info'>
  5. <view class='avatar-box'>
  6. <image class='avatar-image' src="{{ user.user.avatar }}" />
  7. </view>
  8. <view class="avatar-name">
  9. <view>{{ user.user.wechatName }}</view>
  10. <view>{{ format.formatDate(item.gmtCreated) }}</view>
  11. </view>
  12. </view>
  13. <view class='video-preview'>
  14. <image src='{{ item.iconImg }}'></image>
  15. </view>
  16. <view class='content-title'>{{ item.title }}</view>
  17. <view class='content-detail'>
  18. <view class='left'>{{ item.summary }}</view>
  19. <view class='right'>
  20. <view class='right-detail'>
  21. <view class='play-img'>
  22. <image src='../../../static/image/hotPlays.png'></image>
  23. </view>
  24. <view class='count-add'>{{ item.playAmount || 0 }}</view>
  25. </view>
  26. <view class='right-details'>
  27. <view class='point-img'>
  28. <image src='../../../static/image/like.png'></image>
  29. </view>
  30. <view class='count-add'>{{ item.likeAmount || 0 }}</view>
  31. </view>
  32. </view>
  33. </view> -->
  34. <view class="topData">
  35. <view class="worksLeft">
  36. <image class="authorAvatar" lazy-load="true" src="{{user.user.avatar}}" />
  37. <view class="profession" wx:if="{{item.profession}}">{{user.user.profession}}</view>
  38. <view class="worksInfo">
  39. <view class="authorName">{{user.user.wechatName}}</view>
  40. <view class="time">{{format.formatDate(item.gmtCreated)}}</view>
  41. </view>
  42. </view>
  43. <view class="numberInfo">
  44. <view class="wareCardPlays">
  45. <text>{{item.playAmount || 0}}</text>
  46. <image class="wareCardPlaysImg" lazy-load="true" src="../../../static/image/hotPlays.png" />
  47. </view>
  48. <view class="wareCardLikes">
  49. <text>{{item.likeAmount || 0}}</text>
  50. <image class="wareCardLikesImg" lazy-load="true" src="../../../static/image/like.png" />
  51. </view>
  52. </view>
  53. </view>
  54. <image class="wareCardImg" src="{{item.iconImg}}" />
  55. <view class="titleSummary">
  56. <text class="wareCardTitle">{{item.title}}</text>
  57. <text class="wareCardTip">{{item.summary}}</text>
  58. </view>
  59. <!-- </view> -->
  60. </view>
  61. <myPlacerholder line1="{{line1}}" line2="{{line2}}" wx:if="{{wareCards.length <= 0}}" />
  62. </view>