<!-- 搜索 -->
<van-search value="{{ searchContent }}" bind:change='searchInput' use-action-slot shape="round" bind:clear='searchClear' background="var(--primary)" placeholder="请输入搜索关键词">
    <view wx:if="{{isInsert}}" class="upload-box" slot='action'>
        <navigator url="#" class="upload" bindtap="addData">
            <text class="iconfont icon-a-tuiguangsucaishangchuan1" />
            上传
        </navigator>
    </view>
</van-search>
<van-action-sheet show="{{ sheetShow }}" actions="{{ actions }}" bind:close="sheetClose" bind:cancel="sheetClose" bind:select="sheetSelect" cancel-text="取消" />
<!-- tabs -->
<van-tabs wx:if="{{isTabs}}" sticky color='var(--assist)' title-active-color='var(--assist)' bind:change='tabChange' title-inactive-color='#999' z-index='9'>
    <van-tab title="总部" />
    <van-tab title="我的素材" />
</van-tabs>

<!-- 下拉菜单 -->
<van-dropdown-menu class="menu" activeColor='var(--assist)'>
    <van-dropdown-item id="item" title="{{activeName||'默认'}}">
        <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" />
    </van-dropdown-item>
    <view class="switch">
        <My_switch bindchange='changeSwitch' sort="{{sort}}" />
    </view>
</van-dropdown-menu>

<!-- 列表 -->
<Yl_ListBox id='ListBox' bindgetlist="getList">
    <ProductList id='list' total="{{total}}" list="{{list}}" />
    <view style="height: 50px;" />
</Yl_ListBox>
