myread.wxml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <wxs module="wxs">
  2. function formatDate(time) {
  3. var timeTemp = getDate(time);
  4. var timeString = timeTemp.toLocaleDateString() + timeTemp.toLocaleTimeString();
  5. return timeString.replace('/','-').replace('/','-').replace('上午',' ').replace('下午',' ');
  6. }
  7. module.exports.formatDate = formatDate;
  8. </wxs>
  9. <view class='my-read'>
  10. <view class='read-article' wx:for="{{ wareCards }}" wx:key="{{ index }}" bindtap='toWork' data-lessonId='{{ item.id }}' data-title='{{ item.title }}'>
  11. <view class='video-preview'>
  12. <image src='{{ item.iconImg }}'></image>
  13. </view>
  14. <view class='content-title'>
  15. {{ item.title }}
  16. </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. <text>{{ item.playAmount }}</text>
  25. </view>
  26. <view class='right-detail'>
  27. <view class='point-img'>
  28. <image src='../../../static/image/like.png'></image>
  29. </view>
  30. <text>{{ item.likeAmount }}</text>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>