<!-- pages/member/myOrder_v2/myOrder_v2.wxml -->
<van-tabs active="{{selected}}" scroll-top="{{scrollTop}}" offset-top="{{(orderType == 'shop' || orderType=='storeMang') ? 36 : 0}}" sticky="{{true}}" custom-class="{{(orderType == 'shop' || orderType=='storeMang')?'vant-nav':''}}{{noShowTab?'stockClass vant-nav':''}}" swipe-threshold="{{5}}" bind:click="swichTabTItem">
	<view class="search" wx:if="{{orderType == 'shop' || orderType=='storeMang' || orderType == 'stock' }}">
		<view class="search-screenBox" wx:if="{{orderType=='storeMang'}}">
			<view class="srceenText" bindtap="setSearchScreenShow">
				<text>{{searchTypes[searchType].name}}</text>
				<i class="iconfont icon-member-bottom"></i>
			</view>
			<view class="srceenOptions" wx:if="{{searchScreenShow}}">
				<view class="srceenOptionsItem {{searchType==index ? 'active' : ''}}" data-index="{{index}}" bindtap="setSearchType" wx:for="{{searchTypes}}">{{item.name}}</view>
			</view>
		</view>
		<view class="searchBox">
			<van-field value="{{ keywords }}" placeholder="{{orderType=='storeMang' ? searchTypes[searchType].placeholder : '搜索订单'}}" border="{{ false }}" bind:inp="inpbtn" clearable bind:clear="inpbtnclear" />
			<view class="img-icon" catchtap="search">
				<view class="img-icon-btn"></view>
			</view>
		</view>
	</view>

	<van-tab title="{{item}}" name="{{index}}" wx:for="{{NavList}}" wx:for-item="item" wx:for-index="index" >
		<block wx:if="{{index == 0}}">
			<cOrderList bindConfrimOrderNotification="cofirmOrderAction" order-type="{{orderType}}" detail-url="{{detailUrl}}" datasource="{{orderList}}" status="{{0}}" bindstoprefresh="stopRefresh" member_type="{{debt_shop_member_type}}" custom_receipt_confirmation_html="{{custom_receipt_confirmation_html}}"></cOrderList>
		</block>
		<block wx:if="{{index == 1}}">
			<cOrderList bindConfrimOrderNotification="cofirmOrderAction" order-type="{{orderType}}" bindMultiplePayNotification="multiplePayAction" detail-url="{{detailUrl}}" datasource="{{waitPayList}}" status="{{1}}" bindstoprefresh="stopRefresh" consolidated="{{consolidated_payment}}" custom_receipt_confirmation_html="{{custom_receipt_confirmation_html}}" member_type="{{debt_shop_member_type}}"></cOrderList>
		</block>
		<block wx:if="{{index == 2}}">
			<cOrderList bindConfrimOrderNotification="cofirmOrderAction" order-type="{{orderType}}" detail-url="{{detailUrl}}" datasource="{{waitSendList}}" status="{{2}}" bindstoprefresh="stopRefresh" custom_receipt_confirmation_html="{{custom_receipt_confirmation_html}}" member_type="{{debt_shop_member_type}}"></cOrderList>
		</block>
		<block wx:if="{{index == 3}}">
			<cOrderList bindConfrimOrderNotification="cofirmOrderAction" order-type="{{orderType}}" detail-url="{{detailUrl}}" datasource="{{waitReceiveList}}" status="{{3}}" bindstoprefresh="stopRefresh" custom_receipt_confirmation_html="{{custom_receipt_confirmation_html}}" member_type="{{debt_shop_member_type}}"></cOrderList>
		</block>
		<block wx:if="{{index == 4}}">
			<cOrderList bindConfrimOrderNotification="cofirmOrderAction" order-type="{{orderType}}" detail-url="{{detailUrl}}" datasource="{{waitCompleteList}}" status="{{4}}" bindstoprefresh="stopRefresh" custom_receipt_confirmation_html="{{custom_receipt_confirmation_html}}" member_type="{{debt_shop_member_type}}"></cOrderList>
		</block>
		<block wx:if="{{index == 5}}">
			<cOrderList bindConfrimOrderNotification="cofirmOrderAction" order-type="{{orderType}}" detail-url="{{detailUrl}}" datasource="{{waitRefund}}" status="{{4}}" bindstoprefresh="stopRefresh" wx:if="{{orderType == 'hotel' || orderType == 'hotel_center'|| orderType == 'lease_toy'|| orderType == 'groups'}}" custom_receipt_confirmation_html="{{custom_receipt_confirmation_html}}" member_type="{{debt_shop_member_type}}"></cOrderList>
			<cOrderList bindConfrimOrderNotification="cofirmOrderAction" order-type="{{orderType}}" detail-url="{{detailUrl}}" datasource="{{waitCompleteList}}" status="{{5}}" bindstoprefresh="stopRefresh" wx:else custom_receipt_confirmation_html="{{custom_receipt_confirmation_html}}" member_type="{{debt_shop_member_type}}"></cOrderList>
		</block>
	</van-tab>

	<!-- <van-tab title="{{orderType=='groups'?'拼团中':'全部'}}">
				<cOrderList bindConfrimOrderNotification="cofirmOrderAction" order-type="{{orderType}}" detail-url="{{detailUrl}}" datasource="{{orderList}}" status="{{0}}" bindstoprefresh="stopRefresh"></cOrderList>
		</van-tab>
		<van-tab title="{{orderType=='lease_toy'?'待支付':'待付款'}}">
				<cOrderList bindConfrimOrderNotification="cofirmOrderAction" order-type="{{orderType}}" bindMultiplePayNotification="multiplePayAction" detail-url="{{detailUrl}}" datasource="{{waitPayList}}" status="{{1}}" bindstoprefresh="stopRefresh"></cOrderList>
		</van-tab>
		<van-tab title="{{ orderType == 'hotel' || orderType == 'hotel_center' ? '待确认' : '待发货' }}" disabled="{{(orderType == 'cashier' || orderType == 'hotelcashier')?true:false}}">
				<block wx:if="{{!(orderType == 'cashier' || orderType == 'hotelcashier')}}">
						<cOrderList bindConfrimOrderNotification="cofirmOrderAction" order-type="{{orderType}}" detail-url="{{detailUrl}}" datasource="{{waitSendList}}" status="{{2}}" bindstoprefresh="stopRefresh"></cOrderList>
				</block>
		</van-tab>
		<van-tab title="{{ orderType == 'hotel' || orderType == 'hotel_center' ? '待入住': '待收货' }}" disabled="{{(orderType == 'cashier' || orderType == 'hotelcashier')?true:false}}">
				<block wx:if="{{!(orderType == 'cashier' || orderType == 'hotelcashier')}}">
						<cOrderList bindConfrimOrderNotification="cofirmOrderAction" order-type="{{orderType}}" detail-url="{{detailUrl}}" datasource="{{waitReceiveList}}" status="{{3}}" bindstoprefresh="stopRefresh"></cOrderList>
				</block>
		</van-tab>

		<van-tab title="{{ orderType=='lease_toy'?'待归还':'待退房'}}" wx:if="{{orderType == 'hotel' || orderType == 'hotel_center'|| orderType == 'lease_toy'}}">
				<cOrderList bindConfrimOrderNotification="cofirmOrderAction" order-type="{{orderType}}" detail-url="{{detailUrl}}" datasource="{{waitRefund}}" status="{{4}}" bindstoprefresh="stopRefresh"></cOrderList>
		</van-tab>
		<van-tab title="已完成" wx:if="{{orderType == 'lease_toy'}}">
				<cOrderList bindConfrimOrderNotification="cofirmOrderAction" order-type="{{orderType}}" detail-url="{{detailUrl}}" datasource="{{waitCompleteList}}" status="{{5}}" bindstoprefresh="stopRefresh"></cOrderList>
		</van-tab>
		<van-tab title="已完成" wx:if="{{orderType != 'lease_toy'}}">
				<cOrderList bindConfrimOrderNotification="cofirmOrderAction" order-type="{{orderType}}" detail-url="{{detailUrl}}" datasource="{{waitCompleteList}}" status="{{4}}" bindstoprefresh="stopRefresh"></cOrderList>
		</van-tab> -->
</van-tabs>
<view class="contes" wx:if="{{selected==1&&isMultiplePay && consolidated_payment}}">
	<view class="button" catchtap="toMultiplePay">合并支付</view>
</view>
<!--<shopfoot></shopfoot>-->