<block wx:if="{{object}}">
	<view class="bg_view" style="background-color:{{object.bg_color}};">
	<advertising object="{{object}}"></advertising>	
		<!-- 列表 -->
		<block wx:if="{{object.column=='4'}}">
			
	    	<view class="{{object.noboder!=1?'b-bottom':''}}" wx:for="{{list.pageData}}"  style="padding: 10rpx 20rpx;"
			    bindtap="go_goods" data-gid="{{item.id}}">	
				
				<view class="flex  bg-white ">		
				<view>
					<image class="image" src="{{imghost}}{{item.imgUrl && item.imgUrl!=''?item.imgUrl:'/miniapp/images/default_g_img.gif'}}"
					   lazy-load="true" binderror="bind_bnerr" data-errorimg="list.pageData[{{index}}].imgUrl"  
					   />
				</view>
				<view class="flex fdc space-bt f1 pdl20">
					<view>
						<view class="pdv20 fs28"><text class="ellipsis-2">{{item.serviceName}}</text></view>
						<view class="fs24 c7b">有效天数：{{item.validDays &&  item.validDays!='0'?item.validDays:'不限'}}</view>
					</view>
					<view class="flex space-bt ali-c">
						<view class="price">{{item.money}}</view>
					</view>
					<view style="height: 10rpx;"></view>
				</view>
				</view>	
			</view>
			
		</block>		
		<!-- 一列和俩列 -->	
		<block wx:else>	
		    <view class="pd20 flex-set" style="background-color: {{object.bg_color}};">
				<!-- 1列 2列 -->
				<view wx:for="{{list.pageData}}" class="{{object.column=='1'?'w100':'w50'}} {{index%2==1?'ml':''}} bg-white" 
				    bindtap="go_goods" data-gid="{{item.id}}"
				    style="margin-bottom: 20rpx;">
					<view style="width: 100%;">
						<image style="width: 100%;"  lazy-load="true" binderror="bind_bnerr" data-errorimg="list.pageData[{{index}}].imgUrl"  
					     src="{{imghost}}{{item.imgUrl && item.imgUrl!=''?item.imgUrl:'/miniapp/images/default_g_img.gif'}}" mode="aspectFill"/></view>
					<view class="flex fdc space-bt f1 pdl20">
						<view>
							<view class="pdv20 fs28"><text class="ellipsis-2">{{item.serviceName}}</text></view>
							<view class="fs24 c7b">有效天数：{{item.validDays  && item.validDays!='0'?item.validDays:'不限'}}</view>
						</view>
						<view class="flex space-bt ali-c">
							<view class="price">{{item.money}}</view>
						</view>
						<view style="height: 10rpx;"></view>
					</view>
				</view>	
			</view>
		</block>				
	
	<nodata class="t-c" wx:if="{{list.pageData.length == 0  && list.pageData}}"></nodata>
	<view class="noMore" hidden="{{!noMore}}" wx:if="{{list.pageData.length !== 0}}">- 已经到底了 -</view>
	</view>
</block>

<block wx:else>
<view class="page">

	<block wx:if="{{banner && banner.length}}">
		<swiper class="swiper" autoplay indicator-dots circular easing-function="easeOutCubic">
			<swiper-item wx:for="{{banner}}"><image src="{{item.ad_code ? item.ad_code : (imghost + default_img)}}" class="swiper-img"/></swiper-item>
		</swiper>
	</block>

	<scroll-view class="scroll-view" scroll-y>
		<view class="bg-white">
			<view class="flex pd20" wx:for="{{list.pageData}}" bindtap="go_goods" data-gid="{{item.id}}">
				<view>
					<image class="image" 
					 lazy-load="true" binderror="bind_bnerr" data-errorimg="list.pageData[{{index}}].imgUrl"  
					 src="{{imghost}}{{item.imgUrl && item.imgUrl!=''?item.imgUrl:'/miniapp/images/default_g_img.gif'}}"
					/>
				</view>
				<view class="flex fdc space-bt f1 pdl20">
					<view>
						<view class="pdv20 fs28"><text class="ellipsis-2">{{item.serviceName}}</text></view>
						<view class="fs24 c7b">有效天数：{{item.validDays && item.validDays!='0'?item.validDays:'不限'}}</view>
					</view>
					<view class="flex space-bt ali-c">
						<view class="price">{{item.money}}</view>
						<view class="btn-details" >卡项详情</view>
					</view>
				</view>
			</view>
			
			<nodata class="t-c" wx:if="{{list.pageData.length == 0 || list == null}}"></nodata>
		</view>

		<view class="noMore" hidden="{{!noMore}}" wx:if="{{list.pageData.length !== 0}}">- 已经到底了 -</view>
	</scroll-view>
</view>
</block>
<nav_box id="nav_box"></nav_box>