index.wxml 4.1 KB

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