index.wxml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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}}" custom-class="index-grid">
  13. <van-grid-item icon="{{item.icon}}" link-type="navigateTo" url="{{item.url}}" wx:for="{{tabs}}"
  14. wx:key="index" bind:click='toClickGrid' badge="{{index === 0 && liveCourseCount > 0 ? liveCourseCount : ''}}"
  15. data-title="{{item.url?'':item.title}}">
  16. <!-- 显示小红点:👇 -->
  17. <!-- dot="{{index === 0 && showLiveDot}}" -->
  18. <view slot="text" class="grid-text">{{item.title}}</view>
  19. </van-grid-item>
  20. </van-grid>
  21. </view>
  22. <view class="home-introduce">
  23. <van-image src="/images/ic_introduce.png" width="100%" height="190rpx" bindtap="toSchoolIntrouce"/>
  24. </view>
  25. <van-tabs id="tabs" active="{{ active }}" bind:change="onChange" line-width="123rpx" line-height="5rpx"
  26. border="{{true}}"
  27. color='#FF7B60' sticky>
  28. <van-tab title="{{item.dictLabel}}" wx:for="{{homeData.dictList}}" wx:key="index">
  29. <edu-loadmore emptyImg="" isEmpty="{{rows.length == 0}}" isRefresh="{{isRefresh}}" isLoading="{{isLoading}}"
  30. isComplete="{{noMore}}">
  31. <home-card newsData="{{newsData}}" wx:for-item="newsData" wx:for="{{rows}}" wx:key="index"
  32. bind:tap='toNewsDetail' data-item="{{newsData}}" data-title="{{item.dictLabel}}"></home-card>
  33. </edu-loadmore>
  34. </van-tab>
  35. </van-tabs>
  36. </view>
  37. <van-action-sheet
  38. show="{{ showLiveList }}"
  39. actions="{{ actions }}"
  40. bind:close="onClose"
  41. bind:select="onSelect"
  42. description="当前存在多节直播课,请选择"
  43. />
  44. <van-dialog
  45. use-slot
  46. title="填写昵称后,即可观看直播"
  47. show="{{ showNickNameDialog }}"
  48. show-cancel-button="{{false}}"
  49. before-close="{{handleBeforeClose}}"
  50. bind:confirm="handleNickNameConfirm"
  51. >
  52. <!-- bind:close="onClose" -->
  53. <view class="nickname-form">
  54. <!-- <view>填写昵称后,即可观看直播</view> -->
  55. <input type="nickname" class="weui-input" maxlength="20" placeholder="请输入昵称" bindinput="handleNickNameInput"/>
  56. </view>
  57. </van-dialog>