index.wxml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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"
  6. wx:if="{{curStu.orgId == item.orgId}}">
  7. <!-- <image class="{{curStu.studentId == item.studentId ? 'curStu' : 'stuHead'}}" src="{{item.imageUrl}}"></image> -->
  8. <view class="{{curStu.studentId == item.studentId ? 'curStu' : 'stuHead'}} headName">{{item.headName}}</view>
  9. </view>
  10. </view>
  11. <view class="head-right">
  12. <view class="section">
  13. <picker class="picker-box" bindchange="bindPickerChange" value="{{index}}" range="{{orgItems}}"
  14. range-key="orgName">
  15. <view class="picker">
  16. {{orgItems[index].orgName}}
  17. <view class="toDown">
  18. <image src="/images/toDown.png"></image>
  19. </view>
  20. </view>
  21. </picker>
  22. </view>
  23. </view>
  24. </view>
  25. <!-- end -->
  26. <!-- 轮播图 -->
  27. <view class="swiper">
  28. <swiper class="banner" autoplay circular interval="3000">
  29. <block wx:for="{{bannerList}}" wx:key="index">
  30. <swiper-item class="banner-box">
  31. <image lazy-load mode="aspectFill" class="bb-image" src="{{item.imageUrl}}"></image>
  32. </swiper-item>
  33. </block>
  34. </swiper>
  35. </view>
  36. <!-- end -->
  37. <!-- 课程数据 -->
  38. <view class="class-view">
  39. <view class="title">课程数据</view>
  40. <view class="class-list">
  41. <view class="class-box" wx:for="{{classList}}" wx:key="index" data-url="{{item.url}}" bindtap="toPage"
  42. wx:if="{{index == 1 ? isShow : true}}">
  43. <view class="class-img">
  44. <image src="{{item.img}}"></image>
  45. </view>
  46. <view class="class-detail">
  47. <view class="class-num">{{item.num == '100.00%' ? '100%' : item.num}}</view>
  48. <view class="class-title">{{item.title}}</view>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <!-- end -->
  54. <!-- 我的应用 -->
  55. <view class="app-view">
  56. <view class="title">我的应用</view>
  57. <view class="app-list">
  58. <view class="app-box" wx:for="{{appList}}" wx:key="index" data-url="{{item.url}}" bindtap="toPage"
  59. wx:if="{{index == 1 ? isShow : true}}">
  60. <view class="app-img">
  61. <image src="{{item.img}}"></image>
  62. </view>
  63. <view class="app-title">{{item.title}}</view>
  64. </view>
  65. </view>
  66. </view>
  67. <!-- end -->
  68. <!-- 学生秀 -->
  69. <view class="show-view" wx:if="{{isShow}}">
  70. <view class="title-view">
  71. <view class="title">学生秀</view>
  72. <view class="more" bindtap="getMoreShow" data-type="0">更多</view>
  73. </view>
  74. <showView list="{{stuShowList}}" bind:callThumbsUp="doThumbsUp"></showView>
  75. <view class="reset-btn" bindtap="queryStudentShow" wx:if="{{stuShowList.length > 2}}">换一批</view>
  76. <view class="none-more" wx:elif="{{stuShowList.length <= 0 }}">没有更多了~</view>
  77. </view>
  78. <!-- end -->
  79. <!-- 老师秀 -->
  80. <view class="show-view" wx:if="{{isShow}}">
  81. <view class="title-view">
  82. <view class="title">老师秀</view>
  83. <view class="more" bindtap="getMoreShow" data-type="1">更多</view>
  84. </view>
  85. <showView list="{{teaShowList}}" bind:callThumbsUp="doThumbsUp"></showView>
  86. <view class="reset-btn" bindtap="queryTeacherShow" wx:if="{{teaShowList.length > 2}}">换一批</view>
  87. <view class="none-more" wx:elif="{{teaShowList.length <= 0 }}">没有更多了~</view>
  88. </view>
  89. <!-- end -->
  90. <!-- 优惠券弹窗 -->
  91. <view class="quan-bg" wx:if="{{quanTipFlag}}"></view>
  92. <view class="quan-tip" wx:if="{{quanTipFlag}}">
  93. <image src="/images/quan-tip.png"></image>
  94. <view class="quan-tip-content">
  95. <view class="quan-tip-title">恭喜获得优惠券{{quanList.length}}张</view>
  96. <view class="quan-tip-list">
  97. <view class="quan-tip-list-box" wx:for="{{quanList}}" wx:key="index">
  98. <view class="quan-tip-list-title view-left">{{item.couponName}}</view>
  99. <view class="quan-tip-list-price"><text>¥</text>{{item.couponAmount}}</view>
  100. <view class="quan-tip-list-date view-left" wx:if="{{item.lastDate}}">有效期至{{item.lastDate}}</view>
  101. <view class="quan-tip-list-date view-left" wx:else>长期有效</view>
  102. <!-- <view class="quan-tip-list-code">满200可用</view> -->
  103. </view>
  104. </view>
  105. <view class="quan-tip-bottom">
  106. <view class="quan-tip-btn" bindtap="toQuan">去看看</view>
  107. <view class="tip-font">已自动存至优惠券</view>
  108. </view>
  109. </view>
  110. <view class="close-tip" bindtap="closeTip">X</view>
  111. </view>
  112. <!-- end -->
  113. <tabbar curIndex="0"></tabbar>
  114. </view>