{extend name="default/base" /} {block name="title"}{:WSTConf('CONF.shopName')} - {:WSTConf('CONF.shopSlogan')}{/block} {block name="meta"} {/block} {block name="css"} {/block} {block name="main"} {wst:goods type="appraise" id="appr" cat="334" key="htKey" num="10"} {/wst:goods} {/*分类、广告、品牌*/}
{/* 横栏广告 */}

{wst:ads code="ads-index" cache='86400'}
{/wst:ads}

{wst:ads code="ads-index" cache='86400' key='k'} {if condition="$k+1 eq 1"} {else/} {/if} {/wst:ads}
{/* 品牌 */}

{volist name="$catNames" id="cb" key="ckey" length="7"}
- {:WSTMSubstr($cb['catName'],0,4)}
{/volist}

{/* 分类下的品牌 */} {volist name="$catNames" id="cb" key="cbkey" length="7"}
1)} style="display:none;" {/if}>

{wst:brand cat="$cb['catId']" id="bvo" num='14' cache='86400'}
{/wst:brand}

{/volist}
{/* 4个广告 */}

{wst:ads code="index-four-ads" id="fads" num="4"}
{/wst:ads}

{/* 推荐/最新/精品/热销 */} {/*推荐*/}
{/*前5个推荐商品*/}
{wst:goods type='recom' cache="86400" num='5'}

{$vo['goodsName']}

￥{$vo['shopPrice']} 成交量：{$vo['saleNum']}
加入购物车
{/wst:goods}
{/* 每个分类推荐下的商品 */} {volist name="$catNames" id="cb" key="cbkey" length="9"}
{wst:goods type='recom' cache="86400" cat="$cb['catId']" num='5'}

{$vo['goodsName']}

￥{$vo['shopPrice']} 成交量：{$vo['saleNum']}
加入购物车
{/wst:goods}
{/volist}
店铺公告 >>

{wst:article cat="new" cat="11" num='12' cache='86400'}
- {$vo['articleTitle']}
{/wst:article}

{/* 新品 */}
{/*前5个新品*/}
{wst:goods type='new' cache="86400" num='5'}

{$vo['goodsName']}

￥{$vo['shopPrice']} 成交量：{$vo['saleNum']}
加入购物车
{/wst:goods}
{/* 每个分类推荐下的商品 */} {volist name="$catNames" id="cb" key="cbkey" length="9"}
{wst:goods type='new' cache="86400" cat="$cb['catId']" num='5'}

{$vo['goodsName']}

￥{$vo['shopPrice']} 成交量：{$vo['saleNum']}
加入购物车
{/wst:goods}
{/volist}
促销资讯 >>

{wst:article cat="new" cat="12" num='12' cache='86400'}
- {$vo['articleTitle']}
{/wst:article}

{/* 精品促销 */}
{/*前5个精品*/}
{wst:goods type='best' cache="86400" num='5'}

{$vo['goodsName']}

￥{$vo['shopPrice']} 成交量：{$vo['saleNum']}
加入购物车
{/wst:goods}
{/* 每个分类推荐下的商品 */} {volist name="$catNames" id="cb" key="cbkey" length="9"}
{wst:goods type='best' cache="86400" cat="$cb['catId']" num='5'}

{$vo['goodsName']}

￥{$vo['shopPrice']} 成交量：{$vo['saleNum']}
加入购物车
{/wst:goods}
{/volist}
{/* 用户好评 */}
用户好评

{volist name="$appraise" id="arri"}

- {$arri['goodsName']}

  "{$arri['content']}"
{/volist}

{/* 热销商品 */}
{/*前5个热销商品*/}
{wst:goods type='hot' cache="86400" num='5'}

{$vo['goodsName']}

￥{$vo['shopPrice']} 成交量：{$vo['saleNum']}
加入购物车
{/wst:goods}
{/* 每个分类推荐下的商品 */} {volist name="$catNames" id="cb" key="cbkey" length="9"}
{wst:goods type='hot' cache="86400" cat="$cb['catId']" num='5'}

{$vo['goodsName']}

￥{$vo['shopPrice']} 成交量：{$vo['saleNum']}
加入购物车
{/wst:goods}
{/volist}
{/* 热销右侧广告位 */}
{wst:ads code="index-hot" id="adh"} {/wst:ads}
{/* 楼层商品 */} {volist name="$floors" id="vo" key="l" length="10"} {/* 楼层顶部广告 */} {php}$adsCode = "ads-".$l."-1";{/php} {wst:ads code="$adsCode" num="1" cache='86400' id="tad"}
{/wst:ads}
{:WSTMSubstr($vo['catName'],0,4)} {php} $catId1 = $vo['catId']; $cat2Name = ''; foreach($vo['children'] as $cat2){ $url = url('home/goods/lists',['cat'=>$cat2['catId']]); $cat2Name .= ''.$cat2['catName'].' / '; } $cat2Name = rtrim($cat2Name,'/ '); echo $cat2Name; {/php}
{/*楼层左侧热卖排行*/}

热卖排行

{wst:goods type="hot" id="ht" cat="$catId1" key="htKey" num="10"}
0)}style="display:none"{/if}>

{$ht['goodsName']}

￥{$ht['shopPrice']}

成交量：{$ht['saleNum']}

- {$ht['goodsName']}

{/wst:goods}
{/*楼层广告位*/}
{/* 楼层左侧广告 */} {wst:ads code="ads-$l-2" cache='86400' id="fl" key='fk' num="2"} {php}++$fk;{/php}
{/wst:ads}
{/*楼层6件商品*/}
{wst:goods type="recom" num="6" cat="$vo['catId']" id="frec"}

{$frec['goodsName']}

￥{$frec['shopPrice']} 成交量：{$frec['saleNum']}
加入购物车
{/wst:goods}
{/*楼层右侧好评推荐*/}

好评推荐

{wst:goods type="appraise" id="appr" cat="$catId1" key="htKey" num="10"}
0)}style="display:none;"{/if}>

{$appr['goodsName']}

￥{$appr['shopPrice']}

{php}$score = ceil($appr['totalScore']);{/php} {for start=0 end="$score"} {/for}

- {$appr['goodsName']}

{/wst:goods}
{/volist} {/* 右侧菜单栏 */} {include file="default/right_cart"/} {/block} {block name="js"}
{/block} {/block}