index.wxml 4.6 KB

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