index.wxml 1.6 KB

1234567891011121314151617181920212223242526272829
  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-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 id='list' total="{{total}}" list="{{list}}" />
  28. <view style="height: 50px;" />
  29. </My_listBox>