index.wxml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 bindchange="bindPickerChange" value="{{index}}" range="{{orgItems}}" range-key="orgName">
  12. <view class="picker">
  13. {{orgItems[index].orgName}}
  14. </view>
  15. </picker>
  16. </view>
  17. </view>
  18. </view>
  19. <!-- end -->
  20. <!-- 轮播图 -->
  21. <view class="swiper">
  22. <swiper class="banner" autoplay circular interval="3000">
  23. <block wx:for="{{bannerList}}" wx:key="index">
  24. <swiper-item class="banner-box" >
  25. <image lazy-load mode="aspectFill" class="bb-image" src="{{item.imageUrl}}"></image>
  26. </swiper-item>
  27. </block>
  28. </swiper>
  29. </view>
  30. <!-- end -->
  31. <!-- 课程数据 -->
  32. <view class="class-view">
  33. <view class="title">课程数据</view>
  34. <view class="class-list">
  35. <view class="class-box" wx:for="{{classList}}" wx:key="index" data-url="{{item.url}}" bindtap="toPage">
  36. <view class="class-img">
  37. <image src="{{item.img}}"></image>
  38. </view>
  39. <view class="class-detail">
  40. <view class="class-num">{{item.num == '100.00%' ? '100%' : item.num}}</view>
  41. <view class="class-title">{{item.title}}</view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <!-- end -->
  47. <!-- 我的应用 -->
  48. <view class="app-view">
  49. <view class="title">我的应用</view>
  50. <view class="app-list">
  51. <view class="app-box" wx:for="{{appList}}" wx:key="index" data-url="{{item.url}}" bindtap="toPage">
  52. <view class="app-img">
  53. <image src="{{item.img}}"></image>
  54. </view>
  55. <view class="app-title">{{item.title}}</view>
  56. </view>
  57. </view>
  58. </view>
  59. <!-- end -->
  60. <!-- 学生秀 -->
  61. <view class="show-view" wx:if="{{isShow}}">
  62. <view class="title-view">
  63. <view class="title">学生秀</view>
  64. <view class="more" bindtap="getMoreShow" data-type="0">更多</view>
  65. </view>
  66. <showView list="{{stuShowList}}" bind:callThumbsUp="doThumbsUp"></showView>
  67. <view class="reset-btn" bindtap="queryStudentShow">换一批</view>
  68. </view>
  69. <!-- end -->
  70. <!-- 老师秀 -->
  71. <view class="show-view" wx:if="{{isShow}}">
  72. <view class="title-view">
  73. <view class="title">老师秀</view>
  74. <view class="more" bindtap="getMoreShow" data-type="1">更多</view>
  75. </view>
  76. <showView list="{{teaShowList}}" bind:callThumbsUp="doThumbsUp"></showView>
  77. <view class="reset-btn" bindtap="queryTeacherShow">换一批</view>
  78. </view>
  79. <!-- end -->
  80. </view>