<!--packageE/community_buying/group_buying/group_buying.wxml-->



<van-tabs active="{{ active }}" bind:change="changeTags">

	<van-tab title="全部活动"></van-tab>
	<van-tab title="进行中"></van-tab>
	<van-tab title="未开始"></van-tab>
	<van-tab title="已结束"></van-tab>
	
</van-tabs>

<view class="listItem">
	<view class="item" wx:for="{{listData}}" wx:key="id" bindtap="gotoBuyingDetails" data-id="{{item.id}}">
		<view class="info">
			<view class="title">{{item.title}}</view>
			<view class="time" wx:if="{{item.group_status==0}}">{{item.start_time}}开始</view>
			<view class="time" wx:if="{{item.group_status==1}}">{{item.end_time}}结束</view>
		</view>
		<view class="content">
			<view class="images">
				<image wx:for="{{item.goods}}" wx:if="{{index<3}}" wx:for-item="good" wx:key="id" src="{{good.goodThumb}}"></image>
				
			</view>
			<view class="total">共  <text class="num">{{item.goodsCount}}</text>件商品</view>
		</view>
		<view class="btns">
			<view class="btn order" data-id="{{item.id}}" catchtap="gotoBuyingOrderId" >订单</view>
			<view class="btn share" data-item="{{item}}" catchtap="openShareShow" wx:if="{{item.group_status!=2}}">分享</view>
		</view>
		<view wx:if="{{item.group_status!=0}}" class="{{item.group_status==2 ? 'status_gray' : ''}} status">{{item.status_name}}</view>
	</view>

	<!-- <view class="item">
		<view class="info">
			<view class="title">北欧抱枕靠垫沙发办公室腰靠可爱公仔可哈哈哈哈</view>
			<view class="time">11.15 00:00:00 开始</view>
		</view>
		<view class="content">
			<view class="images">
				<image src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1607598147987&di=ef5f8afa989b40c93bdd15e125e1c8f5&imgtype=0&src=http%3A%2F%2Fp7.itc.cn%2Fq_70%2Fimages03%2F20201125%2F76daeea320f64ea4baf3dfd68a44ee3f.jpeg"></image>
				<image src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1607598147987&di=ef5f8afa989b40c93bdd15e125e1c8f5&imgtype=0&src=http%3A%2F%2Fp7.itc.cn%2Fq_70%2Fimages03%2F20201125%2F76daeea320f64ea4baf3dfd68a44ee3f.jpeg"></image>
				<image src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1607598147987&di=ef5f8afa989b40c93bdd15e125e1c8f5&imgtype=0&src=http%3A%2F%2Fp7.itc.cn%2Fq_70%2Fimages03%2F20201125%2F76daeea320f64ea4baf3dfd68a44ee3f.jpeg"></image>
			</view>
			<view class="total">共3件商品</view>
		</view>
		<view class="btns">
			<view class="btn order">订单</view>
			<view class="btn share">分享</view>
		</view>
		
	</view>

	<view class="item">
		<view class="info">
			<view class="title">北欧抱枕靠垫沙发办公室腰靠可爱公仔可哈哈哈哈</view>
			<view class="time">11.15 00:00:00 结束</view>
		</view>
		<view class="content">
			<view class="images">
				<image src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1607598147987&di=ef5f8afa989b40c93bdd15e125e1c8f5&imgtype=0&src=http%3A%2F%2Fp7.itc.cn%2Fq_70%2Fimages03%2F20201125%2F76daeea320f64ea4baf3dfd68a44ee3f.jpeg"></image>
				<image src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1607598147987&di=ef5f8afa989b40c93bdd15e125e1c8f5&imgtype=0&src=http%3A%2F%2Fp7.itc.cn%2Fq_70%2Fimages03%2F20201125%2F76daeea320f64ea4baf3dfd68a44ee3f.jpeg"></image>
				<image src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1607598147987&di=ef5f8afa989b40c93bdd15e125e1c8f5&imgtype=0&src=http%3A%2F%2Fp7.itc.cn%2Fq_70%2Fimages03%2F20201125%2F76daeea320f64ea4baf3dfd68a44ee3f.jpeg"></image>
			</view>
			<view class="total">共3件商品</view>
		</view>
		<view class="btns">
			<view class="btn order">订单</view>
			<view class="btn share">分享</view>
		</view>
		<view class="status status_gray">进行中</view>
	</view> -->

</view>
<view class="loading" wx:if="{{listData.length<=0}}">
	<view class="content">
		<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png" mode='widthFix' />
	</view>
</view>


<van-share-sheet show="{{ shareShow }}" bind:select="onSelectShare" options="{{ shareOptions }}" bind:close="onCloseShare" />
<buying-qrcode isshow="{{posterShow}}" buyingid="{{openShareId}}" deliverid="{{deliver_id}}" ></buying-qrcode>

<view class="bottomContainer">
	<view class="seat"></view>
	<view class="wrapper">
		<view class="item">
			<text style="color:#f14e4e;" class="iconfont icon-fontclass-huodong"></text>
			<text style="color:#f14e4e;" class="name">团购活动</text>
		</view>
		<view class="item" bindtap="gotoBuyingOrder">
			<text class="iconfont icon-fontclass-dingdanguanli"></text>
			<text class="name">订单管理</text>
		</view>
		<view class="item" bindtap="gotoIndex">
			<text class="iconfont icon-fontclass-wode"></text>
			<text class="name">我的</text>
		</view>
	</view>
</view>