<!--packageD/auction/auction-mine/my_auction/my_auction.wxml-->

<van-tabs active="{{active}}" bind:change="itemClick">
	<van-tab title="待开拍"></van-tab>
	<van-tab title="竞拍中"></van-tab>
	<van-tab title="已结束"></van-tab>
	<van-tab title="待确认"></van-tab>
	<van-tab title="已拍下"></van-tab>
</van-tabs>
<view class="content" wx:if="{{active == '0' || active == '1'}}">
	<block wx:for="{{datas}}" wx:key="index" >
		<view class="list" catchtap='goxiangq' data-goodid="{{item}}">
			<view class="image">
				<image src="{{item.goods.thumb}}"></image>
			</view>
			<view class="rights">
				<view class="title">{{item.goods.title}}</view>
				<view class="bottom">
					<view class="cash" style="display: flex;color: red;">
						<view class="span">当前价:￥</view>
						<view class="span">{{item.auction_goods_record.price}}</view>
					</view>
					<view class="time" style="color: #999999;">
						<view class="span">{{item.auction_goods_record.end_shooting}}结束</view>
					</view>
				</view>
			</view>
		</view>
	</block>
</view>
<view class="content" wx:if="{{active == '2'}}">
	<block wx:for="{{datas}}" wx:key="index">
		<van-swipe-cell right-width="{{ 50 }}" left-width="{{ 0 }}">
			<view class="list">
				<view class="image">
					<!-- <img src="../../../assets/images/02.png"> -->
					<image src="{{item.goods.thumb}}"></image>
				</view>
				<view class="rights">
					<view class="title">{{item.goods.title}}</view>
					<view class="bottom">
						<view class="cash">
							<view class="span">当前价￥</view>
							<view class="span">{{item.auction_goods_record.price}}</view>
						</view>
						<view class="time">
							<view class="span">{{item.auction_goods_record.end_shooting}}结束</view>
						</view>
					</view>
				</view>
			</view>
			<view slot="right" class="right_box">删除</view>
		</van-swipe-cell>
	</block>
</view>
<view class="content" wx:if="{{active == '3'}}">
	<block wx:for="{{datas}}" wx:key="index">
		<view class="list" catchtap='goxiangq' data-goodid="{{item}}">
			<view class="image">
				<image src="{{item.goods.thumb}}"></image>
			</view>
			<view class="rights">
				<view class="title">{{item.goods.title}}</view>
				<view class="newbox">
					<view class="bottom">
						<view class="cash" style="display: flex;color: red;">
							<view class="span">当前价:￥</view>
							<view class="span">{{item.auction_goods_record.price}}</view>
						</view>
						<view class="time" style="color: #999999;">
							<view class="span">{{item.auction_goods_record.end_shooting}}结束</view>
						</view>
					</view>
					<view class="btnbox" catchtap="toBuy" data-item="{{item}}">
						确认下单
					</view>
				</view>

			</view>
		</view>
	</block>
</view>