index.wxml 1.4 KB

123456789101112131415161718192021222324
  1. <van-search value="{{ content.where.condition }}" shape="round" background="var(--primary)" bindchange='startSearch' bind:clear='closeSearch' placeholder="请输入搜索关键词" />
  2. <!-- 下拉菜单 -->
  3. <van-dropdown-menu class="menu" activeColor='var(--assist)'>
  4. <van-dropdown-item id="item" title="{{showText||'默认'}}">
  5. <van-tree-select items="{{ items }}" main-active-class='main-active' content-active-class='content-active' main-active-index="{{ mainActiveIndex }}" active-id="{{activeId}}" bind:click-nav="onClickNav" bind:click-item="onClickItem" />
  6. </van-dropdown-item>
  7. <view class="switch">
  8. <My_switch sort='{{sort}}' bind:change="switchChange" />
  9. </view>
  10. </van-dropdown-menu>
  11. <!-- 列表 -->
  12. <Yl_ListBox id='ListBox' bind:getlist='selectList'>
  13. <view class="unread">总共{{total}}个</view>
  14. <navigator url="#" class="course my-card" wx:for="{{list}}" data-item="{{item}}" bindtap="toDetail">
  15. <van-image width="160rpx" height="120rpx" custom-class='cover-img' lazy-load fit='cover' src="{{item.cover||'https://img.yzcdn.cn/vant/cat.jpeg'}}" />
  16. <view class="explian">
  17. <view class="title line-1">{{item.title}}</view>
  18. <view class="details line-1">{{item.notes}}</view>
  19. <view class="read line-1">{{item.readcount}}</view>
  20. </view>
  21. </navigator>
  22. <Yl_Empty wx:if="{{!list.length}}" />
  23. <view style="height: 40px;" />
  24. </Yl_ListBox>