index.wxml 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!-- 搜索 -->
  2. <van-search value="{{ searchContent }}" bind:change='searchInput' use-action-slot shape="round" bind:clear='searchClear' background="var(--primary)" placeholder="请输入搜索关键词">
  3. <view wx:if="{{isInsert}}" 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. <van-action-sheet show="{{ sheetShow }}" actions="{{ actions }}" bind:close="sheetClose" bind:cancel="sheetClose" bind:select="sheetSelect" cancel-text="取消" />
  11. <!-- tabs -->
  12. <van-tabs wx:if="{{isTabs}}" sticky color='var(--assist)' title-active-color='var(--assist)' bind:change='tabChange' title-inactive-color='#999' z-index='9'>
  13. <van-tab title="列表" />
  14. <van-tab title="我的素材" />
  15. <!-- <van-tab title="拉新清单" /> -->
  16. </van-tabs>
  17. <!-- 下拉菜单 -->
  18. <van-dropdown-menu class="menu" activeColor='var(--assist)'>
  19. <van-dropdown-item id="item" title="{{activeName||'默认'}}">
  20. <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" />
  21. </van-dropdown-item>
  22. <view class="switch">
  23. <My_switch bindchange='changeSwitch' sort="{{sort}}" />
  24. </view>
  25. </van-dropdown-menu>
  26. <!-- 列表 -->
  27. <My_listBox id='ListBox' bindgetlist="getList" height='{{scrollHeight}}'>
  28. <ProductList id='list' total="{{total}}" list="{{list}}" />
  29. <view style="height: 50px;" />
  30. </My_listBox>