index.wxml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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}});" bindtap="playAudio" data-item="{{item}}">
  15. <image src="/static/image/play-btn.png" class="playBtn" wx:if="{{playAudioId!=item.id}}" />
  16. <view class="progressBox" wx:if="{{playAudioId==item.id}}">
  17. <view class="after">{{playTime}}</view>
  18. <progress percent="{{vProgress}}" class="progress" stroke-width="8" activeColor="#9FFB3E"
  19. backgroundColor="#3333340" />
  20. <view class="before">{{endTime}}</view>
  21. </view>
  22. </view>
  23. <view class="footer">
  24. <view class="countBox">
  25. <view class="box">
  26. <image src="/static/image/play-btn.png" class="icon" />
  27. <view class="num">{{item.playAmount}}</view>
  28. </view>
  29. <view class="box" bindtap="setLike" data-item='{{item}}' data-index='{{index}}'>
  30. <image src="{{item.isLike?'/static/image/red_like.png':'/static/image/red_like_empty.png'}}" class="icon" />
  31. <view class="num">{{item.likeAmount}}</view>
  32. </view>
  33. </view>
  34. <view class="handle" style="justify-content:{{isMy?' center':'space-between'}}">
  35. <button class="resetBtn" open-type="share" data-item='{{item}}' wx:if="{{isMy}}">
  36. <image src="http://reader-wx.ai160.com/images/reader/card/send_blessings.png" class="btn" />
  37. </button>
  38. <button class="resetBtn" open-type="share" data-item='{{item}}' wx:if="{{!isMy}}">
  39. <image src="http://reader-wx.ai160.com/images/reader/card/show_off.png" class="btn" />
  40. </button>
  41. <image src="http://reader-wx.ai160.com/images/reader/card/wyyw.png" class="btn" wx:if="{{!isMy}}"
  42. bindtap="jump" />
  43. </view>
  44. </view>
  45. </view>
  46. <view class="footerBox" wx:if="{{!isMy}}">
  47. <image src="http://reader-wx.ai160.com/images/reader/card/callback.png" bindtap="jumpIndex"/>
  48. </view>
  49. </view>