index.wxml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <view class="half-screen">
  2. <!--屏幕背景变暗的背景 -->
  3. <view class="background_screen" bindtap="hideModal" wx:if="{{showModalStatus}}"></view>
  4. <!--弹出框 -->
  5. <view animation="{{animationData}}" class="attr_box" wx:if="{{showModalStatus}}">
  6. <image class="share_cancel" bindtap="hideModal" src="/static/image/lollipop.png"></image>
  7. <!-- 支付 -->
  8. <view class="payBox" wx:if="{{!isIos}}">
  9. <view class="title">
  10. 付费购
  11. </view>
  12. <view class="pay vipPay">
  13. <view class="payLeft">
  14. <view class="pLTitle vipTitle">
  15. {{productVip.title}}
  16. </view>
  17. <view class="pLcontent vipContent">
  18. {{vipTime?filters.formatDate(vipTime)+'过期':'购买VIP会员,即可畅读全部资源'}}
  19. </view>
  20. </view>
  21. <view class="payRight vipBtn" bindtap="toBuy" data-type="{{productVip.id}}">
  22. {{vipTime?'立即续费':'立即开通'}}
  23. </view>
  24. </view>
  25. <view class="pay buyPay">
  26. <view class="payLeft">
  27. {{productNum.title}}
  28. </view>
  29. <view class="payRight buyBtn" bindtap="toBuy" data-type="{{productNum.id}}">
  30. 立即购买
  31. </view>
  32. </view>
  33. </view>
  34. <!-- 剩余使用次数 -->
  35. <view class="surplus">
  36. <view class="title">剩余使用次数:</view>
  37. <view class="num">{{userInfo.experienceAmount}}次</view>
  38. </view>
  39. <!-- 任务活动 -->
  40. <view class="taskBox">
  41. <view class="title">免费获取</view>
  42. <view class="task">
  43. <view class="taskLeft">
  44. <image class="img" src="/static/image/task1.png" alt="" mode="" />
  45. <view class="taskContent">
  46. <view class="tcTitle">
  47. {{tasks[0].title}}
  48. </view>
  49. <view class="tcNum">+{{tasks[0].award}}次</view>
  50. </view>
  51. </view>
  52. <view class="taskRight {{tasks[0].completed?'taskRight-close':''}}" bindtap="submitTask" data-type='{{tasks[0].id}}'>
  53. {{tasks[0].completed?'已签到':'签到'}}</view>
  54. </view>
  55. <view class="task">
  56. <view class="taskLeft">
  57. <image class="img" src="/static/image/task2.png" alt="" mode="" />
  58. <view class="taskContent">
  59. <view class="tcTitle">
  60. {{tasks[1].title}}
  61. </view>
  62. <view class="tcNum">+{{tasks[1].award}}次/每位</view>
  63. </view>
  64. </view>
  65. <button open-type="share" class="resetBtn taskRight">去邀请</button>
  66. </view>
  67. <view class="task advert">
  68. <view class="taskLeft">
  69. <image class="img" src="/static/image/task3.png" alt="" mode="" />
  70. <view class="taskContent">
  71. <view class="tcTitle">
  72. {{tasks[2].title}}
  73. </view>
  74. <view class="tcNum">+{{tasks[2].award}}次/每条</view>
  75. </view>
  76. </view>
  77. <view class="taskRightBox">
  78. <view class="taskRight {{tasks[2].completed?'taskRight-close':''}}" bindtap="rewardedVideo">去观看
  79. </view>
  80. <view class="taskSurplus">
  81. 剩余次数:{{tasks[2].completedNum}}/{{tasks[2].num}}
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <!-- 广告组件 -->
  89. <rewardedVideo id='advert' bind:taskOver="setUserInfo" />