Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
2015-12-02 16:20:56 +0800
Commit
a36b5fede9e47f0724555e036b2c830c15f56109
1 parent
436070c6
path nav
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
1 deletions
docs/web-data-structure.md
template/www.yohobuy.com/actions/product/index/list.phtml
template/www.yohobuy.com/partials/layout/path-nav.phtml
web-static/sass/_path-nav.scss
web-static/sass/index.scss
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
docs/web-data-structure.md
View file @
a36b5fe
...
...
@@ -4,6 +4,21 @@
### 商品
### 路径导航
{
pathNav: [
//链接类型
{
href: '',
name: ''
},
//文字类型
{
name: ''
}
]
}
## 搜索页
...
...
template/www.yohobuy.com/actions/product/index/list.phtml
View file @
a36b5fe
{
{>
layout/header
}
}
<div
class=
"products-page yoho-page"
>
{
{#
products
}
}
{
{>
layout/path-nav
}
}
<div
class=
"filter-box"
>
{
{#
filters
}
}
{
{#
checkedConditions
}
}
...
...
template/www.yohobuy.com/partials/layout/path-nav.phtml
0 → 100644
View file @
a36b5fe
<p class="path-nav">
{{#each pathNav}}
{{#if href}}
<a href="{{href}}">
{{name}}
{{#unless @last}}
<span class="iconfont"></span>
{{/unless}}
</a>
{{^}}
<span>
{{name}}
{{#unless @last}}
<i class="iconfont"></i>
{{/unless}}
</span>
{{/if}}
{{/each}}
</p>
\ No newline at end of file
...
...
web-static/sass/_path-nav.scss
0 → 100644
View file @
a36b5fe
.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
...
...
web-static/sass/index.scss
View file @
a36b5fe
...
...
@@ -3,7 +3,8 @@
@import
"compass"
,
"compass/reset"
,
"header"
,
"footer"
;
"footer"
,
"path-nav"
;
body
{
font-family
:
arial
,
"Microsoft YaHei"
;
...
...
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
View file @
a36b5fe
...
...
@@ -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
(
...
...
Please
register
or
login
to post a comment