course.wxml 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. <view class="container">
  2. <van-sticky>
  3. <van-tabs active="{{ active }}" bind:change="onChange" line-width="60rpx" line-height="5rpx" color='#FF4330'
  4. title-active-color="#FF4330" title-inactive-color="#666">
  5. <van-tab title="{{index}}" wx:for="{{tabsList}}" wx:key="index">
  6. </van-tab>
  7. </van-tabs>
  8. </van-sticky>
  9. <edu-line size="20rpx"/>
  10. <view class="bottom">
  11. <van-sidebar active-key="{{ leftActive }}" bind:change="onChangeCategory" custom-class="sidebar">
  12. <van-sidebar-item wx:for="{{tabsList[activeFirstName]}}" wx:key="index" wx:for-item="left"
  13. custom-class="siderbar-item">
  14. <view slot="title" class="side-item {{index == leftActive ? 'side-select':''}}">
  15. {{left.dictLabel}}
  16. </view>
  17. </van-sidebar-item>
  18. </van-sidebar>
  19. <view class="content">
  20. <edu-loadmore isEmpty="{{rows.length == 0}}" isRefresh="{{isRefresh}}" isLoading="{{isLoading}}"
  21. isComplete="{{noMore}}">
  22. <course-card wx:for="{{rows}}" wx:key="index" wx:for-item="right" item="{{right}}"
  23. bind:tap='toNewsDetail'
  24. data-item="{{right}}"></course-card>
  25. </edu-loadmore>
  26. </view>
  27. </view>
  28. </view>