{extend name="default/base" /} {block name="title"}{:WSTConf('CONF.mallName')} - {:WSTConf('CONF.mallSlogan')}{__block__}{/block} {block name="meta"} {/block} {block name="css"} {/block} {block name="main"} {/* 横栏广告 */}
{php}$signScore=explode(",",WSTConf('CONF.signScore'));{/php} {if(WSTConf('CONF.signScoreSwitch')==1 && $signScore[0]>0)}

当前积分:{if condition="session('WST_USER.userId') >0"}{:session('WST_USER.userScore')}{else}0{/if}

积分明细

{/if} {/* 拍卖活动 */}
{if(WSTConf('WST_ADDONS.auction')!='') && count(auction_list())>0} {php}$auction=auction_list();{/php}

拍卖活动

{volist name="$auction" id="au"} {/volist}
< >
{else /} {wst:ads code="index-art" num='1' cache='86400'} {/wst:ads} {/if}
{if empty($is_icp)}
招商入驻
{/if}
商城快讯
{if empty($is_icp)} {/if}
{wst:article cat="new" num='5' cache='86400'} {/wst:article}
{wst:ads code="ads-index" cache='86400' key='k'} {if condition="$k+1 eq 1"} {$k+1} {else/} {$k+1} {/if} {/wst:ads}
{/* 顶部广告位 */}
{/* 领券中心 */} {if empty($is_icp)} {if empty($indexCouponsList)} {php}$indexCouponsList=coupon_list('',['s.shopImg'],4);{/php} {/if} {if !empty($indexCouponsList)}

领券中心

为您汇总所有优惠券

立即查看

{volist name="$indexCouponsList" id="cn" length="4"}

¥{$cn['couponValue']}

{if $cn['useCondition']==1} 满{$cn['useMoney']}减{$cn['couponValue']} {else /} 无门槛券 {/if}

立即领取

{/volist}
{/if} {/if} {/* 广告墙 */}
{/* 左上 */} {wst:ads code="wall-left-top" num='1' cache='86400' id="aw"}

查看更多 >>

{/wst:ads} {/* 左下 */} {wst:ads code="wall-left-bottom" num='1' cache='86400' id="aw"}

查看更多 >>

{/wst:ads}
{/* 中间 */} {wst:ads code="wall-center" num='1' cache='86400' id="aw"}

查看更多 >>

{/wst:ads}
{/* 右上 */} {wst:ads code="wall-right-top" num='1' cache='86400' id="aw"}

查看更多 >>

{/wst:ads} {/* 右下 */} {wst:ads code="wall-right-bottom" num='1' cache='86400' id="aw"}

查看更多 >>

{/wst:ads}
{/* 积分商城 */} {if(WSTConf('WST_ADDONS.integral')!='') && count(integral_list())>0} {php}$integral=integral_list();{/php}

积分商城

{volist name="$integral" id="itl" length="2"}

{$itl.goodsName}

¥{$itl.goodsPrice} + {$itl.integralNum}积分

立即兑换
{/volist}
{/if} {/* 分销商品 */} {if(WSTConf('WST_ADDONS.distribut')!='') && count(distribut_list())>0} {php}$distribut=distribut_list();{/php}

分销商品

{/if} {/* 店铺街 */} {if empty($is_icp)}

店铺街

{/if} {php} $validate = [0,3,6,9]; $newArr = []; foreach($floors as $_k=>$_v){ // echo "$_k"; if(in_array($_k,$validate)){ // echo "-1
"; $newArr[] = $_v; $_newArr = [];// 两个分类 }else{ // echo "-2
"; $_newArr[] = $_v; if(count($_newArr)==2){ $newArr[] = $_newArr; } } } $floors = $newArr; // dump(count($floors));die; $oneCatFloor = [1,3,5,7]; $floorCount = 1;// 楼层数 {/php}
{volist name="$floors" id="vo" key="l" length="7"} {if(in_array($l,$oneCatFloor))} {/* 楼层顶部广告 */} {php}$adsCode = "ads-".$l."-1";{/php} {wst:ads code="$adsCode" num="1" cache='86400' id="tad"}
{/wst:ads} {/* 一个分类 */}

{$l}F

{$vo['catName']}

{/* 楼层分类下的热门商品 */} {wst:goods type='hot' cat="vo['catId']" cache="86400" num='10' id='cs'}

{:WSTMSubstr($cs['goodsName'],0,33)}

{$cs['shopPrice']}

¥惠宝抵扣价{$cs['shopPrice']*0.8}

{/wst:goods}
{volist name="vo['children']" id="vo1" key="l2"} {/volist}
{php}++$floorCount;{/php} {else /} {/* 两个分类 */}

{$l}F

{$vo[0]['catName']}

{:WSTMSubstr($vo[0]['catName'],0,4,'utf-8')} >

{$vo[0]['subTitle']!=''??' '}

<
{wst:goods type='best' cat="vo[0]['catId']" cache="86400" key="gb_key" num='3' id='gb'} {/wst:goods}
>
{/* 楼层分类下的热门商品 */} {wst:goods type='hot' cat="vo[0]['catId']" cache="86400" num='4' id='cs'}

{:WSTMSubstr($cs['goodsName'],0,33)}

{$cs['shopPrice']}

¥惠宝抵扣价{$cs['shopPrice']*0.8}

{/wst:goods}
{volist name="vo[0]['children']" id="vo1" key="l2"} {/volist}
{php}++$floorCount;{/php} {if(isset($vo[1]))}

{$l}F

{$vo[1]['catName']}

{:WSTMSubstr($vo[1]['catName'],0,4,'utf-8')} >

{$vo[1]['subTitle']!=''??' '}

<
{wst:goods type='best' cat="vo[1]['catId']" cache="86400" key="gb_key" num='3' id='gb'} {/wst:goods}
>
{/* 楼层分类下的热门商品 */} {wst:goods type='hot' cat="vo[1]['catId']" cache="86400" num='4' id='cs'}

{:WSTMSubstr($cs['goodsName'],0,33)}

{$cs['shopPrice']}

¥惠宝抵扣价{$cs['shopPrice']*0.8}

{/wst:goods}
{volist name="vo[1]['children']" id="vo1" key="l2"} {/volist}
{php}++$floorCount;{/php} {/if}
{/if} {/volist} {/* 猜你喜欢 */}
{/* 右侧菜单栏 */} {include file="default/right_cart"/} {/block} {block name="js"} {/block} {/block}