index.wxml 4.8 KB

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