Authored by xuqi

path nav

... ... @@ -4,6 +4,21 @@
### 商品
### 路径导航
{
pathNav: [
//链接类型
{
href: '',
name: ''
},
//文字类型
{
name: ''
}
]
}
## 搜索页
... ...
{{> layout/header}}
<div class="products-page yoho-page">
{{# products}}
{{> layout/path-nav}}
<div class="filter-box">
{{# filters}}
{{# checkedConditions}}
... ...
<p class="path-nav">
{{#each pathNav}}
{{#if href}}
<a href="{{href}}">
{{name}}
{{#unless @last}}
<span class="iconfont">&#xe601;</span>
{{/unless}}
</a>
{{^}}
<span>
{{name}}
{{#unless @last}}
<i class="iconfont">&#xe601;</i>
{{/unless}}
</span>
{{/if}}
{{/each}}
</p>
\ No newline at end of file
... ...
.path-nav {
font-size: 12px;
padding: 15px 0;
height: 18px;
line-height: 18px;
border-bottom: 1px solid #eaeceb;
margin-bottom: 15px;
a {
color: #666;
}
.iconfont {
font-size: 12px;
}
}
\ No newline at end of file
... ...
... ... @@ -3,7 +3,8 @@
@import "compass",
"compass/reset",
"header",
"footer";
"footer",
"path-nav";
body {
font-family: arial,"Microsoft YaHei";
... ...
... ... @@ -14,6 +14,15 @@ class IndexController extends AbstractAction
'searchListPage' => true,
'products' => array(
'pathNav' => array(
array(
'href' => 'm.yohobuy.com',
'name' => '首页'
),
array(
'name' => '搜索“安德玛”共18个结果'
)
),
'filters' => array(
'checkedConditions' => array(
'conditions' => array(
... ...