index.wxml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="greetingBox">
  3. <view class="template" wx:for="{{list}}" wx:key="id">
  4. <view class="header">
  5. <view class="left">
  6. <view class="title">{{item.templateName}}</view>
  7. <view class="time">{{filters.formatDate2(item.gmtCreated)}}</view>
  8. </view>
  9. <view class="right" wx:if="{{isMy}}" data-id='{{item.id}}' bindtap="delete">
  10. <image src="/static/index/delete.png" class="delete" />
  11. <view class="text">删除</view>
  12. </view>
  13. </view>
  14. <view class="body" style="background-image: url({{item.cardUrl}});">
  15. <image src="/static/image/play-btn.png" class="playBtn" />
  16. </view>
  17. <view class="footer">
  18. <view class="countBox">
  19. <view class="box">
  20. <image src="/static/image/play.png" class="icon" />
  21. <view class="num">{{item.playAmount}}</view>
  22. </view>
  23. <view class="box" bindtap="setLike" data-item='{{item}}' data-index='{{index}}'>
  24. <image src="{{item.isLike?'/static/image/red_like.png':'/static/image/red_like_empty.png'}}" class="icon" />
  25. <view class="num">{{item.likeAmount}}</view>
  26. </view>
  27. </view>
  28. <view class="handle" style="justify-content:{{isMy?' center':'space-between'}}">
  29. <button class="resetBtn" open-type="share" data-item='{{item}}' wx:if="{{isMy}}">
  30. <image src="http://reader-wx.ai160.com/images/reader/card/send_blessings.png" class="btn" />
  31. </button>
  32. <button class="resetBtn" open-type="share" data-img='{{item.cardUrl}}' wx:if="{{!isMy}}">
  33. <image src="http://reader-wx.ai160.com/images/reader/card/show_off.png" class="btn" />
  34. </button>
  35. <image src="http://reader-wx.ai160.com/images/reader/card/wyyw.png" class="btn" wx:if="{{!isMy}}"
  36. bindtap="jump" />
  37. </view>
  38. </view>
  39. </view>
  40. </view>