12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <view class="container">
- <van-notice-bar scrollable text="{{homeData.notice.noticeContent||'暂无公告'}}" background="#EFF1F0" color="#37363F"
- delay="10" speed="30" bindtap="toNotice">
- <view slot="left-icon" class="notice-tip">学院公告</view>
- </van-notice-bar>
- <edu-banner imgList="{{homeData.carouselList}}" imgWidth="690rpx" imgHeight="250rpx" imgRadius="30rpx"
- bind:banner="toBannerDetail"
- banner-container="imageContainer" banner-img="banner-img"></edu-banner>
- <home-class current="{{homeData.classInfo.opened}}" future="{{homeData.classInfo.notYetOpened}}"
- history="{{homeData.classInfo.history}}"></home-class>
- <view class="grid-tab">
- <van-grid icon-size="135rpx" border="{{false}}" custom-class="index-grid">
- <van-grid-item icon="{{item.icon}}" link-type="navigateTo" url="{{item.url}}" wx:for="{{tabs}}"
- wx:key="index" bind:click='toClickGrid' badge="{{index === 0 && liveCourseCount > 0 ? liveCourseCount : ''}}"
- data-title="{{item.url?'':item.title}}">
- <!-- 显示小红点:👇 -->
- <!-- dot="{{index === 0 && showLiveDot}}" -->
- <view slot="text" class="grid-text">{{item.title}}</view>
- </van-grid-item>
- </van-grid>
- </view>
- <view class="home-introduce">
- <van-image src="/images/ic_introduce.png" width="100%" height="190rpx" bindtap="toSchoolIntrouce"/>
- </view>
- <van-tabs id="tabs" active="{{ active }}" bind:change="onChange" line-width="123rpx" line-height="5rpx"
- border="{{true}}"
- color='#FF7B60' sticky>
- <van-tab title="{{item.dictLabel}}" wx:for="{{homeData.dictList}}" wx:key="index">
- <edu-loadmore emptyImg="" isEmpty="{{rows.length == 0}}" isRefresh="{{isRefresh}}" isLoading="{{isLoading}}"
- isComplete="{{noMore}}">
- <home-card newsData="{{newsData}}" wx:for-item="newsData" wx:for="{{rows}}" wx:key="index"
- bind:tap='toNewsDetail' data-item="{{newsData}}" data-title="{{item.dictLabel}}"></home-card>
- </edu-loadmore>
- </van-tab>
- </van-tabs>
- </view>
- <van-action-sheet
- show="{{ showLiveList }}"
- actions="{{ actions }}"
- bind:close="onClose"
- bind:select="onSelect"
- description="当前存在多节直播课,请选择"
- />
- <van-dialog
- use-slot
- title="填写昵称后,即可观看直播"
- show="{{ showNickNameDialog }}"
- show-cancel-button="{{false}}"
- before-close="{{handleBeforeClose}}"
- bind:confirm="handleNickNameConfirm"
- >
- <!-- bind:close="onClose" -->
- <view class="nickname-form">
- <!-- <view>填写昵称后,即可观看直播</view> -->
- <input type="nickname" class="weui-input" maxlength="20" placeholder="请输入昵称" bindinput="handleNickNameInput"/>
- </view>
- </van-dialog>
|