courses.wxml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <!-- <wxs src="../../pages/commonWxs/format.wxs" module="format" /> -->
  2. <template name="courses">
  3. <view class="courses_container">
  4. <view class="course_item" bindtap="goToReading" wx:for="{{coursesData}}" data-id="{{item.userRead.exampleId}}" data-index="{{index}}" wx:key="index">
  5. <image class="course_icon" src="{{item.userRead.iconImg}}" lazy-load="true" />
  6. <image class="activity_tigs" wx:if="{{item.isActivity}}" src="http://reader-wx.ai160.com/images/reader/activity/activity2.png" />
  7. <view class="course_info">
  8. <text class="course_title">{{item.userRead.title}}</text>
  9. </view>
  10. <view class="course_btn_wrapper">
  11. <view class="collect course_btn" data-index="{{index}}" data-id="{{item.userRead.id}}" data-type="{{item.userRead.type}}">
  12. <image class="comment_icon btn_icon" src="../../static/index/res_comment.png" />
  13. <text class="collect_text btn_text">{{item.readAmount}}</text>
  14. </view>
  15. <view class="collect course_btn" data-index="{{index}}" data-id="{{item.userRead.id}}" data-type="{{item.userRead.type}}">
  16. <image class="play_icon btn_icon" src="../../static/index/res_eye.png" />
  17. <text class="collect_text btn_text">{{item.userRead.playAmount}}</text>
  18. </view>
  19. <view class="collect course_btn" data-index="{{index}}" data-id="{{item.userRead.id}}" data-type="{{item.userRead.type}}">
  20. <image class="like_icon btn_icon" src="../../static/index/res_like.png" />
  21. <text class="collect_text btn_text">{{item.userRead.likeAmount}}</text>
  22. </view>
  23. <view class="share course_btn" data-author="{{item.user.nickName}}" data-index="{{index}}" data-id="{{item.userRead.id}}" data-avatar="{{item.user.avatar}}" data-uid="{{item.user.uid}}" data-shareImg="{{item.userRead.shareImg}}" data-icon="{{item.userRead.iconImg}}" data-title="{{item.userRead.title}}" data-type="{{item.userRead.type}}">
  24. <image class="share_icon btn_icon" src="../../static/index/res_share.png" />
  25. <text class="share_text btn_text">{{item.userRead.shareAmount}}</text>
  26. </view>
  27. <view class="collect course_btn" data-index="{{index}}" data-id="{{item.userRead.id}}" data-type="{{item.userRead.type}}" >
  28. <image class="collect_icon btn_icon" src="../../static/index/res_star.png" />
  29. <text class="collect_text btn_text">{{item.userRead.favoritesAmount}}</text>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="no_work" wx:if="{{noMoreWork}}">
  34. <text class="no_work_text">已经到底啦!</text>
  35. </view>
  36. </view>
  37. </template>