myread.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <wxs src="../../commonWxs/format.wxs" module="format" />
  2. <view class='my-read'>
  3. <view class='read-article' 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'>
  17. {{ item.title }}
  18. </view>
  19. <view class='content-detail'>
  20. <view class='left'>{{ item.summary }}</view>
  21. <view class='right'>
  22. <view class='right-detail'>
  23. <view class='play-img'>
  24. <image src='../../../static/image/hotPlays.png'></image>
  25. </view>
  26. <view class='count-add'>{{ item.playAmount || 0 }}</view>
  27. </view>
  28. <view class='right-details'>
  29. <view class='point-img'>
  30. <image src='../../../static/image/like.png'></image>
  31. </view>
  32. <view class='count-add'>{{ item.likeAmount || 0 }}</view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <myPlacerholder line1="{{line1}}" line2="{{line2}}" wx:if="{{wareCards.length <= 0}}" />
  38. </view>