{extend name="$base" /} {block name="resources"} {/block} {block name="seo"} {/block} {block name="head"} {php} $goodsCategoryList = api("System.Goods.goodsCategoryTree"); $goodsCategoryList = $goodsCategoryList['data']; $category_brands = $data['category_brands']; // 品牌筛选项 $goods_spec_array = $data['goods_spec_array']; // 规格筛选项 $attr_or_spec = $data['attr_or_spec']; // 属性筛选项 // 搜索记录 $searchRecord = $_COOKIE['searchRecordWap']; $searchRecord = !empty($searchRecord) ? json_decode($searchRecord, true) : []; {/php}
取消
分类
列表

- 综合
- 销量
- 价格
{if !empty($category_brands) || !empty($goods_spec_array) || !empty($attr_or_spec)}
- 筛选
{/if}

{/block} {block name="main"}
历史搜索 清除搜索记录

{notempty name="$searchRecord"} {foreach name="$searchRecord" item="vo"}
- {$vo}
{/foreach} {/notempty}

{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}

{if !empty($params['category_id'])}
筛选

{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} {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"} {notempty name ="$value"} {$value} {/notempty} {/foreach}
{/if} {/if} {/foreach} {/if} {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}
- 价格区间(元)
  ——

{/if}

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