Authored by xuqi

data structure

@@ -72,21 +72,7 @@ @@ -72,21 +72,7 @@
72 72
73 //footer已登录 73 //footer已登录
74 { 74 {
75 - pageFooter: {  
76 - user: {  
77 - name: '',  
78 - url: '',  
79 - signoutUrl: ''  
80 - }  
81 - }  
82 - }  
83 -  
84 - //footer未登录  
85 - {  
86 - pageFooter: {  
87 - loginUrl: '',  
88 - signupUrl: ''  
89 - } 75 + pageFooter: true
90 } 76 }
91 77
92 ### 筛选 78 ### 筛选
@@ -737,4 +723,29 @@ @@ -737,4 +723,29 @@
737 ... 723 ...
738 ] 724 ]
739 725
  726 + }
  727 +
  728 +## 商品列表页
  729 + {
  730 + goodList: {
  731 + search: '', //是否显示搜索栏并指定初始值
  732 + brandWay: { //品牌入口
  733 + url: '',
  734 + thumb: '',
  735 + name: ''
  736 + },
  737 + brand: {
  738 + id: 0,
  739 + intro: '...'
  740 + },
  741 + new: [
  742 + {
  743 + ... //商品信息
  744 + },
  745 + ...
  746 + ],
  747 + filter: {
  748 + .. //筛选数据结构
  749 + }
  750 + }
740 } 751 }
1 {{> layout/header}} 1 {{> layout/header}}
2 <div class="good-list-page yoho-page"> 2 <div class="good-list-page yoho-page">
3 {{# goodList}} 3 {{# goodList}}
4 - {{# if search}} 4 + {{# search}}
5 <div id="search-input" class="search-input"> 5 <div id="search-input" class="search-input">
6 <i class="search-icon iconfont">&#xe60f;</i> 6 <i class="search-icon iconfont">&#xe60f;</i>
7 - <input type="text" value={{search}}> 7 + <input type="text" value={{default}}>
8 <i class="clear-input iconfont hide">&#xe61a;</i> 8 <i class="clear-input iconfont hide">&#xe61a;</i>
9 <button id="search" class="search">搜索</button> 9 <button id="search" class="search">搜索</button>
10 </div> 10 </div>
11 - {{/if}} 11 + {{/ search}}
12 12
13 {{# brandWay}} 13 {{# brandWay}}
14 <div class="brand-way"> 14 <div class="brand-way">