Authored by lore-w

商品列表页模板修改 code review by liuyue

1 {{> layout/header}} 1 {{> layout/header}}
2 -<div class="product-list-page yoho-page"> 2 +<div class="product-list-page product-page yoho-page">
3 {{# list}} 3 {{# list}}
4 {{# brandBanner}} 4 {{# brandBanner}}
5 <div class="brand-banner"> 5 <div class="brand-banner">
@@ -31,73 +31,7 @@ @@ -31,73 +31,7 @@
31 </div> 31 </div>
32 {{^}} 32 {{^}}
33 <div class="list-left pull-left"> 33 <div class="list-left pull-left">
34 - {{# allDiscount}}  
35 - <div class="sort-container">  
36 - <ul class="sort-child-list new-sale">  
37 - <li><a href="{{href}}">全部折扣</a><span>{{updateNum}}</span></li>  
38 - {{#each list}}  
39 - <li><a href="{{href}}">{{name}}</a><span>{{num}}</span></li>  
40 - {{/each}}  
41 - </ul>  
42 - </div>  
43 - {{/ allDiscount}}  
44 -  
45 - {{# newSales}}  
46 - <div class="sort-container">  
47 - <h2>一周新品上架<span>{{updateNum}}</span></h2>  
48 - <ul class="sort-child-list new-sale">  
49 - {{#each list}}  
50 - <li><a href="{{href}}">{{name}}</a><span>{{num}}</span></li>  
51 - {{/each}}  
52 - </ul>  
53 - </div>  
54 - {{/ newSales}}  
55 -  
56 - {{# allSort}}  
57 - <div class="sort-container">  
58 - <h2>全部品类<span>{{updateNum}}</span></h2>  
59 - <ul>  
60 - {{#each list}}  
61 - <li class="product-list-nav">  
62 - <h3>  
63 - <span class="icon-triangle"></span>  
64 - {{name}}<span>{{num}}</span>  
65 - </h3>  
66 - <ul class="sort-child-list">  
67 - {{#each childList}}  
68 - <li>  
69 - <a href="{{href}}">{{name}}</a>  
70 - <span>{{num}}</span>  
71 - </li>  
72 - {{/each}}  
73 - </ul>  
74 - </li>  
75 - {{/each}}  
76 - </ul>  
77 - </div>  
78 - {{/ allSort}}  
79 -  
80 - {{# advNav}}  
81 - {{# advNavTitle}}  
82 - <h2 class="nav-pic-title">{{.}}</h2>  
83 - {{/advNavTitle}}  
84 - <ul class="pic-nav">  
85 - {{#each list}}  
86 - <li><a href="{{href}}"><img src="{{src}}" alt=""/></a></li>  
87 - {{/each}}  
88 - </ul>  
89 - {{/advNav}}  
90 -  
91 - {{#advPic}}  
92 - {{# advPicTitle}}  
93 - <h2 class="nav-pic-title">{{.}}</h2>  
94 - {{/ advPicTitle}}  
95 - <ul class="pic-nav">  
96 - {{#each list}}  
97 - <li><a href="{{href}}"><img src="{{src}}" alt=""/></a></li>  
98 - {{/each}}  
99 - </ul>  
100 - {{/advPic}} 34 + {{> product/left-content}}
101 </div> 35 </div>
102 <div class="list-right pull-right"> 36 <div class="list-right pull-right">
103 {{# shopEntry}} 37 {{# shopEntry}}
@@ -126,23 +60,9 @@ @@ -126,23 +60,9 @@
126 </div> 60 </div>
127 {{/ shopEntry}} 61 {{/ shopEntry}}
128 62
129 - {{# filters}}  
130 - {{> product/filter-box}}  
131 - {{/ filters}} 63 + {{> product/standard-content}}
132 64
133 - {{# opts}}  
134 - {{> product/sort-pager}}  
135 - {{/ opts}}  
136 -  
137 - <div class="goods-container clearfix">  
138 - {{#each goods}}  
139 - {{> product/good}}  
140 - {{/each}}  
141 - <div class="good-item-wrapper">  
142 - <div class="good-info-main"></div>  
143 - <div class="good-select-color"></div>  
144 - </div>  
145 - </div> 65 + {{> product/latest-walk}}
146 </div> 66 </div>
147 {{/ brandAbout}} 67 {{/ brandAbout}}
148 </div> 68 </div>
1 {{> layout/header}} 1 {{> layout/header}}
2 -<div class="product-list-page yoho-page"> 2 +<div class="product-list-page product-page yoho-page">
3 {{# list}} 3 {{# list}}
4 {{# brandBanner}} 4 {{# brandBanner}}
5 <div class="brand-banner"> 5 <div class="brand-banner">
@@ -31,73 +31,7 @@ @@ -31,73 +31,7 @@
31 </div> 31 </div>
32 {{^}} 32 {{^}}
33 <div class="list-left pull-left"> 33 <div class="list-left pull-left">
34 - {{# allDiscount}}  
35 - <div class="sort-container">  
36 - <ul class="sort-child-list new-sale">  
37 - <li><a href="{{href}}">全部折扣</a><span>{{updateNum}}</span></li>  
38 - {{#each list}}  
39 - <li><a href="{{href}}">{{name}}</a><span>{{num}}</span></li>  
40 - {{/each}}  
41 - </ul>  
42 - </div>  
43 - {{/ allDiscount}}  
44 -  
45 - {{# newSales}}  
46 - <div class="sort-container">  
47 - <h2>一周新品上架<span>{{updateNum}}</span></h2>  
48 - <ul class="sort-child-list new-sale">  
49 - {{#each list}}  
50 - <li><a href="{{href}}">{{name}}</a><span>{{num}}</span></li>  
51 - {{/each}}  
52 - </ul>  
53 - </div>  
54 - {{/ newSales}}  
55 -  
56 - {{# allSort}}  
57 - <div class="sort-container">  
58 - <h2>全部品类<span>{{updateNum}}</span></h2>  
59 - <ul>  
60 - {{#each list}}  
61 - <li class="product-list-nav">  
62 - <h3>  
63 - <span class="icon-triangle"></span>  
64 - {{name}}<span>{{num}}</span>  
65 - </h3>  
66 - <ul class="sort-child-list">  
67 - {{#each childList}}  
68 - <li>  
69 - <a href="{{href}}">{{name}}</a>  
70 - <span>{{num}}</span>  
71 - </li>  
72 - {{/each}}  
73 - </ul>  
74 - </li>  
75 - {{/each}}  
76 - </ul>  
77 - </div>  
78 - {{/ allSort}}  
79 -  
80 - {{# advNav}}  
81 - {{# advNavTitle}}  
82 - <h2 class="nav-pic-title">{{.}}</h2>  
83 - {{/advNavTitle}}  
84 - <ul class="pic-nav">  
85 - {{#each list}}  
86 - <li><a href="{{href}}"><img src="{{src}}" alt=""/></a></li>  
87 - {{/each}}  
88 - </ul>  
89 - {{/advNav}}  
90 -  
91 - {{#advPic}}  
92 - {{# advPicTitle}}  
93 - <h2 class="nav-pic-title">{{.}}</h2>  
94 - {{/ advPicTitle}}  
95 - <ul class="pic-nav">  
96 - {{#each list}}  
97 - <li><a href="{{href}}"><img src="{{src}}" alt=""/></a></li>  
98 - {{/each}}  
99 - </ul>  
100 - {{/advPic}} 34 + {{> product/left-content}}
101 </div> 35 </div>
102 <div class="list-right pull-right"> 36 <div class="list-right pull-right">
103 {{# shopEntry}} 37 {{# shopEntry}}
@@ -126,23 +60,9 @@ @@ -126,23 +60,9 @@
126 </div> 60 </div>
127 {{/ shopEntry}} 61 {{/ shopEntry}}
128 62
129 - {{# filters}}  
130 - {{> product/filter-box}}  
131 - {{/ filters}} 63 + {{> product/standard-content}}
132 64
133 - {{# opts}}  
134 - {{> product/sort-pager}}  
135 - {{/ opts}}  
136 -  
137 - <div class="goods-container clearfix">  
138 - {{#each goods}}  
139 - {{> product/good}}  
140 - {{/each}}  
141 - <div class="good-item-wrapper">  
142 - <div class="good-info-main"></div>  
143 - <div class="good-select-color"></div>  
144 - </div>  
145 - </div> 65 + {{> product/latest-walk}}
146 </div> 66 </div>
147 {{/ brandAbout}} 67 {{/ brandAbout}}
148 </div> 68 </div>
1 {{> layout/header}} 1 {{> layout/header}}
2 -<div class="product-search-page yoho-page center-content"> 2 +<div class="product-search-page product-page yoho-page center-content">
3 {{# search}} 3 {{# search}}
4 {{> layout/path-nav}} 4 {{> layout/path-nav}}
5 5
6 - {{# filters}}  
7 - {{> product/filter-box}}  
8 - {{/ filters}} 6 + {{> product/standard-content}}
9 7
10 - {{# opts}}  
11 - {{> product/sort-pager}}  
12 - {{/ opts}}  
13 -  
14 - <div class="goods-container clearfix">  
15 - {{#each goods}}  
16 - {{> product/good}}  
17 - {{/each}}  
18 - <div class="good-item-wrapper">  
19 - <div class="good-info-main"></div>  
20 - <div class="good-select-color"></div>  
21 - </div>  
22 - </div> 8 + {{> product/latest-walk}}
23 {{/ search}} 9 {{/ search}}
24 </div> 10 </div>
25 {{> layout/footer}} 11 {{> layout/footer}}