<view class="goodslist" wx:if="{{stores.length > 0 && !is_open}}">
	<view class="component-title p" wx:if="{{!noText}}">{{text}}</view>
		<view class="store">
			<view data-items="{{items}}" catchtap="toRouter" wx:for-item="items" wx:for="{{stores}}" wx:key="index" class="{{openTemplate == '01'?'storeLis':''}}">
				<block wx:if="{{openTemplate == '01'}}">
					<view class="list">
						<view style="flex: 0 0 128rpx">
							<view class="store-img">
								<view class="a store-logo">
									<view class="span img-mask" wx:if="{{items.operating_state === 1}}"></view>
									<view class="span img-text" wx:if="{{items.operating_state === 1}}">商家休息中</view>
									<view class="img">
										<image src="{{items.thumb}}" mode='aspectFill' style="border-radius: {{items.logo_style?'0;':'50%;'}}" />
									</view>
								</view>
							</view>
							<view class="classify" wx:if="{{items.has_one_category}}">
								<view class="span" catchtap="toClassify" data-id="{{items.has_one_category.id}}">
									{{ items.has_one_category.name }}
								</view>
							</view>
							<view class="classify" wx:if="{{!items.has_one_category}}">
								<view class="span">暂无分类</view>
							</view>
						</view>
						<!--new-->
						<view class="store-intro2">
							<view class="h2">{{ items.store_name }}</view>
							<view class="score-box">
								<view class="score-left">
									<view class="iconfont icon-card_collect_b"></view>
									<view class="span">{{items.average_score}}分</view>
									<view class="span" style="margin-left:16rpx">已售{{ items.order_total }}单</view>
								</view>
								<view class="score-right" catchtap="goToAdress" data-items="{{items}}">{{ items.distance }}{{ items.distance?items.unit:'' }}   <icon class="iconfont icon-all_daohang"></icon></view>
							</view>
							<view class="dispatch-box" wx:if="{{items.address}}" style="padding:0;color:#666;">
								<block wx:if="{{items.address.city}}">{{items.address.city}}</block>
								<block wx:if="{{items.address.detailed_address}}">{{items.address.detailed_address}}</block>
							</view>
							<view class="discount-box">
								<view class="p discount-item" wx:if="{{items.has_many_coupon&&items.has_many_coupon.length > 0}}">
									<view class="span red">优惠</view>
									<view class="span" style="margin-left: 16rpx" wx:for-index="coupon_index" wx:for-item="coupon" wx:for="{{items.has_many_coupon}}" wx:key="coupon_index" wx:if="{{coupon_index <=2}}">{{ coupon.name }}</view>
								</view>
								<view class="p discount-item" wx:if="{{items.store_point.point_switch != 0 || items.store_love.award == 1}}">
									<view class="span red">赠送</view>
									<view class="span" style="margin-left: 16rpx" wx:if="{{items.store_point.point_switch == 0 ? false : true}}">{{ items.store_point.point }}</view>
									<view class="span" style="margin-left: 16rpx" wx:if="{{items.store_love.award == 1 ? true : false}}">{{ items.store_love.award_proportion }}</view>
								</view>
								<view class="p discount-item" wx:if="{{items.store_point.point_deduct_switch != 0 || items.store_love.deduction == 1}}">
									<view class="span red">{{ items.goods_show.search_class_name || "抵扣" }}</view>
									<view class="span" style="margin-left: 16rpx" wx:if="{{items.store_love.deduction == 1 ? true : false}}">{{ items.store_love.deduction_proportion }}</view>
									<view class="span {{items.goods_show && items.goods_show.store_deduction_style?'store_deduction_style':''}}" style="margin-left: 16rpx" wx:if="{{items.store_point.point_deduct_switch == 0 ? false : true}}">{{ items.store_point.max_point_deduct }}</view>
									<view class="span store_cash_back_style" style="margin-left: 16rpx" wx:if="{{items.store_point.commission_deduct && items.goods_show.store_cash_back}}">{{ items.store_point.commission_deduct }}</view>
								</view>
								<view class="p discount-item" wx:if="{{items.store_full_reduction&&items.store_full_reduction.length != 0}}">
									<view class="span red">满减</view>
									<view class="span" style="margin-left: 16rpx" wx:for-index="reduction_index" wx:for-item="reduction" wx:for="{{items.store_full_reduction}}" wx:key="reduction_index" wx:if="{{reduction_index <=2}}">{{ reduction }}</view>
								</view>
								<view class="p discount-item" wx:if="{{items.store_full_package}}">
									<view class="span red">包邮</view>
									<view class="span" style="margin-left: 16rpx">{{ items.store_full_package }}</view>
								</view>
							</view>
							<view class="dispatch-box" wx:if="{{items.dispatchs}}">
								<view class="span" wx:for="{{items.dispatchs}}" wx:for-index="dispatchidx" wx:for-item="dispatch" wx:key="dispatchidx">{{dispatch}}</view>
							</view>

						</view>
						<!--new end-->
						<view class="store-intro" wx:if="{{false}}">
							<view class="a8q ">
								<view class="h2">{{ items.store_name }}</view>
								<view class="store_honor_box">
									<view class="span store_honor_icon">距离{{ items.distance }}{{ items.unit }}</view>
								</view>
							</view>
							<view class="messageContent">
								<view class="a06 a8r">
									<view class="strong i8">
										<view class="span da">{{ items.dispatch }}</view>
									</view>
								</view>
								<view class="store_message">
									<view class="left" catchtap="goToAdress" data-items="{{items}}">
										<van-icon name="location" size="40rpx" color="#00c25e" />
									</view>
									<view class="right" catchtap="gophone" data-mobile="{{items.mobile}}">
										<van-icon name="phone" size="40rpx" color="#00c25e" />
									</view>
								</view>
							</view>
							<view class="a8v">
								<cStar score="{{items.average_score}}"></cStar>
								<view class="p a8w">
									<view class="span line_split"></view>已售{{ items.order_total }}单
								</view>
							</view>
							<view class="discount">
								<view class="p">
									<text class="span" wx:if="{{items.store_point.point_switch == 0 ? false : true}}">{{ items.store_point.point }}</text>
									<text class="span" wx:if="{{items.store_point.point_deduct_switch == 0 ? false : true}}">{{ items.store_point.max_point_deduct }}</text>
								</view>
								<view class="p">
									<text class="span" wx:if="{{items.store_love.award == 1 ? true : false}}">{{ items.store_love.award_proportion }}</text>
									<text class="span" wx:if="{{items.store_love.deduction == 1 ? true : false}}">{{ items.store_love.deduction_proportion }}</text>
								</view>
							</view>
						</view>
					</view>
					<view class="goods-box" wx:if="{{items.recommend_goods &&items.recommend_goods.length > 0}}">
						<!-- <view class="flexBox"></view> -->
						<view class="good-item" wx:for-index="i" wx:for-item="good" wx:for="{{items.recommend_goods}}" wx:key="i" catchtap="toGood" data-goods_id="{{good.goods_id}}">
							<view class="good-img">
								<image src="{{good.thumb}}" mode='aspectFill' />
							</view>
							<view class="good-title p">{{good.title}}</view>
							<view class="good-title p money" wx:if="{{!good.goods_show||good.goods_show.length<=0}}">{{language['money']}}{{good.price}}</view>
							<view class="show_price_box" wx:if="{{good.goods_show&&good.goods_show.length>0}}">
								<view class="show_price {{index % 2 == 0 ? 'red_white' : 'white_red'}}" wx:for="{{good.goods_show}}">
									{{ item.name }}:{{ item.value }}
								</view>
							</view>
						</view>
					</view>
				</block>
				<block wx:if="{{openTemplate == '02'}}">
					<storeList02 items="{{items}}"></storeList02>
				</block>
			</view>
			<view class="nomessage" wx:if="{{!show && !noText}}">
				没有更多喽~
			</view>
			<view class="nomessage" wx:if="{{show && !noText}}" catchtap="getMoreStores">
				加载更多
			</view>
		</view>
	</view>
