<!--pages/diy_zs/diy_zs.wxml-->
<wxs module="filter" src="../../utils/filter.wxs"></wxs>
<wxs module="g_filter" src="g_filter.wxs"></wxs>

<!-- 要不要顶部标题 -->
<!-- <block wx:if="{{is_nav}}">
	 <view class="flex gr_title_list" style="overflow-x: auto;">
		  <view class="gr_title_item" wx:for="{{nav_list}}" data-index="{{index}}" bindtap="gr_set_nav" data-idlist="{{item.idlist}}" data-wgroup="{{item.wgroup}}" data-classstyle="{{item.classstyle}}" >
			 <text class="{{index==title_index?'t_red':''}}" style="{{title_class}}">{{item.title}}</text>
		  </view>
	 </view>
</block> -->
<view id="container">
	
	<mp-sticky wx:if="{{sticky == 1}}" container="{{container}}">
		<scroll-view scroll-x="true" enhanced="true" fast-deceleration="true" show-scrollbar="false" wx:if="{{is_nav}}">
			<view class="flex" style="{{myStyle}};">
				<view
				wx:for="{{nav_list}}"
				data-index="{{index}}"
				data-idlist="{{item.idlist}}"
				data-wgroup="{{item.wgroup}}"
				data-classstyle="{{item.classstyle}}"
				bindtap="gr_set_nav"
				class="scroll-view-item {{index == title_index ? 'active':''}}"
				style="{{title_class}}">{{item.title}}</view>
			</view>
		</scroll-view>
	</mp-sticky>
	
	<block wx:else>
		<scroll-view scroll-x="true" enhanced="true" fast-deceleration="true" show-scrollbar="false" wx:if="{{is_nav}}">
			<view class="flex" style="{{myStyle}};">
				<view
				wx:for="{{nav_list}}"
				data-index="{{index}}"
				data-idlist="{{item.idlist}}"
				data-wgroup="{{item.wgroup}}"
				data-classstyle="{{item.classstyle}}"
				bindtap="gr_set_nav"
				class="scroll-view-item {{index == title_index ? 'active':''}}"
				style="{{title_class}}">{{item.title}}</view>
			</view>
		</scroll-view>
	</block>
	
	
	
	
	<!--1个列表的时候-->
	<view class="zs_goods_wai" wx:if='{{object.column==1}}'>
	       <block wx:for="{{goods_array}}">
	            <view class='zs_goods {{g_filter.get_border_type(object.big_order_type)}}'>
								<!-- <navigator url="{{g_filter.get_url_by_type(item)}}" class="s1_gk_a1"> -->
	                <navigator catchtap="go_goods"  data-gid="{{item.goods_id}}" class="s1_gk_a1">
	                    <view class='zs_top rel'>
	
	                        <block wx:if="{{object.big_order_type==3}}">
	                            <view style="position: relative; width: 100%; height: 100%">
	                                <image class='zs_t_img' src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true" binderror="bind_bnerr3"></image>
	                                <image class="n_box"  style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%"  src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true"  binderror="bind_bnerr3"></image>
	                            </view>
	                        </block>
	                        <block wx:else>
	                            <image class='zs_t_img' src="{{item.goods_img}}"  data-errorimg="goods_array[{{index}}].goods_img"
	                                   binderror="bind_bnerr3" lazy-load="true" ></image>
	                        </block>
	
	                        <block wx:if="{{object.goodicon==3}}">
	                            <image class='{{g_filter.get_class(object.column,object.position)}}' src='{{object.customicon}}'></image>
	                        </block>
	                        <block wx:if="{{object.goodicon==1}}">
	                            <image class='{{g_filter.get_class(object.column,object.position)}}' src=''></image>
	                        </block>
	                        <block wx:if="{{object.goodicon==2}}">
	                            <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}"
	                                   src='{{imghost}}/miniapp/images/Recommend.png'></image>
	                            <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2}}"
	                                   src='{{imghost}}/miniapp/images/hot.png'></image>
	                            <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}"
	                                   src='{{imghost}}/miniapp/images/new.png'></image>
	                            <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4}}"
	                                   src='{{imghost}}/miniapp/images/Promotion.png'></image>
	                        </block>
	                    </view>
	                    <view class='zs_center'>
													<!-- <view class='zs_wz1' wx:if="{{object.goodstit}}">{{item.goods_name}}</view> -->
	                        <view class='zs_wz1'>{{item.goods_name}}</view>
	                        <!--如果有显示价格 -->
	                        <view class='zs_wz2' wx:if="{{object.goodsprice}}">
	                             <block wx:if="{{item.prom_price || item.prom_integral}}">
	                                  <view class='wz_red'>									  
										  <text wx:if="{{item.prom_integral}}">{{item.prom_integral}}积分</text>
										  <text wx:if="{{item.prom_integral && item.prom_price}}">+</text>
										  <text wx:if="{{item.prom_price}}">￥{{item.prom_price}}</text>										 
									  </view>
	                                  <view class='del ~no_line_x'>￥{{item.market_price}}</view>
	                             </block>
	                             <block wx:else>
	
	                                 <block wx:if="{{g_filter.is_has_rank(rank_switch,item)}}" >
	                                     <!-- 当会员是等级卡的时候 -->
	                                     <block wx:if="{{card_field}}">
	                                          <!-- 等级价>0 -->
	                                          <block wx:if="{{item[card_field]>0}}">
	                                             <view class="money flex ai_and">
	                                                 <!-- 办卡价 -->
	                                                 <view class="flex xc-wc ai_and">
	                                                     <view class="fs24 wz_red">￥</view>
	                                                     <view class="fs35 wz_red">{{filter.toFix(item[card_field],2)}}</view>
	                                                     <view class="card_bg ellipsis-1">
																												 <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>
																												 <text class="card_name">{{card_name}}</text>
																											 </view>
	                                                 </view>
	                                             </view>
	                                             <view class="flex" style="line-height: 28rpx;" >
	                                                 <!-- 原价 -->
	                                                 <view class="price flex xc-ash line_th">
	                                                     <view class="fs22">￥</view>
	                                                     <view class="fs22 ~no_line_x">{{item.market_price}}</view>
	                                                 </view>
	                                             </view>
	                                         </block>
	                                          <blocK wx:else>
	                                             <view class="money flex" >
	                                                 <!-- 办卡价 -->
	                                                 <view class="flex xc-wc">
	                                                     <view class="fs24 wz_red">￥</view>
	                                                     <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view>
	                                                 </view>
	                                             </view>
	                                             <view class="flex" style="line-height: 28rpx;" >
	                                                 <!-- 原价 -->
	                                                 <view class="price flex xc-ash line_th ~no_line_x">
	                                                     <view class="fs22">￥</view>
	                                                     <view class="fs22">{{item.market_price}}</view>
	                                                 </view>
	                                             </view>
	                                         </blocK>
	                                     </block>
	                                     <block wx:else>
	                                          <!-- 如果商品有设置等级价大于0的 -->
	                                          <block wx:if="{{g_filter.get_card_price(item,card_list,0)}}">
	                                             <view class="money flex" >
	                                                 <!-- 办卡价 -->
	                                                 <view class="flex xc-wc">
	                                                     <view class="fs24 wz_red">￥</view>
	                                                     <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view>
	                                                 </view>
	                                                 <!-- 原价 -->
	                                                 <view class="price flex xc-ash line_th ~no_line_x">
	                                                     <view class="fs22">￥</view>
	                                                     <view class="fs22">{{item.market_price}}</view>
	                                                 </view>
	
	                                             </view>
	                                             <view class="flex" style="line-height: 28rpx;" >
	                                                 <!-- 等级价 -->
	                                                 <view class="price flex ai_and">
	                                                     <view class="fs22">￥</view>
	                                                     <view class="fs28">{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}</view>
	                                                     <view class="card_bg ellipsis-1">
																												 <image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>
																												 <text class="card_name">{{g_filter.get_card_price(item,card_list,1)}}</text>
																											</view>
	                                                 </view>
	                                             </view>
	                                         </block>
	                                          <block wx:else>
	                                             <view class="money flex" >
	                                                 <!-- 办卡价 -->
	                                                 <view class="flex xc-wc">
	                                                     <view class="fs24 wz_red">￥</view>
	                                                     <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view>
	                                                 </view>
	                                             </view>
	                                             <view class="flex" style="line-height: 28rpx;" >
	                                                 <!-- 原价 -->
	                                                 <view class="price flex xc-ash line_th ~no_line_x">
	                                                     <view class="fs22">￥</view>
	                                                     <view class="fs22">{{item.market_price}}</view>
	                                                 </view>
	                                             </view>
	                                         </block>
	                                     </block>
	                                 </block>
	
	                                 <block wx:else>
	                                    <view class='wz_red'>￥{{item.shop_price}}</view>
	                                    <view class='del ~no_line_x'>￥{{item.market_price}}</view>
	                                 </block>
	
	                             </block>      
	
	                        </view>
	                        <view class='zs_wz4 c-5' wx:if="{{object.goodsnum}}">销量：{{item.sales_sum}}件</view>
	                        <!-- <view style="height: 10rpx;"></view>  -->
	                    </view>
	                </navigator>
	             </view>
	              <!-- <view style="height:20rpx"></view> -->
	        </block>
	 
	</view>
	<!--2个一列-->
	<view class="flex flex-wrap" wx:if="{{object.column==2}}" style="padding: 0 10rpx 20rpx 10rpx;">
	  <block wx:for="{{goods_array}}" >
			<view class="nav-container">
				<navigator catchtap="go_goods"  data-gid="{{item.goods_id}}" class="s1_gk_a1 {{g_filter.get_border_type(object.big_order_type)}}">
				    <view class="zs_goods_wai_ban">
				        <!-- <view class="zs_goods_ban"> -->
				            <!-- <view class='zs_goods_2l'> -->
				                <view class='zs_top_2l rel'>
				
				                    <block wx:if="{{object.big_order_type==3}}">
				                        <view style="position: relative; width: 100%; height: 100%">
				                            <image class='zs_t_img_2l' src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true"
				                                   binderror="bind_bnerr3"></image>
				                            <image class="n_box"  style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%"  src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true"
				                                   binderror="bind_bnerr3"></image>
				                        </view>
				                    </block>
				                    <block wx:else>
				                      <image class='zs_t_img_2l' src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true"
				                               binderror="bind_bnerr3"></image>
				                    </block>
				
				                    <block wx:if="{{object.goodicon==3}}">
				                        <image class='{{g_filter.get_class(object.column,object.position)}}'
				                               src='{{object.customicon}}'></image>
				                    </block>
				                    <block wx:if="{{object.goodicon==1}}">
				                        <image class='{{g_filter.get_class(object.column,object.position)}}' src=''></image>
				                    </block>
				                    <block wx:if="{{object.goodicon==2}}">
				                        <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}"
				                               src='{{imghost}}/miniapp/images/Recommend.png'></image>
				                        <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2 }}"
				                               src='{{imghost}}/miniapp/images/hot.png'></image>
				                        <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}"
				                               src='{{imghost}}/miniapp/images/new.png'></image>
				                        <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4 }}"
				                               src='{{imghost}}/miniapp/images/Promotion.png'></image>
				                    </block>
				                </view>
				
				                <view class='zs_center_2l'>
				                    <view class='zs_wz1_2l ellipsis-2' wx:if="{{object.goodstit}}">{{item.goods_name}}</view>
				                    <view class='zs_wz2_2l' wx:if="{{object.goodsprice}}">
				
				                        <block wx:if="{{item.prom_price || item.prom_integral}}">
				                            <view class='wz_red'>
										   <text wx:if="{{item.prom_integral}}">{{item.prom_integral}}积分</text>
										   <text wx:if="{{item.prom_integral && item.prom_price}}">+</text>
										   <text wx:if="{{item.prom_price}}">￥{{item.prom_price}}</text>	
										</view>
				                            <view class='del ~no_line_x'>￥{{item.market_price}}</view>
				                        </block>
				                        <block wx:else>
				                            <block wx:if="{{g_filter.is_has_rank(rank_switch,item)}}" >
				                                <!-- 当会员是等级卡的时候 -->
				                                <block wx:if="{{card_field}}">
				                                    <!-- 等级价>0 -->
				                                    <block wx:if="{{item[card_field]>0}}">
				                                        <view class="money flex" >
				                                            <!-- 办卡价 -->
				                                            <view class="flex xc-wc ai_and">
				                                                <view class="fs24 wz_red">￥</view>
				                                                <view class="fs35 wz_red">{{filter.toFix(item[card_field],2)}}</view>
				                                                <view class="card_bg ellipsis-1">
																													<image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>
																													<view class="card_name">{{card_name}}</view>
																												</view>
				                                            </view>
				                                        </view>
				                                        <view class="flex" style="line-height: 28rpx;" >
				                                            <!-- 原价 -->
				                                            <view class="price flex xc-ash line_th ~no_line_x">
				                                                <view class="fs22">￥</view>
				                                                <view class="fs22">{{item.market_price}}</view>
				                                            </view>
				                                        </view>
				                                    </block>
				                                    <blocK wx:else>
				                                        <view class="money flex" >
				                                            <!-- 办卡价 -->
				                                            <view class="flex xc-wc">
				                                                <view class="fs24 wz_red">￥</view>
				                                                <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view>
				                                            </view>
				                                        </view>
				                                        <view class="flex" style="line-height: 28rpx;" >
				                                            <!-- 原价 -->
				                                            <view class="price flex xc-ash line_th ~no_line_x">
				                                                <view class="fs22">￥</view>
				                                                <view class="fs22">{{item.market_price}}</view>
				                                            </view>
				                                        </view>
				                                    </blocK>
				                                </block>
				                                <block wx:else>
				                                    <!-- 如果商品有设置等级价大于0的 -->
				                                    <block wx:if="{{g_filter.get_card_price(item,card_list,0)}}">
				                                        <view class="money flex" >
				                                            <!-- 办卡价 -->
				                                            <view class="flex xc-wc">
				                                                <view class="fs24 wz_red">￥</view>
				                                                <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view>
				                                            </view>
				                                            <!-- 原价 -->
				                                            <view class="price flex xc-ash line_th ~no_line_x">
				                                                <view class="fs22">￥</view>
				                                                <view class="fs22">{{item.market_price}}</view>
				                                            </view>
				
				                                        </view>
				                                        <view class="flex" style="line-height: 28rpx;" >
				                                            <!-- 等级价 -->
				                                            <view class="price flex ai_and">
				                                                <view class="fs22">￥</view>
				                                                <view class="fs28">{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}</view>
				                                                <view class="card_bg ellipsis-1">
																													<image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>
																													<text class="card_name">{{g_filter.get_card_price(item,card_list,1)}}</text>
																												</view>
				                                            </view>
				                                        </view>
				                                    </block>
				                                    <block wx:else>
				                                        <view class="money flex" >
				                                            <!-- 办卡价 -->
				                                            <view class="flex xc-wc">
				                                                <view class="fs24 wz_red">￥</view>
				                                                <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view>
				                                            </view>
				                                        </view>
				                                        <view class="flex" style="line-height: 28rpx;" >
				                                            <!-- 原价 -->
				                                            <view class="price flex xc-ash line_th ~no_line_x">
				                                                <view class="fs22">￥</view>
				                                                <view class="fs22">{{item.market_price}}</view>
				                                            </view>
				                                        </view>
				                                    </block>
				                                </block>
				                            </block>
				                            <block wx:else>
				                               <view class='wz_red'>￥{{item.shop_price}}</view>
				                               <view class='del ~no_line_x'>￥{{item.market_price}}</view>
				                            </block>
				                        </block>
				                    </view>
				                    <view class='zs_wz5_2l c-5' wx:if="{{object.goodsnum}}">销量：{{item.sales_sum}}件</view>
								<!-- <view style="height: 10rpx;"></view> -->
				                </view>
				            <!-- </view> -->
				        <!-- </view> -->
				
				    </view>
				</navigator>
			</view>
	    
	</block>
	  <!-- <view class="clear"></view> -->
	</view>
	<!--3个一列-->
	<block wx:if='{{object.column==3}}'>
	   <view class="flex wrap pdh10">
	    <block wx:for="{{goods_array}}" >
				<view class="nav-box">
					<navigator catchtap="go_goods"  data-gid="{{item.goods_id}}" class="s1_gk_a1">
					    <view class="zs_goods_wai_san {{g_filter.get_border_type(object.big_order_type)}}" >
					        <view class="zs_goods_san">
					            <view class='zs_goods_3l'>
					                <view class='zs_top_3l rel'>
					                    <block wx:if="{{object.big_order_type==3}}">
					                        <view style="position: relative; width: 100%; height: 100%">
					                            <image class='zs_t_img_3l' src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true"
					                                   binderror="bind_bnerr3"></image>
					                            <image class="n_box"  style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%"  src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true"
					                                   binderror="bind_bnerr3"></image>
					                        </view>
					                    </block>
					                    <block wx:else>
					                        <image class='zs_t_img_3l' src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true"
					                               binderror="bind_bnerr3"></image>
					                    </block>
					
					                    <block wx:if="{{object.goodicon==3}}">
					                        <image class='{{g_filter.get_class(object.column,object.position)}}'
					                               src='{{object.customicon}}'></image>
					                    </block>
					                    <block wx:if="{{object.goodicon==1}}">
					                        <image class='{{g_filter.get_class(object.column,object.position)}}' src=''></image>
					                    </block>
					                    <block wx:if="{{object.goodicon==2}}">
					                        <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}"
					                               src='{{imghost}}/miniapp/images/Recommend.png'></image>
					                        <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2 }}"
					                               src='{{imghost}}/miniapp/images/hot.png'></image>
					                        <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}"
					                               src='{{imghost}}/miniapp/images/new.png'></image>
					                        <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4 }}"
					                               src='{{imghost}}/miniapp/images/Promotion.png'></image>
					                    </block>
					                </view>
					                <view class='zs_center_3l'>
					
					
					                    <view class='zs_wz1_3l' wx:if="{{object.goodstit}}">{{item.goods_name}}</view>
					                    <view class='zs_wz2_3l' wx:if="{{object.goodsprice}}">
					                        <block wx:if="{{item.prom_price || item.prom_integral}}">
					                            <view class='wz_red'>
										    <text wx:if="{{item.prom_integral}}">{{item.prom_integral}}积分</text>
										    <text wx:if="{{item.prom_integral && item.prom_price}}">+</text>
										    <text wx:if="{{item.prom_price}}">￥{{item.prom_price}}</text>	
										</view>
					                            <view class='del ~no_line_x'>￥{{item.market_price}}</view>
					                        </block>
					                        <block wx:else>
					                            <block wx:if="{{g_filter.is_has_rank(rank_switch,item)}}" >
					                                <!-- 当会员是等级卡的时候 -->
					                                <block wx:if="{{card_field}}">
					                                    <!-- 等级价>0 -->
					                                    <block wx:if="{{item[card_field]>0}}">
					                                        <view class="money flex" >
					                                            <!-- 办卡价 -->
					                                            <view class="flex xc-wc ai_and">
					                                                <view class="fs24 wz_red">￥</view>
					                                                <view class="fs35 wz_red">{{filter.toFix(item[card_field],2)}}</view>
					                                                <view class="card_bg ellipsis-1">
																														<image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>
																														<text class="card_name">{{card_name}}</text>
																													</view>
					                                            </view>
					                                        </view>
					                                        <view class="flex" style="line-height: 28rpx;" >
					                                            <!-- 原价 -->
					                                            <view class="price flex xc-ash line_th ~no_line_x">
					                                                <view class="fs22">￥</view>
					                                                <view class="fs22">{{item.market_price}}</view>
					                                            </view>
					                                        </view>
					                                    </block>
					                                    <blocK wx:else>
					                                        <view class="money flex" >
					                                            <!-- 办卡价 -->
					                                            <view class="flex xc-wc">
					                                                <view class="fs24 wz_red">￥</view>
					                                                <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view>
					                                            </view>
					                                        </view>
					                                        <view class="flex" style="line-height: 28rpx;" >
					                                            <!-- 原价 -->
					                                            <view class="price flex xc-ash line_th ~no_line_x">
					                                                <view class="fs22">￥</view>
					                                                <view class="fs22">{{item.market_price}}</view>
					                                            </view>
					                                        </view>
					                                    </blocK>
					                                </block>
					                                <block wx:else>
					                                    <!-- 如果商品有设置等级价大于0的 -->
					                                    <block wx:if="{{g_filter.get_card_price(item,card_list,0)}}">
					                                        <view class="money flex" >
					                                            <!-- 办卡价 -->
					                                            <view class="flex xc-wc">
					                                                <view class="fs24 wz_red">￥</view>
					                                                <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view>
					                                            </view>
					                                            <!-- 原价 -->
					                                            <view class="price flex xc-ash line_th ~no_line_x">
					                                                <view class="fs22">￥</view>
					                                                <view class="fs22">{{item.market_price}}</view>
					                                            </view>
					
					                                        </view>
					                                        <view class="flex" style="line-height: 28rpx;" >
					                                            <!-- 等级价 -->
					                                            <view class="price flex ai_and">
					                                                <view class="fs22">￥</view>
					                                                <view class="fs28">{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}</view>
					                                                <view class="card_bg ellipsis-1">
																														<image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>
																														<text class="card_name">{{g_filter.get_card_price(item,card_list,1)}}</text>
																													</view>
					                                            </view>
					                                        </view>
					                                    </block>
					                                    <block wx:else>
					                                        <view class="money flex" >
					                                            <!-- 办卡价 -->
					                                            <view class="flex xc-wc">
					                                                <view class="fs24 wz_red">￥</view>
					                                                <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view>
					                                            </view>
					                                        </view>
					                                        <view class="flex" style="line-height: 28rpx;" >
					                                            <!-- 原价 -->
					                                            <view class="price flex xc-ash line_th ~no_line_x">
					                                                <view class="fs22">￥</view>
					                                                <view class="fs22">{{item.market_price}}</view>
					                                            </view>
					                                        </view>
					                                    </block>
					                                </block>
					                            </block>
					                            <block wx:else>
					                              <view class='wz_red'>￥{{item.shop_price}}</view>
					                              <view class='del ~no_line_x'>￥{{item.market_price}}</view>
					                            </block>
					                        </block>
					                    </view>
					                    <view class='zs_wz5_3l c-5' wx:if="{{object.goodsnum}}">销量：{{item.sales_sum}}件</view>
								<!-- <view style="height: 10rpx;"></view> -->
					                </view>
					            </view>
					        </view>
					    </view>
					</navigator>
				</view>
	        
	    </block>
	</view>
	   <!-- <view class="clear"></view> -->
	</block>
	<!-- 列表显示 -->
	<view class="zs_goods_xiao_wai" wx:if='{{object.column==4}}'>
	    <block wx:for="{{goods_array}}" >
	        <navigator catchtap="go_goods"  data-gid="{{item.goods_id}}" class="s1_gk_a1">
	            <view class="{{object.noboder==0?'zs_goods_xiao_bottom':'zs_goods_xiao'}}" >
	                <view class='zs_top_x'>
	                    <block wx:if="{{object.big_order_type==3}}">
	                        <view style="position: relative; width: 100%; height: 100%">
	                            <image class='zs_t_img_x' src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true"
	                                   binderror="bind_bnerr3"></image>
	                            <image class="n_box"  style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%;"  src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true"
	                                   binderror="bind_bnerr3"></image>
	                        </view>
	                    </block>
	
	                    <block wx:else>
												<!-- 原来的 -->
												<!-- <image class="zs_t_img_x {{object.big_order_type==0?'zj':''}}{{object.big_order_type==1?'yj':''}}"
												       src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img"  lazy-load="true"
												       binderror="bind_bnerr3" mode="widthFix" style='max-height:290rpx'></image> -->
													
													<!-- 2021.11.27修改		 -->
	                        <image class="block zs_t_img_x {{object.big_order_type==0?'zj':''}}{{object.big_order_type==1?'yj':''}}"
	                               src="{{item.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img"  lazy-load="true"
	                               binderror="bind_bnerr3"></image>
	                    </block>
	
	                    <block wx:if="{{object.goodicon==3}}">
	                        <image class='{{g_filter.get_class(object.column,object.position)}}'
	                               src='{{object.customicon}}'></image>
	                    </block>
	                    <block wx:if="{{object.goodicon==1}}">
	                        <image class='{{g_filter.get_class(object.column,object.position)}}' src=''></image>
	                    </block>
	                    <block wx:if="{{object.goodicon==2}}">
	                        <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}"
	                               src='{{imghost}}/miniapp/images/Recommend.png'></image>
	                        <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2 }}"
	                               src='{{imghost}}/miniapp/images/hot.png'></image>
	                        <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}"
	                               src='{{imghost}}/miniapp/images/new.png'></image>
	                        <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4 }}"
	                               src='{{imghost}}/miniapp/images/Promotion.png'></image>
	                    </block>
	                </view>
	
	                <view class='zs_center_x'>
	                    <view class='zs_wz1_x ellipsis-2' wx:if="{{object.goodstit}}">{{item.goods_name}}</view>
	                    <view class='zs_wz2_x' wx:if="{{object.goodsprice}}">
							
							<block wx:if="{{item.prom_price || item.prom_integral}}">
							    <view class='wz_red'>
								    <text wx:if="{{item.prom_integral}}">{{item.prom_integral}}积分</text>
								    <text wx:if="{{item.prom_integral && item.prom_price}}">+</text>
								    <text wx:if="{{item.prom_price}}">￥{{item.prom_price}}</text>	
								</view>
							    <view class='del ~no_line_x'>￥{{item.market_price}}</view>
							</block>
							<!-- 不是活动的情况 -->
							<block wx:else>
								
								<block wx:if="{{g_filter.is_has_rank(rank_switch,item)}}" >
								    <!-- 当会员是等级卡的时候 -->
								    <block wx:if="{{card_field}}">
								        <!-- 等级价>0 -->
								        <block wx:if="{{item[card_field]>0}}">
								            <view class="money flex" >
								                <!-- 办卡价 -->
								                <view class="flex xc-wc ai_and">
								                    <view class="fs24 wz_red">￥</view>
								                    <view class="fs35 wz_red">{{filter.toFix(item[card_field],2)}}</view>
								                    <view class="card_bg ellipsis-1">
																									<image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>
																									<text class="card_name">{{card_name}}</text>
																								</view>
								                </view>
								            </view>
								            <view class="flex" style="line-height: 28rpx;" >
								                <!-- 原价 -->
								                <view class="price flex xc-ash line_th ~no_line_x">
								                    <view class="fs22">￥</view>
								                    <view class="fs22">{{item.market_price}}</view>
								                </view>
								            </view>
								        </block>
								        <blocK wx:else>
								            <view class="money flex" >
								                <!-- 办卡价 -->
								                <view class="flex xc-wc">
								                    <view class="fs24">￥</view>
								                    <view class="fs35">{{filter.toFix(item.shop_price,2)}}</view>
								                </view>
								            </view>
								            <view class="flex" style="line-height: 28rpx;" >
								                <!-- 原价 -->
								                <view class="price flex xc-ash line_th ~no_line_x">
								                    <view class="fs22">￥</view>
								                    <view class="fs22">{{item.market_price}}</view>
								                </view>
								            </view>
								        </blocK>
								    </block>
								    <block wx:else>
								        <!-- 如果商品有设置等级价大于0的 -->
								        <block wx:if="{{g_filter.get_card_price(item,card_list,0)}}">
								            <view class="money flex" >
								                <!-- 办卡价 -->
								                <view class="flex xc-wc">
								                    <view class="fs24">￥</view>
								                    <view class="fs35">{{filter.toFix(item.shop_price,2)}}</view>
								                </view>
								                <!-- 原价 -->
								                <view class="price flex xc-ash line_th ~no_line_x">
								                    <view class="fs22">￥</view>
								                    <view class="fs22">{{item.market_price}}</view>
								                </view>
								
								            </view>
								            <view class="flex" style="line-height: 28rpx;" >
								                <!-- 等级价 -->
								                <view class="price flex ai_and">
								                    <view class="fs22">￥</view>
								                    <view class="fs28">{{filter.toFix(g_filter.get_card_price(item,card_list,0),2)}}</view>
								                    <view class="card_bg">
																									<image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>{{g_filter.get_card_price(item,card_list,1)}}</view>
								                </view>
								            </view>
								        </block>
								        <block wx:else>
								            <view class="money flex" >
								                <!-- 办卡价 -->
								                <view class="flex xc-wc">
								                    <view class="fs24 wz_red">￥</view>
								                    <view class="fs35 wz_red">{{filter.toFix(item.shop_price,2)}}</view>
								                </view>
								            </view>
								            <view class="flex" style="line-height: 28rpx;" >
								                <!-- 原价 -->
								                <view class="price flex xc-ash line_th ~no_line_x">
								                    <view class="fs22">￥</view>
								                    <view class="fs22">{{item.market_price}}</view>
								                </view>
								            </view>
								        </block>
								    </block>
								</block>
								
								<block wx:else>
								   <view class='wz_red'>￥{{item.shop_price}}</view>
								   <view class='del ~no_line_x'>￥{{item.market_price}}</view>
								</block>
	
							</block>
	                    </view>
	                    <view class='zs_wz5_x c-5' wx:if="{{object.goodsnum}}" style="font-size: 26rpx;">销量：{{item.sales_sum}}件</view>
	                </view>
	
	            </view>
	        </navigator>
	    </block>
	    <view class="clear"></view>
	</view>
	
	
	<!-- 商品的显示不是左右 -->
	<block wx:if="{{object.column!=5}}">
	<block wx:if="{{classstyle_id=='1' }}"><view class="button-wrapper" wx:if="{{goods_btn.length!=0 }}">
	    <button type="default" size="default" loading="{{loading}}" disabled="{{disabled}}" bindtap="setLoading" class="c-5">
	      {{loadText}}
	    </button>
	</view></block>
	<block wx:if="{{classstyle_id!='1' }}">
	  <view class="button-wrapper pd20" wx:if="{{object.goodscount * page <total }}">
	     <button type="default" size="default" loading="{{loading}}" disabled="{{disabled}}" bindtap="setLoading" style="background-color: rgba(0,0,0,0);color: #555;">{{loadText}}</button>
	  </view>
	  <view  class="fs22"  wx:if="{{object.goodscount * page >=total }}" style="color:{{object.nomore_color}};text-align: center; padding: 20rpx 0">—— 宝贝已经全部加载 —— </view>
	
	</block>
	</block>
	
	
	<!--商品展示-->
	<swiper class="s_prom" indicator-active-color='red' indicator-dots="false" wx:if="{{object.column==5}}" style="height: {{swiper_hei}}rpx;">
	    <view class="sp">
	      <swiper-item class="s_it" wx:for="{{goods_array}}">
	        <block wx:for="{{item}}" wx:for-item="aitem" wx:for-index="aind">
	          <navigator catchtap="go_goods"  data-gid="{{aitem.goods_id}}" style="width: 32%" >
	            <view class="one {{object.big_order_type==0?'zj':''}}{{object.big_order_type==1?'yj':''}}">
	              <view class='sp_top'>
	                <view class='s_img' style="position: relative; width: 100%">
	
	                  <block wx:if="{{object.big_order_type==3}}">
	                        <view style="position: relative; width: 100%; height: 100%">
	                            <image  src="{{object.pic_back}}" data-errorimg="object.pic_back" lazy-load="true"
	                                   binderror="bind_bnerr3"></image>
	
	                            <image class="n_box"  style="top: {{object.top}}%;left:{{object.left}}%;width: {{object.width}}%;height: {{object.width}}%"  src="{{aitem.goods_img}}" data-errorimg="goods_array[{{index}}].goods_img" lazy-load="true"  binderror="bind_bnerr3"></image>
	                        </view>
	                  </block>
	
	                  <block wx:else>
	                    <image src="{{aitem.goods_img}}" data-errorimg="goods_array[{{index}}][{{aind}}].goods_img"
	                         binderror="bind_bnerr3" lazy-load="true" style="width: 100%"></image>
	                  </block>
	
	
					  <block wx:if="{{object.goodicon==3}}">
					      <image class='{{g_filter.get_class(object.column,object.position)}}'
					             src='{{object.customicon}}'></image>
					  </block>
					  <block wx:if="{{object.goodicon==1}}">
					      <image class='{{g_filter.get_class(object.column,object.position)}}' src=''></image>
					  </block>
					  <block wx:if="{{object.goodicon==2}}">
					      <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==1}}"
					             src='{{imghost}}/miniapp/images/Recommend.png'></image>
					      <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==2 }}"
					             src='{{imghost}}/miniapp/images/hot.png'></image>
					      <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==3}}"
					             src='{{imghost}}/miniapp/images/new.png'></image>
					      <image class='{{g_filter.get_class(object.column,object.position)}}' wx:if="{{object.styleicon==4 }}"
					             src='{{imghost}}/miniapp/images/Promotion.png'></image>
					  </block>
					  				  
	                </view>
	                <view class='clear'></view>
	              </view>
	
	              <view class='pd10'>
	                <view class='zs_wz1_3l' wx:if="{{object.goodstit}}">{{aitem.goods_name}}</view>
	                <view class='zs_wz2_3l' wx:if="{{object.goodsprice}}">
	                    <block wx:if="{{aitem.prom_price || aitem.prom_integral }}">
	                        <view class='wz_red'>
								<text wx:if="{{aitem.prom_integral}}">{{aitem.prom_integral}}</text>
								<text wx:if="{{aitem.prom_integral && aitem.prom_price}}">+</text>
								<text wx:if="{{aitem.prom_price}}">￥{{aitem.prom_price}}</text>						
							</view>
	                        <view class='del ~no_line_x'>￥{{aitem.market_price}}</view>
	                    </block>
	                    <block wx:else>
	                        <block wx:if="{{g_filter.is_has_rank(rank_switch,aitem)}}" >
	                            <!-- 当会员是等级卡的时候 -->
	                            <block wx:if="{{card_field}}">
	                                <!-- 等级价>0 -->
	                                <block wx:if="{{aitem[card_field]>0}}">
	                                    <view class="money flex" >
	                                        <!-- 办卡价 -->
	                                        <view class="flex xc-wc ai_and">
	                                            <view class="fs24 wz_red">￥</view>
	                                            <view class="fs35 wz_red">{{filter.toFix(aitem[card_field],2)}}</view>
	                                            <view class="card_bg ellipsis-1">
	                																						<image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>
	                																						<text class="card_name">{{card_name}}</text>
	                																					</view>
	                                        </view>
	                                    </view>
	                                    <view class="flex" style="line-height: 28rpx;" >
	                                        <!-- 原价 -->
	                                        <view class="price flex xc-ash line_th ~no_line_x">
	                                            <view class="fs22">￥</view>
	                                            <view class="fs22">{{aitem.market_price}}</view>
	                                        </view>
	                                    </view>
	                                </block>
	                                <blocK wx:else>
	                                    <view class="money flex" >
	                                        <!-- 办卡价 -->
	                                        <view class="flex xc-wc">
	                                            <view class="fs24 wz_red">￥</view>
	                                            <view class="fs35 wz_red">{{filter.toFix(aitem.shop_price,2)}}</view>
	                                        </view>
	                                    </view>
	                                    <view class="flex" style="line-height: 28rpx;" >
	                                        <!-- 原价 -->
	                                        <view class="price flex xc-ash line_th ~no_line_x">
	                                            <view class="fs22">￥</view>
	                                            <view class="fs22">{{aitem.market_price}}</view>
	                                        </view>
	                                    </view>
	                                </blocK>
	                            </block>
	                            <block wx:else>
	                                <!-- 如果商品有设置等级价大于0的 -->
	                                <block wx:if="{{g_filter.get_card_price(aitem,card_list,0)}}">
	                                    <view class="money flex" >
	                                        <!-- 办卡价 -->
	                                        <view class="flex xc-wc">
	                                            <view class="fs24 wz_red">￥</view>
	                                            <view class="fs35 wz_red">{{filter.toFix(aitem.shop_price,2)}}</view>
	                                        </view>
	                                        <!-- 原价 -->
	                                        <view class="price flex xc-ash line_th ~no_line_x">
	                                            <view class="fs22">￥</view>
	                                            <view class="fs22">{{aitem.market_price}}</view>
	                                        </view>
	                
	                                    </view>
	                                    <view class="flex" style="line-height: 28rpx;" >
	                                        <!-- 等级价 -->
	                                        <view class="price flex ai_and">
	                                            <view class="fs22">￥</view>
	                                            <view class="fs28">{{filter.toFix(g_filter.get_card_price(aitem,card_list,0),2)}}</view>
	                                            <view class="card_bg ellipsis-1">
	                																						<image src="{{url}}/miniapp/images/plus/dj_icon.png"></image>
	                																						<text class="card_name">{{g_filter.get_card_price(aitem,card_list,1)}}</text>
	                																					</view>
	                                        </view>
	                                    </view>
	                                </block>
	                                <block wx:else>
	                                    <view class="money flex" >
	                                        <!-- 办卡价 -->
	                                        <view class="flex xc-wc">
	                                            <view class="fs24 wz_red">￥</view>
	                                            <view class="fs35 wz_red">{{filter.toFix(aitem.shop_price,2)}}</view>
	                                        </view>
	                                    </view>
	                                    <view class="flex" style="line-height: 28rpx;" >
	                                        <!-- 原价 -->
	                                        <view class="price flex xc-ash line_th ~no_line_x">
	                                            <view class="fs22">￥</view>
	                                            <view class="fs22">{{aitem.market_price}}</view>
	                                        </view>
	                                    </view>
	                                </block>
	                            </block>
	                        </block>
	                        <block wx:else>
	                          <view class='wz_red'>￥{{aitem.shop_price}}</view>
	                          <view class='del ~no_line_x'>￥{{aitem.market_price}}</view>
	                        </block>
	                    </block>
	                </view>
	                <view class='zs_wz5_3l c-5' wx:if="{{object.goodsnum}}">销量：{{aitem.sales_sum}}件</view>
	                <!-- <view style="height: 10rpx;"></view> --> 
	              </view>
	
	            </view>
	          </navigator>
	        </block>
	      </swiper-item>
	   </view>
	  </swiper>
	
</view>
<!-- 服务卡项顶部标题 -->
<!-- class="scroll-view-item {{index == title_index ? 'active':''}}" -->
