{extend name="default/base/base_home" /} {block name="mall_main"}

{dstaglib:adv ap_id='1' limit='10' item='v'}
{/dstaglib:adv}

{dstaglib:adv ap_id='1' limit='10' item='v'}
{/dstaglib:adv}

- {dstaglib:adv ap_id='2' limit='10' item='v'} {/dstaglib:adv}

< >

{notempty name="recommend_list"} {foreach name="recommend_list" item="goods"}
- {$goods.goods_name}
    ￥{$goods.goods_price}
{/foreach} {/notempty}

{notempty name="promotion_list"} {foreach name="promotion_list" item="goods"}
- {$goods.goods_name}
    {$Think.lang.shopping_mall_price}：￥{$goods.xianshigoods_price}
{/foreach} {/notempty}

{notempty name="new_list"} {foreach name="new_list" item="goods"}
- {$goods.goods_name}
    {$Think.lang.shopping_mall_price}：￥{$goods.goods_price}
{/foreach} {/notempty}

{notempty name="groupbuy_list"} {foreach name="groupbuy_list" item="goods"}
- {$goods.goods_name}
    {$Think.lang.shopping_mall_price}：￥{$goods.groupbuy_price}
{/foreach} {/notempty}

{foreach name="floor_block" item="vo" key="k" }

## {$vo.gc_name}

{if $k<5}
{switch name="k"} {case value="0"}{php}$var2=8;{/php}{/case} {case value="1"}{php}$var2=9;{/php}{/case} {case value="2"}{php}$var2=10;{/php}{/case} {case value="3"}{php}$var2=11;{/php}{/case} {case value="4"}{php}$var2=12;{/php}{/case} {/switch} {if $k<5} {dstaglib:adv ap_id='$var2' limit='1' item='v'} {/dstaglib:adv} {/if}
{/if}
{foreach name="vo.goods_list" item="list" key="list_key"}

{notempty name="list.gc_list"} {foreach name="list.gc_list" key="goods_key" item="goods"} {if ($k<5 && $goods_key<8) || $k>4}
- {$goods.goods_name}
    {$goods.goods_price}{$Think.lang.currency_zh} {$goods.goods_marketprice}{$Think.lang.currency_zh}
{/if} {/foreach} {/notempty}

{/foreach}
{switch name="k"} {case value="0"}{php}$var3=3;{/php}{/case} {case value="1"}{php}$var3=4;{/php}{/case} {case value="2"}{php}$var3=5;{/php}{/case} {case value="3"}{php}$var3=6;{/php}{/case} {case value="4"}{php}$var3=7;{/php}{/case} {/switch} {if $k<5} {dstaglib:adv ap_id='$var3' limit='1' item='v'} {/dstaglib:adv} {/if}
{/foreach}

{$Think.lang.cooperative_partner} | {$Think.lang.friendship_link}
  {notempty name="link_list"} {foreach name="link_list" item="val"} {:str_cut($val.link_title,15)} {/foreach} {/notempty}

{/block}