{extend name="$base" /} {block name="resources"} {/block} {block name="head_href"}{:__URL('APP_MAIN/distribution/index')}{/block} {block name="main"}

- 分类
- 排序
{if !empty($category_id)}
- 筛选
{/if}

{if !empty($category_id)}
筛选
{php} $category_brands = api("System.Goods.brandSelection", ["category_id"=>$category_id]); $category_brands = $category_brands['data']; {/php}

{notempty name="$category_brands"}
- {if condition="count($category_brands) > 2"}
  品牌
  {else/}
  品牌
  {/if}
  全部 {foreach name="category_brands" item="brand" key="k"} {$brand.brand_name} {/foreach}
{/notempty} {php} $attr_or_spec = api("System.Goods.attributeSelection", ["category_id"=>$category_id]); $attr_or_spec = $attr_or_spec['data']; {/php} {if condition="count($attr_or_spec) gt 0 "} {foreach name="attr_or_spec" item="vo" key="key"} {if condition="$vo.type neq 1 and $vo.value neq ''"} {if condition="$vo.is_search eq '1'"}
- {if condition="count($vo['value_items']) > 2"}
  {$vo.attr_value_name}
  {else/}
  {$vo.attr_value_name}
  {/if}
  全部 {foreach name="vo.value_items" item="value" key="k"} {$value.value} {/foreach}
{/if} {/if} {/foreach} {/if} {php} $goods_spec_array = api("System.Goods.goodsSpecArray", ["category_id"=>$category_id]); $goods_spec_array = $goods_spec_array['data']; {/php} {if condition="count($goods_spec_array) gt 0 "} {foreach name="goods_spec_array" item="vo" key="key"} {if condition="$vo.is_screen eq 1 and $vo.spec_name neq ''"}
- {if condition="count($vo['values']) > 2"}
  {$vo.spec_name}
  {else/}
  {$vo.spec_name}
  {/if}
  全部 {foreach name="vo.values" item="value" key="k"} {$value.spec_value_name} {/foreach}
{/if} {/foreach} {/if} {php} $category_price_grades = api("System.Goods.categoryPriceGrades", ["category_id"=>$category_id]); $category_price_grades = $category_price_grades['data']; {/php} {notempty name="$category_brands"}
- {if condition="count($category_price_grades) > 2"}
  价格
  {else/}
  价格
  {/if}
  价格区间(元) -
  {foreach name="$category_price_grades" item="price_grades" key="k"} {if condition="$price_grades[1] != 0"} {$price_grades[0]} - {$price_grades[1]} {/if} {/foreach}
{/notempty}

重置 确认
{/if}
{php} $goodsCategoryList = api("System.Goods.goodsCategoryTree"); $goodsCategoryList = $goodsCategoryList['data']; {/php}

{empty name="$category_id"}
- 全部分类
{else/}
- 全部分类
{/empty} {foreach name="$goodsCategoryList" item="vo"}
- {$vo.category_name}
{/foreach}

{foreach name="$goodsCategoryList" item="vo"} {foreach name="$vo['child_list']" item="to"}
- {$to.category_name}
{/foreach} {/foreach}

默认 {:lang('goods_sales_volume')} {:lang('goods_new')} {:lang('goods_price')}
{/block} {block name="footer"}{/block} {block name="script"}
{/block}