<!--pages/components/voucher-select/index.wxml-->

<view class="voucher_select_max" bindtap="showPopup">
    <view class="voucher_select_min">
        <view class="voucher_select_placeholder" wx:if="{{echoData.length == 0}}">{{placeholder}}</view>
        <view wx:if="{{echoData.length > 0}}">
            <view class="voucher_select_for" wx:for="{{echoData}}" wx:key="index">{{item.text}}</view>
        </view>
    </view>
    <view class="voucher_select_icon">
        <image src="http://fileimg.makalu.cc/WEB_F1B4B95FFE95463593A401824DF8E0BB.png"></image>
    </view>
</view>


<van-popup show="{{ show }}" bind:close="onClose" position="bottom" custom-class="popup_style">
    <view class="option_list_title">
        <view class="option_list_title_btn" bindtap="onClose">取消</view>
        <view>{{placeholder}}</view>
        <view class="option_list_title_btn" bindtap="onConfirm">确认</view>
    </view> 
    <view class="option_list_max">
        <view class="{{item.type?'option_list_list active':'option_list_list'}}" wx:for="{{forData}}" wx:key="index" bindtap="onSelectChange" 
        data-index="{{index}}">{{item.text}}</view>
    </view>
</van-popup>


































