index.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <!-- 搜索 -->
  2. <van-search value="{{ searchContent }}" bind:change='searchInput' use-action-slot shape="round" bind:clear='searchClear' background="var(--primary)" placeholder="请输入搜索关键词">
  3. <view class="upload-box" slot='action'>
  4. <navigator url="#" class="upload" bindtap="addData">
  5. <text class="iconfont icon-a-tuiguangsucaishangchuan1" />
  6. 上传
  7. </navigator>
  8. </view>
  9. </van-search>
  10. <!-- tabs -->
  11. <van-tabs sticky color='var(--assist)' title-active-color='var(--assist)' bind:change='tabChange' title-inactive-color='#999' z-index='9'>
  12. <van-tab title="列表" />
  13. <van-tab title="我的素材" />
  14. <!-- <van-tab title="拉新清单" /> -->
  15. </van-tabs>
  16. <!-- 下拉菜单 -->
  17. <van-dropdown-menu class="menu" activeColor='var(--assist)'>
  18. <van-dropdown-item id="item" title="{{activeName||'默认'}}">
  19. <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" />
  20. </van-dropdown-item>
  21. <view class="switch">
  22. <My_switch bindchange='changeSwitch' sort="{{sort}}" />
  23. </view>
  24. </van-dropdown-menu>
  25. <!-- 列表 -->
  26. <My_listBox id='ListBox' bindgetlist="getList" height='{{scrollHeight}}'>
  27. <ProductList total="{{total}}" list="{{list}}" />
  28. <view style="height: 50px;" />
  29. </My_listBox>