{include(label.header)} {set $arr=fun_kj::get_ads('A1',1)}
{if(isset($arr['list']))}

{foreach($arr['list'] as $item)}
{/foreach}

{foreach($arr['list'] as $item)}
{/foreach}

{/if}
- {set $arr=fun_kj::get_ads('A2',1)} {if(isset($arr['list']))} {foreach($arr['list'] as $item)}{/foreach} {/if}

- # 精品推荐

- 1 2

- {$get_goods_tj1=user:get_goods_tj1(0,8)} {foreach($get_goods_tj1 as $goods)}
  {$goods['goods_name']} {fun_kj::get_price($goods['goods_price'])} {fun_kj::get_price($goods['goods_price_market'])} {$goods['goods_sold']}人已购
  {/foreach}
- {$get_goods_tj1=user:get_goods_tj1(8,8)} {foreach($get_goods_tj1 as $goods)}
  {$goods['goods_name']} {fun_kj::get_price($goods['goods_price'])} {fun_kj::get_price($goods['goods_price_market'])} {$goods['goods_sold']}人已购
  {/foreach}

- # TOP热销榜

{$arr_goods=user:get_goods_hot(0,10)} {foreach($arr_goods as $i=>$goods)}
- {set $ii=$i+1} {$ii} {fun_format::len($goods['goods_name'],32)} {fun_kj::get_price($goods['goods_price'])}
  {fun_kj::get_price($goods['goods_price_market'])}
  {$goods['goods_sold']}人已购
{/foreach}
{set $ii=0} {$category_childs=user:category_childs("0",10)}/*数据源：指定分类id的一级子分类*/ {foreach($category_childs as $category)} {set $ii=$ii+1}

- {$ii}F {$category['category_name']}
- 精选 新品 热销

- {$get_goods_tj2=user:get_goods_tj2($category['category_id'],0,8)} {foreach($get_goods_tj2 as $goods)}
  {$goods['goods_name']} {fun_kj::get_price($goods['goods_price'])} {fun_kj::get_price($goods['goods_price_market'])} {$goods['goods_sold']}人已购
  {/foreach}
- {$arr_goods=user:get_goods_bytime($category['category_id'],0,8)} {foreach($arr_goods as $goods)}
  {$goods['goods_name']} {fun_kj::get_price($goods['goods_price'])} {fun_kj::get_price($goods['goods_price_market'])} {$goods['goods_sold']}人已购
  {/foreach}
- {$arr_goods=user:get_goods_bysold($category['category_id'],0,8)} {foreach($arr_goods as $goods)}
  {$goods['goods_name']} {fun_kj::get_price($goods['goods_price'])} {fun_kj::get_price($goods['goods_price_market'])} {$goods['goods_sold']}人已购
  {/foreach}

- {$arr_brand=inc:get_brand_list($category['category_id'],10)} {foreach($arr_brand as $brand)} {/foreach}

{$category_childs2=user:category_childs($category['category_id'],3)}/*数据源：指定分类id的一级子分类*/ {foreach($category_childs2 as $child2)}
- {$category_childs3=user:category_childs($child2['category_id'],6)}/*数据源：指定分类id的一级子分类*/ {foreach($category_childs3 as $child3)} {$child3['category_name']} {/foreach}
{/foreach}

{/foreach} {include(label.footer)}