index.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <view class="container">
  2. <van-notice-bar scrollable text="{{homeData.notice.noticeContent||'暂无公告'}}" background="#EFF1F0" color="#37363F"
  3. delay="10" speed="30" bindtap="toNotice">
  4. <view slot="left-icon" class="notice-tip">学院公告</view>
  5. </van-notice-bar>
  6. <edu-banner imgList="{{homeData.carouselList}}" imgWidth="690rpx" imgHeight="250rpx" imgRadius="30rpx"
  7. bind:banner="toBannerDetail"
  8. banner-container="imageContainer" banner-img="banner-img"></edu-banner>
  9. <home-class current="{{homeData.classInfo.opened}}" future="{{homeData.classInfo.notYetOpened}}"
  10. history="{{homeData.classInfo.history}}"></home-class>
  11. <view class="grid-tab">
  12. <van-grid icon-size="135rpx" border="{{false}}">
  13. <van-grid-item icon="{{item.icon}}" link-type="navigateTo" url="{{item.url}}" wx:for="{{tabs}}"
  14. wx:key="index" bind:click='toClickGrid'
  15. data-title="{{item.url?'':item.title}}">
  16. <view slot="text" class="grid-text">{{item.title}}</view>
  17. </van-grid-item>
  18. </van-grid>
  19. </view>
  20. <view class="home-introduce">
  21. <van-image src="/images/ic_introduce.png" width="100%" height="190rpx" bindtap="toSchoolIntrouce"/>
  22. </view>
  23. <van-tabs id="tabs" active="{{ active }}" bind:change="onChange" line-width="123rpx" line-height="5rpx"
  24. border="{{true}}"
  25. color='#FF7B60' sticky>
  26. <van-tab title="{{item.dictLabel}}" wx:for="{{homeData.dictList}}" wx:key="index">
  27. <edu-loadmore emptyImg="" isEmpty="{{rows.length == 0}}" isRefresh="{{isRefresh}}" isLoading="{{isLoading}}"
  28. isComplete="{{noMore}}">
  29. <home-card newsData="{{newsData}}" wx:for-item="newsData" wx:for="{{rows}}" wx:key="index"
  30. bind:tap='toNewsDetail' data-item="{{newsData}}" data-title="{{item.dictLabel}}"></home-card>
  31. </edu-loadmore>
  32. </van-tab>
  33. </van-tabs>
  34. </view>
  35. <van-action-sheet
  36. show="{{ showLiveList }}"
  37. actions="{{ actions }}"
  38. bind:close="onClose"
  39. bind:select="onSelect"
  40. description="当前存在多节直播课,请选择"
  41. />