index.wxml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <navigationBar title="我的"></navigationBar>
  3. <view class="container seat">
  4. <!-- 用户信息 -->
  5. <view class="userBox">
  6. <view class="identity">
  7. <image class='avatar' src='{{ userInfo.user.avatar}}'></image>
  8. <view class="identityText">{{ userInfo.user.profession}}</view>
  9. </view>
  10. <view class="userRight">
  11. <view class="uRtop">
  12. <view class="uRtopleft">
  13. <view class="nickName textOver">{{userInfo.user.nickName||'请输入昵称' }}</view>
  14. <view class="gradeText textOver">学号:{{userInfo.user.eid}}</view>
  15. </view>
  16. <view class="uRtopRight" bindtap="jump" data-url="/pages/editUser/index">
  17. <image class="edit" src="/static/edit_new.png" mode="" />
  18. <text>编辑</text>
  19. </view>
  20. </view>
  21. <view class="uRBtm">
  22. <view class="count countFirst">
  23. 作品<text class="countNum textOver">{{filters.numFilter(userInfo.readAmount)|| 0}}</text>
  24. </view>
  25. <view class="count">
  26. 粉丝<text class="countNum textOver">{{filters.numFilter(userInfo.fansAmount)|| '0'}}</text>
  27. </view>
  28. <view class="count countEnd">
  29. 播放<text class="countNum textOver">{{filters.numFilter(userInfo.playAmount) || 0}}</text>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. <!-- ios会员展示到期时间 -->
  35. <view class="iosVip" wx:if="{{isIos&&vipTime}}">
  36. 会员至:{{filters.formatDate(vipTime,4)}}
  37. </view>
  38. <!-- 跳转菜单 -->
  39. <view class="sectionBoxs">
  40. <view class="sBox" bindtap='jump' data-url="/pages/userWorks/index">
  41. <image class="img" src="/static/work.png" mode="" />
  42. <text class="title">我的作品</text>
  43. </view>
  44. <view class="sBox" bindtap='jump' data-url="/pages/follow/index">
  45. <image class="img" src="/static/concern.png" mode="" />
  46. <text class="title">我的关注</text>
  47. </view>
  48. <view class="sBox" bindtap='jump' data-url="/pages/collection/index">
  49. <image class="img" src="/static/collect.png" mode="" />
  50. <text class="title">我的收藏</text>
  51. </view>
  52. <view class="sBox" bindtap='jump' data-url="/pages/notice/index">
  53. <image class="img" src="/static/message.png" mode="" />
  54. <text class="title">消息通知</text>
  55. </view>
  56. <button class="resetBtn contactBtn" open-type="contact" plain="true">
  57. <view class="sBox">
  58. <image class="img" src="/static/contact.png" mode="" />
  59. <text class="title">联系客服</text>
  60. </view>
  61. </button>
  62. </view>
  63. <!-- 支付 -->
  64. <!-- <view class="payBox" wx:if="{{!isIos}}"> -->
  65. <view class="payBox">
  66. <view class="title">
  67. 付费购
  68. </view>
  69. <view class="pay vipPay">
  70. <view class="payLeft">
  71. <view class="pLTitle vipTitle">
  72. {{productVip.title}}
  73. </view>
  74. <view class="pLcontent vipContent">
  75. {{vipTime?filters.formatDate(vipTime,4)+'过期':'购买VIP会员,即可有权使用全部资源'}}
  76. </view>
  77. </view>
  78. <view class="payRight vipBtn" bindtap="toBuy" data-type="{{productVip.id}}">
  79. {{vipTime?'立即续费':'立即开通'}}
  80. </view>
  81. </view>
  82. <view class="pay buyPay">
  83. <view class="payLeft">
  84. {{productNum.title}}
  85. </view>
  86. <view class="payRight buyBtn" bindtap="toBuy" data-type="{{productNum.id}}">
  87. 立即购买
  88. </view>
  89. </view>
  90. </view>
  91. <!-- 剩余使用次数 -->
  92. <view class="surplus">
  93. <view class="title">剩余使用次数:</view>
  94. <view class="num">{{userInfo.experienceAmount}}次</view>
  95. </view>
  96. <!-- 任务活动 -->
  97. <view class="taskBox">
  98. <view class="title">免费获取</view>
  99. <view class="task">
  100. <view class="taskLeft">
  101. <image class="img" src="/static/task1.png" alt="" mode="" />
  102. <view class="taskContent">
  103. <view class="tcTitle">
  104. {{tasks[0].title}}
  105. </view>
  106. <view class="tcNum">+{{tasks[0].award}}次</view>
  107. </view>
  108. </view>
  109. <view class="taskRight {{tasks[0].completed?'taskRight-close':''}}" bindtap="submitTask"
  110. data-type='{{tasks[0].id}}'>
  111. {{tasks[0].completed?'已签到':'签到'}}</view>
  112. </view>
  113. <view class="task">
  114. <view class="taskLeft">
  115. <image class="img" src="/static/task2.png" alt="" mode="" />
  116. <view class="taskContent">
  117. <view class="tcTitle">
  118. {{tasks[1].title}}
  119. </view>
  120. <view class="tcNum">+{{tasks[1].award}}次/每位</view>
  121. </view>
  122. </view>
  123. <button open-type="share" class="resetBtn taskRight">去邀请</button>
  124. </view>
  125. <view class="task advert">
  126. <view class="taskLeft">
  127. <image class="img" src="/static/task3.png" alt="" mode="" />
  128. <view class="taskContent">
  129. <view class="tcTitle">
  130. {{tasks[2].title}}
  131. </view>
  132. <view class="tcNum">+{{tasks[2].award}}次/每条</view>
  133. </view>
  134. </view>
  135. <view class="taskRightBox">
  136. <view class="taskRight {{tasks[2].completed?'taskRight-close':''}}" bindtap="rewardedVideo">去观看
  137. </view>
  138. <view class="taskSurplus">
  139. 今日剩余{{tasks[2].num-tasks[2].completedNum}}次
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. <!-- 广告组件 -->
  146. <rewardedVideo id='advert' bind:taskOver="setUserInfo" />