Authored by xuqi

data structure

... ... @@ -72,21 +72,7 @@
//footer已登录
{
pageFooter: {
user: {
name: '',
url: '',
signoutUrl: ''
}
}
}
//footer未登录
{
pageFooter: {
loginUrl: '',
signupUrl: ''
}
pageFooter: true
}
### 筛选
... ... @@ -737,4 +723,29 @@
...
]
}
## 商品列表页
{
goodList: {
search: '', //是否显示搜索栏并指定初始值
brandWay: { //品牌入口
url: '',
thumb: '',
name: ''
},
brand: {
id: 0,
intro: '...'
},
new: [
{
... //商品信息
},
...
],
filter: {
.. //筛选数据结构
}
}
}
\ No newline at end of file
... ...
{{> 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">&#xe60f;</i>
<input type="text" value={{search}}>
<input type="text" value={{default}}>
<i class="clear-input iconfont hide">&#xe61a;</i>
<button id="search" class="search">搜索</button>
</div>
{{/if}}
{{/ search}}
{{# brandWay}}
<div class="brand-way">
... ...