{extend name="$base" /} {block name="resources"} {/block} {block name="lunbo"} {php} //轮播 $banner_list = api('System.Shop.advDetail', ['ap_keyword' => 'PC_BRAND_SWIPER', 'export_type' => 'data']); {/php}
{notempty name='$banner_list'}

{foreach name="$banner_list['data']['advs']" item="vo" key="k"}
{/foreach}

{foreach name="$banner_list['data']['advs']" item="vo" key="k"}
{if $vo['adv_image'] == ''} {else/} {if is_url($vo['adv_url'])} {else/} {/if} {/if}
{/foreach}
{/notempty}
{/block} {block name="main"} {php} $condition = [ 'brand_recommend' => 1 ]; if(!empty($category_id)){ $condition['category_id_1'] = $category_id; } $info = api('System.Goods.goodsBrandList', ['page_index' => $page_index, 'condition' => $condition]); $info = $info['data']; $total_count = $info['total_count']; $list = $info['data']; $brand_adv = api('System.Shop.advDetail', ['ap_keyword' => 'BRANDSWIPER', 'export_type' => 'data']); $brand_adv = $brand_adv['data']; {/php} {notempty name="$brand_adv"}
{/notempty} {notempty name="$list"}
品牌专区
{foreach name="$list" item="item" key="k"}
{notempty name="$item.brand_pic"} {else/} {/notempty} {if $item.brand_recommend eq 1}{/if}
{notempty name="$item.brand_pic"} {else/} {/notempty}

### {$item.brand_name}

{$item.describe}

{/foreach}

{/notempty} {/block} {block name="script"}
{/block}