Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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-10-21 15:54:28 +0800
Commit
e25c6a91e6ca20e9632fc80955771427985c4bbc
1 parent
e6c6b55d
data structure
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
18 deletions
docs/data-structure.md
template/m.yohobuy.com/actions/product/list/index.phtml
docs/data-structure.md
View file @
e25c6a9
...
...
@@ -72,21 +72,7 @@
//footer已登录
{
pageFooter: {
user: {
name: '',
url: '',
signoutUrl: ''
}
}
}
//footer未登录
{
pageFooter: {
loginUrl: '',
signupUrl: ''
}
pageFooter: true
}
### 筛选
...
...
@@ -738,3 +724,28 @@
]
}
## 商品列表页
{
goodList: {
search: '', //是否显示搜索栏并指定初始值
brandWay: { //品牌入口
url: '',
thumb: '',
name: ''
},
brand: {
id: 0,
intro: '...'
},
new:
[
{
... //商品信息
},
...
],
filter: {
.. //筛选数据结构
}
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/product/list/index.phtml
View file @
e25c6a9
{
{>
layout/header
}
}
<div
class=
"good-list-page yoho-page"
>
{
{#
goodList
}
}
{
{#
if
search
}
}
{
{#
search
}
}
<div
id=
"search-input"
class=
"search-input"
>
<i
class=
"search-icon iconfont"
>
60
f;</i>
<input
type=
"text"
value=
{
{
search
}
}>
<input
type=
"text"
value=
{
{
default
}
}>
<i
class=
"clear-input iconfont hide"
>
61
a;</i>
<button
id=
"search"
class=
"search"
>搜索</button>
</div>
{
{/
if
}
}
{
{/
search
}
}
{
{#
brandWay
}
}
<div
class=
"brand-way"
>
...
...
Please
register
or
login
to post a comment