courses.wxml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536
  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. <view class="course_info">
  7. <text class="course_title">{{item.userRead.title}}</text>
  8. </view>
  9. <view class="course_btn_wrapper">
  10. <view class="collect course_btn" data-index="{{index}}" data-id="{{item.userRead.id}}" data-type="{{item.userRead.type}}">
  11. <image class="comment_icon btn_icon" src="../../static/index/res_comment.png" />
  12. <text class="collect_text btn_text">{{item.readAmount}}</text>
  13. </view>
  14. <view class="collect course_btn" data-index="{{index}}" data-id="{{item.userRead.id}}" data-type="{{item.userRead.type}}">
  15. <image class="play_icon btn_icon" src="../../static/index/res_eye.png" />
  16. <text class="collect_text btn_text">{{item.userRead.playAmount}}</text>
  17. </view>
  18. <view class="collect course_btn" data-index="{{index}}" data-id="{{item.userRead.id}}" data-type="{{item.userRead.type}}">
  19. <image class="like_icon btn_icon" src="../../static/index/res_like.png" />
  20. <text class="collect_text btn_text">{{item.userRead.likeAmount}}</text>
  21. </view>
  22. <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}}">
  23. <image class="share_icon btn_icon" src="../../static/index/res_share.png" />
  24. <text class="share_text btn_text">{{item.userRead.shareAmount}}</text>
  25. </view>
  26. <view class="collect course_btn" data-index="{{index}}" data-id="{{item.userRead.id}}" data-type="{{item.userRead.type}}" >
  27. <image class="collect_icon btn_icon" src="../../static/index/res_star.png" />
  28. <text class="collect_text btn_text">{{item.userRead.favoritesAmount}}</text>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="no_work" wx:if="{{noMoreWork}}">
  33. <text class="no_work_text">已经到底啦!</text>
  34. </view>
  35. </view>
  36. </template>