index.wxml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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'>LV.{{data.level}}</text>
  19. </view>
  20. <view class="student">
  21. 学号:
  22. <text>{{data.users.eid}}</text>
  23. </view>
  24. </view>
  25. </view>
  26. <view class='grade'>{{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="medal">
  49. <view class="title">
  50. <text>我的勋章</text>
  51. <text class="{{data.metalsList.length > 0 ? 'none' : ''}}">本周还没获得</text>
  52. </view>
  53. <view class="img">
  54. <view wx:for="{{data.metalsList}}" wx:key="{{item.id}}" >
  55. <image src="{{item.img}}"></image>
  56. <text>{{item.name}}</text>
  57. </view>
  58. </view>
  59. </view>
  60. <!-- 课模板 -->
  61. <view>
  62. <curriculum studyLog="{{ data.studyLog }}"/>
  63. </view>
  64. <!-- <view class='questions'>
  65. <scroll-view>
  66. <text class="{{questionsPreviewing ? 'adsorb' : ''}}">答疑</text>
  67. <view>
  68. </view>
  69. </scroll-view>
  70. </view>
  71. <view class='share'>
  72. <text class="{{questionsShare ? 'adsorb' : ''}}">分享</text>
  73. <view></view>
  74. </view> -->
  75. </view>
  76. <!-- 本周推荐 -->
  77. <!-- <view class="recommend {{navBtnSelectIdx == 1 ? '' : 'none'}}">
  78. <recommend recommendData="{{recommendData}}"/>
  79. </view> -->
  80. <!-- 科学艺术 -->
  81. <!-- <view class="art {{navBtnSelectIdx == 7 ? '' : 'none'}}">
  82. <one wx:if="{{share}}"
  83. productionData="{{oneData}}"
  84. title="作品分享"
  85. type="2"/>
  86. <art wx:else
  87. productionData="{{productionData}}"
  88. questionsData="{{questionsData}}"/>
  89. </view> -->
  90. </scroll-view>
  91. </view>
  92. </view>