<wxs module="filters" src="../../../../utils/filter.wxs"></wxs>
<view>
	<!-- 广告图 -->
	<swiper class="ad-container" circular="true" autoplay="true" indicator-dots="true" interval="2500" indicator-active-color="rgba(255,255,255,.5)" wx:if="{{adList && adList.length != 0}}" style="height:{{max_sw_height}}rpx">
		<swiper-item wx:for="{{adList}}">
			<navigator url="{{item.ad_weapplink}}" style="height: 100%;" hover-class="none" open-type="reLaunch">
				<image src="{{imghost + item.ad_code}}" class="img-block" bindload="imageLoad" data-index="{{index}}" lazy-load="true" mode="widthFix"/>
			</navigator>
		</swiper-item>
	</swiper>
	
	<view class="list">	
		<block wx:for="{{list.pageData}}">
			<view class="list-item" wx:if="{{item.status == 1}}" bindtap="{{item.actLen == 0 ? 'go':'go'}}" data-url="/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo?goods_id={{item.goods_id}}&prom_type=9&group_id={{item.id}}">
				<view class="flex ai-center">
					<view class="img-container">
						<image class="img-block" src="{{imghost + item.original_img}}" data-val="{{item.original_img}}"
						data-errorimg="list.pageData[{{index}}].original_img" binderror="bind_bnerr" lazy-load="true" mode="heightFix"></image></view>
					<view class="pdl20 flex fdc jc_sb f1">
						
						<view class="ellipsis-2 name fs28" data-content="{{item.group_num}}人团">{{item.title}}</view>
						<view>
							<view class="flex ai-center">
								<text class="rmb c-red">{{filters.price(item.group_price)}}</text>
<!--								<view class="del fs22 c-a pdl10"><text class="rmb">{{item.shop_price}}</text></view>-->
							</view>
							<view class="flex jc_sb">
								<progress class="pdr20 f1 progress" percent="{{filters.percent(item.num, item.group_num)}}" activeColor="#FF6768" backgroundColor="#d0d0d0" border-radius="12" stroke-width="12" data-content="{{item.num}}人已参团"></progress>
								<view class="btn fs26 {{item.actLen == 0 ? 'gray':''}}" wx:if="{{item.actLen == 0}}">已抢光</view>
								<view class="btn fs26" wx:else>去参团</view>
							</view>
						</view>
						
					</view>
				</view>
				<view class="fs24 pdt10 c-7b">*<text class="c-red">{{item.group_num}}</text>人成团，<text class="c-red">{{item.group_win}}</text>人得商品，<text class="c-red">{{item.group_num - item.group_win}}</text>人全额退款并得<text class="c-red">惊喜礼品</text>！</view>
			</view>
		</block>
		
		
	</view>
</view>

<view class="no-more" hidden="{{!noMore}}" wx:if="{{list.pageData.length !== 0}}">—— 已经到底啦 ——</view>
<nodata nodataContainer="t-c" wx:if="{{list.pageData.length == 0}}"></nodata>
