12345678910111213141516171819202122232425262728293031323334 |
- <view class="container">
- <van-sticky>
- <van-tabs active="{{ active }}" bind:change="onChange" line-width="60rpx" line-height="5rpx" color='#FF4330'
- title-active-color="#FF4330" title-inactive-color="#666">
- <van-tab title="{{index}}" wx:for="{{tabsList}}" wx:key="index">
- </van-tab>
- </van-tabs>
- </van-sticky>
- <edu-line size="20rpx"/>
- <view class="bottom">
- <van-sidebar active-key="{{ leftActive }}" bind:change="onChangeCategory" custom-class="sidebar">
- <van-sidebar-item wx:for="{{tabsList[activeFirstName]}}" wx:key="index" wx:for-item="left"
- custom-class="siderbar-item">
- <view slot="title" class="side-item {{index == leftActive ? 'side-select':''}}">
- {{left.dictLabel}}
- </view>
- </van-sidebar-item>
- </van-sidebar>
- <view class="content">
- <edu-loadmore isEmpty="{{rows.length == 0}}" isRefresh="{{isRefresh}}" isLoading="{{isLoading}}"
- isComplete="{{noMore}}">
- <course-card wx:for="{{rows}}" wx:key="index" wx:for-item="right" item="{{right}}"
- bind:tap='toNewsDetail'
- data-item="{{right}}"></course-card>
- </edu-loadmore>
- </view>
- </view>
- </view>
|