index.wxml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <view class="container">
  2. <!-- 顶部学生信息 -->
  3. <view class="head-view">
  4. <view class="head-left">
  5. <view class="head-img-view" wx:for="{{userItems}}" wx:key="index" data-id="{{item.studentId}}" bindtap="changeStu" wx:if="{{curStu.orgId == item.orgId}}">
  6. <image class="{{curStu.studentId == item.studentId ? 'curStu' : 'stuHead'}}" src="{{item.imageUrl}}"></image>
  7. </view>
  8. </view>
  9. <view class="head-right">
  10. <view class="section">
  11. <picker class="picker-box" bindchange="bindPickerChange" value="{{index}}" range="{{orgItems}}" range-key="orgName">
  12. <view class="picker">
  13. {{orgItems[index].orgName}}
  14. <view class="toDown"><image src="/images/toDown.png"></image></view>
  15. </view>
  16. </picker>
  17. </view>
  18. </view>
  19. </view>
  20. <!-- end -->
  21. <!-- 轮播图 -->
  22. <view class="swiper">
  23. <swiper class="banner" autoplay circular interval="3000">
  24. <block wx:for="{{bannerList}}" wx:key="index">
  25. <swiper-item class="banner-box" >
  26. <image lazy-load mode="aspectFill" class="bb-image" src="{{item.imageUrl}}"></image>
  27. </swiper-item>
  28. </block>
  29. </swiper>
  30. </view>
  31. <!-- end -->
  32. <!-- 课程数据 -->
  33. <view class="class-view">
  34. <view class="title">课程数据</view>
  35. <view class="class-list">
  36. <view class="class-box" wx:for="{{classList}}" wx:key="index" data-url="{{item.url}}" bindtap="toPage" wx:if="{{index == 1 ? isShow : true}}">
  37. <view class="class-img">
  38. <image src="{{item.img}}"></image>
  39. </view>
  40. <view class="class-detail">
  41. <view class="class-num">{{item.num == '100.00%' ? '100%' : item.num}}</view>
  42. <view class="class-title">{{item.title}}</view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <!-- end -->
  48. <!-- 我的应用 -->
  49. <view class="app-view">
  50. <view class="title">我的应用</view>
  51. <view class="app-list">
  52. <view class="app-box" wx:for="{{appList}}" wx:key="index" data-url="{{item.url}}" bindtap="toPage" wx:if="{{index == 1 ? isShow : true}}">
  53. <view class="app-img">
  54. <image src="{{item.img}}"></image>
  55. </view>
  56. <view class="app-title">{{item.title}}</view>
  57. </view>
  58. </view>
  59. </view>
  60. <!-- end -->
  61. <!-- 学生秀 -->
  62. <view class="show-view" wx:if="{{isShow}}">
  63. <view class="title-view">
  64. <view class="title">学生秀</view>
  65. <view class="more" bindtap="getMoreShow" data-type="0">更多</view>
  66. </view>
  67. <showView list="{{stuShowList}}" bind:callThumbsUp="doThumbsUp"></showView>
  68. <view class="reset-btn" bindtap="queryStudentShow" wx:if="{{stuShowList.length > 2}}">换一批</view>
  69. <view class="none-more" wx:elif="{{stuShowList.length <= 0 }}">没有更多了~</view>
  70. </view>
  71. <!-- end -->
  72. <!-- 老师秀 -->
  73. <view class="show-view" wx:if="{{isShow}}">
  74. <view class="title-view">
  75. <view class="title">老师秀</view>
  76. <view class="more" bindtap="getMoreShow" data-type="1">更多</view>
  77. </view>
  78. <showView list="{{teaShowList}}" bind:callThumbsUp="doThumbsUp"></showView>
  79. <view class="reset-btn" bindtap="queryTeacherShow" wx:if="{{teaShowList.length > 2}}">换一批</view>
  80. <view class="none-more" wx:elif="{{teaShowList.length <= 0 }}">没有更多了~</view>
  81. </view>
  82. <!-- end -->
  83. </view>