index.wxml 6.7 KB

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