<!--components/searchSelect/index.wxml-->
<van-popup  
    show="{{ show }}" 
    bind:click="onClickHide"
    position="bottom"
    z-index="100000"
    wx:if="{{show}}"
>
    <view wx:if="{{type === 'pay'}}">
        <van-picker 
            custom-style="width: 100%;" 
            columns="{{ payWays }}" 
            title="{{title}}"
            show-toolbar="{{true}}"
            bind:cancel="onCancel"
            bind:confirm="onPayConfirm"
        /> 
    </view>
    <view wx:elif="{{type === 'feeType'}}">
        <van-picker 
            custom-style="width: 100%;" 
            columns="{{ feeType }}" 
            title="{{title}}"
            show-toolbar="{{true}}"
            bind:cancel="onCancel"
            bind:confirm="onFeeTypeConfirm"
        /> 
    </view>
    <view wx:elif="{{type === 'meterType'}}">
        <van-picker 
            custom-style="width: 100%;" 
            columns="{{ meterType }}" 
            title="{{title}}"
            show-toolbar="{{true}}"
            bind:cancel="onCancel"
            bind:confirm="onMeterTypeConfirm"
        /> 
    </view>
    <view wx:elif="{{type === 'noticeFlowType'}}">
        <van-picker 
            custom-style="width: 100%;" 
            columns="{{ noticeFlowType }}" 
            title="{{title}}"
            show-toolbar="{{true}}"
            bind:cancel="onCancel"
            bind:confirm="onNoticeFlowTypeConfirm"
        /> 
    </view>
    <view wx:elif="{{type === 'meterMode'}}">
        <van-picker 
            custom-style="width: 100%;" 
            columns="{{ meterMode }}" 
            title="{{title}}"
            show-toolbar="{{true}}"
            bind:cancel="onCancel"
            bind:confirm="onMeterModeConfirm"
        /> 
    </view>
    <view wx:elif="{{type === 'noticeFlowStatus'}}">
        <van-picker 
            custom-style="width: 100%;" 
            columns="{{ noticeFlowStatus }}" 
            title="{{title}}"
            show-toolbar="{{true}}"
            bind:cancel="onCancel"
            bind:confirm="onNoticeFlowStatusConfirm"
        /> 
    </view>
    <view wx:elif="{{type !== 'pay'}}">
        <van-search
            value="{{ value }}"
            placeholder="{{type === 'tenement' ? '请输入关键词搜索后选择' : '请输入搜索关键词'}}"
            use-action-slot
            bind:change="onChangeSearch"
        >
            <view 
                style="margin-left: 20rpx; margin-right: 20rpx" 
                slot="action" 
                bind:tap="onSearch"
            >搜索</view>
        </van-search>
        <van-picker 
            custom-style="width: 100%;" 
            columns="{{ columns }}" 
            title="{{title}}"
            show-toolbar="{{true}}"
            bind:cancel="onCancel"
            bind:confirm="onConfirm"
        /> 
    </view>
    
    <view wx:else>
        <van-picker 
            custom-style="width: 100%;" 
            columns="{{ columns }}" 
            title="{{title}}"
            show-toolbar="{{true}}"
            bind:cancel="onCancel"
            bind:confirm="onConfirm"
        /> 
    </view>
</van-popup>