index.wxml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. </view>
  19. <view class="student">
  20. 学号:
  21. <text>{{data.users.eid}}</text>
  22. </view>
  23. <view class='LV'>{{grade}}</view>
  24. </view>
  25. </view>
  26. <view class='grade'>
  27. <navigator url="../set_name/set_name" >更改昵称</navigator>
  28. </view>
  29. </view>
  30. <view class='personal'>
  31. <view class="particulars">
  32. <text>登录天数</text>
  33. <text>{{data.users.loginDay}}</text>
  34. </view>
  35. <view class="particulars">
  36. <text>总时长</text>
  37. <text>{{time}}</text>
  38. </view>
  39. <view class="particulars">
  40. <text>当前排名</text>
  41. <text>{{data.scoreRank}}</text>
  42. </view>
  43. <view class="particulars">
  44. <text>超过用户</text>
  45. <text>{{data.proportion}}%</text>
  46. </view>
  47. </view>
  48. </view>
  49. <!-- 答题 -->
  50. <view class="ranking">
  51. <view class="title">
  52. <text>我的排名</text>
  53. </view>
  54. <view class="ranking-con">
  55. <view class="rank">
  56. <text>好友数: {{rankData.friendsRank.number}}位</text>
  57. <text>第{{rankData.friendsRank.rank}}名</text>
  58. </view>
  59. <view class="rank">
  60. <text>勋章数量:{{rankData.metalsRank.number}}枚</text>
  61. <text>第{{rankData.metalsRank.rank}}名</text>
  62. </view>
  63. <view class="rank">
  64. <text>等级:LV{{rankData.expRank.number}}</text>
  65. <text>第{{rankData.expRank.rank}}名</text>
  66. </view>
  67. <view class="rank">
  68. <text>答题量:{{rankData.userQuestionRank.number}}题</text>
  69. <text>第{{rankData.userQuestionRank.rank}}名</text>
  70. </view>
  71. <view class="rank">
  72. <text>答题准确率:{{rankData.userQuestionCorrectRank.numberCorrect}}%</text>
  73. <text>第{{rankData.userQuestionCorrectRank.rank}}名</text>
  74. </view>
  75. </view>
  76. <view class="particular">
  77. <navigator url="../competition/competition" >查看详细排行</navigator>
  78. </view>
  79. </view>
  80. <!-- 勋章 -->
  81. <view class="medal">
  82. <view class="title">
  83. <text>我的勋章</text>
  84. <text class="{{data.metalsList.length > 0 ? 'none' : ''}}">本周还没获得</text>
  85. </view>
  86. <scroll-view scroll-x="true" >
  87. <view class="img">
  88. <view wx:for="{{data.metalsList}}" wx:key="{{item.id}}" >
  89. <image src="{{item.img}}"></image>
  90. <text>{{item.name}}</text>
  91. </view>
  92. </view>
  93. </scroll-view>
  94. </view>
  95. <!-- 课模板 -->
  96. <view>
  97. <curriculum studyLog="{{ data.studyLog }}"/>
  98. </view>
  99. </view>
  100. </scroll-view>
  101. </view>
  102. </view>