index.wxml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <!--index.wxml-->
  2. <view class="container">
  3. <!-- 标题 -->
  4. <tarbar id="tarbar"/>
  5. <!-- 内容 -->
  6. <view class="content">
  7. <scroll-view scroll-y="true" bindscroll="lower" scroll-with-animation="true" scroll-with-animation="true" enable-back-to-top="true">
  8. <!-- 我的 -->
  9. <view class="my {{navBtnSelectIdx == 0 ? '' : 'none'}}">
  10. <!-- 个人信息 -->
  11. <view class='message'>
  12. <view class='user'>
  13. <view class='head'>
  14. <image class="userinfo-avatar" src="{{data.users.headImgUrl}}" background-size="cover"></image>
  15. <view class='left'>
  16. <view class="name">
  17. {{data.users.wechatName}}
  18. <text class='LV'>{{grade}}</text>
  19. </view>
  20. <view class="student">
  21. 学号:
  22. <text>{{data.users.eid}}</text>
  23. </view>
  24. </view>
  25. </view>
  26. <view class='grade'>更改昵称</view>
  27. </view>
  28. <view class='personal'>
  29. <view class="particulars">
  30. <text>登录天数</text>
  31. <text>{{data.users.loginDay}}</text>
  32. </view>
  33. <view class="particulars">
  34. <text>总时长</text>
  35. <text>{{time}}</text>
  36. </view>
  37. <view class="particulars">
  38. <text>当前排名</text>
  39. <text>{{data.scoreRank}}</text>
  40. </view>
  41. <view class="particulars">
  42. <text>超过用户</text>
  43. <text>{{data.proportion}}%</text>
  44. </view>
  45. </view>
  46. </view>
  47. <!-- 答题 -->
  48. <view class="ranking">
  49. <view class="title">
  50. <text>我的排名</text>
  51. </view>
  52. <view class="ranking-con">
  53. <view class="rank">
  54. <text>好友数</text>
  55. <text>第九名</text>
  56. </view>
  57. <view class="rank">
  58. <text>好友数</text>
  59. <text>第九名</text>
  60. </view>
  61. <view class="rank">
  62. <text>好友数</text>
  63. <text>第九名</text>
  64. </view>
  65. <view class="rank">
  66. <text>好友数</text>
  67. <text>第九名</text>
  68. </view>
  69. <view class="rank">
  70. <text>好友数</text>
  71. <text>第九名</text>
  72. </view>
  73. <view class="rank">
  74. <text>好友数</text>
  75. <text>第九名</text>
  76. </view>
  77. </view>
  78. <view class="particular">
  79. <navigator url="../competition/competition" >查看详细排行</navigator>
  80. </view>
  81. </view>
  82. <!-- 勋章 -->
  83. <view class="medal">
  84. <view class="title">
  85. <text>我的勋章</text>
  86. <text class="{{data.metalsList.length > 0 ? 'none' : ''}}">本周还没获得</text>
  87. </view>
  88. <view class="img">
  89. <view wx:for="{{data.metalsList}}" wx:key="{{item.id}}" >
  90. <image src="{{item.img}}"></image>
  91. <text>{{item.name}}</text>
  92. </view>
  93. </view>
  94. </view>
  95. <!-- 课模板 -->
  96. <view>
  97. <curriculum studyLog="{{ data.studyLog }}"/>
  98. </view>
  99. <!-- <view class='questions'>
  100. <scroll-view>
  101. <text class="{{questionsPreviewing ? 'adsorb' : ''}}">答疑</text>
  102. <view>
  103. </view>
  104. </scroll-view>
  105. </view>
  106. <view class='share'>
  107. <text class="{{questionsShare ? 'adsorb' : ''}}">分享</text>
  108. <view></view>
  109. </view> -->
  110. </view>
  111. <!-- 本周推荐 -->
  112. <!-- <view class="recommend {{navBtnSelectIdx == 1 ? '' : 'none'}}">
  113. <recommend recommendData="{{recommendData}}"/>
  114. </view> -->
  115. <!-- 科学艺术 -->
  116. <!-- <view class="art {{navBtnSelectIdx == 7 ? '' : 'none'}}">
  117. <one wx:if="{{share}}"
  118. productionData="{{oneData}}"
  119. title="作品分享"
  120. type="2"/>
  121. <art wx:else
  122. productionData="{{productionData}}"
  123. questionsData="{{questionsData}}"/>
  124. </view> -->
  125. </scroll-view>
  126. </view>
  127. </view>