<!--packageH/toker/tokerMerchant/tokerMerchant.wxml-->


<block wx:if="{{!merchant}}">
		
	<view class="conten_a">
		<view class="headTop">
			<view class="user">
				<image src="{{member.avatar_image}}"></image>
				<view class="usetDetail">
					<view class="userName">{{ member.nickname }}</view>
					<view class="orderNum">订单编号：{{ order.order_sn }}</view>
				</view>
			</view>
		</view>
		<view class="shopDetail">
			<view class="shopLeft">
				<image src="{{card.thumb}}"></image>
			</view>
			<view class="shopRight">
				<view class="shopName">{{ card.title }}</view>
				<view class="shopPrice">￥{{ card.price }}</view>
			</view>
		</view>
	</view>
	<!-- 一次性消费 -->
	<view class="onece">
		<view class="title">一次性消费项</view>
		<view class="oneList" wx:if="{{info.once_write_off == '0'}}">
			<view class="shopDetail" wx:for="{{info.member_once}}" wx:key="index">
				<view class="checkedBox">
					<van-checkbox value="{{once_form}}" shape="square" bind:change="onceChange" icon-size="14px" wx:if="{{index==0}}"></van-checkbox>
				</view>
				
				<view class="shopLeft">
					<image src="{{item.full_img_url}}" ></image>
				</view>
				<view class="shopRight">
					<view class="shopName">{{item.name}}</view>
					<view class="bottom">
						<view class="shopPrice">数量:{{item.quantity}}</view>
						<view class="status">未使用</view>
					</view>
				</view>
			</view>
		</view>
		<view class="already" wx:elif="{{info.once_write_off==1}}">套餐已核销</view>
	</view>
	<!-- 多次消费 -->
	<view class="repeatedly">
		<view class="title">多次性消费项</view>
		<view class="repShop" wx:if="{{info.member_many}}">
			<view class="shoplis" wx:for="{{info.member_many}}" wx:key="index" wx:if="{{item.status!=1}}">
				<view class="lisTop">
					<view class="checkedBox">
						<van-checkbox value="{{ item.checked }}" bind:change="manyChange" data-item="{{item}}" data-index="{{index}}" shape="square" icon-size="14px"></van-checkbox>
					</view>
					<view class="shopLeft">
						<image src="{{item.full_img_url}}"></image>
					</view>
					<view class="shopRight">
						<view class="shopName">{{item.name}}</view>
						<view class="bottom">
							<view class="shopNum">数量：{{item.quantity}}</view>
							<view class="status">未使用：{{item.rest_num}}</view>
							<view class="status">已使用：{{item.quantity - item.rest_num}}</view>
						</view>
					</view>
				</view>
				<view class="lisBottom">
					<van-stepper plus-class="vanStepperPlus" input-class="vanStepperInput" minus-class="vanStepperMinus" value="{{item.num}}" theme="round" button-size="22" data-index="{{index}}" data-item="{{item}}" disable-input bind:change="stepChange" />
				</view>
				<view class="line"></view>
			</view>
		</view>
		<view class="already" wx:else>套餐已核销</view>
	</view>
	<!-- 确认核销按钮 -->
	<view class="fiexdP">
		<view class="btn" bindtap="submit">确认核销</view>
	</view>

</block>

<view class="box"  wx:if="{{merchant}}">
	<icon class="iconfont icon-pm_auction_success"></icon>
	<text class="boxspan" bindtap="submit">核销成功!</text>
</view>