Authored by 姜枫

fix bugs

@@ -40,7 +40,7 @@ const Query = { @@ -40,7 +40,7 @@ const Query = {
40 name: query ? `"${query}" ${data.total}个结果` : `共${data.total || 0}个结果` 40 name: query ? `"${query}" ${data.total}个结果` : `共${data.total || 0}个结果`
41 }); 41 });
42 42
43 - if (data.filter) { 43 + if (data.filter && data.total) {
44 data.filter.standard = data.standard; 44 data.filter.standard = data.standard;
45 45
46 retData.filter = DataHelper.filterHandle(data.filter, q); 46 retData.filter = DataHelper.filterHandle(data.filter, q);
@@ -246,7 +246,7 @@ const helpers = { @@ -246,7 +246,7 @@ const helpers = {
246 let filters = []; 246 let filters = [];
247 let customPriceLow = ''; 247 let customPriceLow = '';
248 let customPriceHigh = ''; 248 let customPriceHigh = '';
249 - let showSize = (!!q.msort || !!q.misort) && sizeInfo; 249 + let showSize = (!!q.msort || !!q.misort || !!q.sort) && sizeInfo;
250 250
251 genders.forEach(g => { 251 genders.forEach(g => {
252 if (g.value === q.gender) { 252 if (g.value === q.gender) {
@@ -208,7 +208,7 @@ const setPathNav = (data, name, channel) => { @@ -208,7 +208,7 @@ const setPathNav = (data, name, channel) => {
208 link: helpers.urlFormat(`/${link}`), 208 link: helpers.urlFormat(`/${link}`),
209 name: `${_.toUpper(channel)}首页` 209 name: `${_.toUpper(channel)}首页`
210 }]; 210 }];
211 - let sort = data.sort[0]; 211 + let sort = data.sort[0] || {};
212 212
213 navs.push({ 213 navs.push({
214 link: helpers.urlFormat('/list', { 214 link: helpers.urlFormat('/list', {
@@ -132,6 +132,7 @@ const ShopService = { @@ -132,6 +132,7 @@ const ShopService = {
132 info.brandId = domainInfo.id; 132 info.brandId = domainInfo.id;
133 info.shopId = domainInfo.shopId; 133 info.shopId = domainInfo.shopId;
134 info.brandBanner = domainInfo.brandBanner; 134 info.brandBanner = domainInfo.brandBanner;
  135 + info.info = domainInfo.brandIntro;
135 } 136 }
136 137
137 if (info.shopId) { 138 if (info.shopId) {
@@ -160,7 +161,7 @@ const ShopService = { @@ -160,7 +161,7 @@ const ShopService = {
160 let brandInfo = yield BrandService.getBrandInfo(info.brandId, uid); 161 let brandInfo = yield BrandService.getBrandInfo(info.brandId, uid);
161 162
162 info.name = brandInfo.brandName; 163 info.name = brandInfo.brandName;
163 - info.info = brandInfo.brandIntro; 164 + // info.info = brandInfo.brandIntro;
164 info.btnName = '品牌介绍'; 165 info.btnName = '品牌介绍';
165 info.isFavorite = brandInfo.isFavorite === 'Y'; 166 info.isFavorite = brandInfo.isFavorite === 'Y';
166 info.banner = info.brandBanner; 167 info.banner = info.brandBanner;
@@ -6,29 +6,30 @@ @@ -6,29 +6,30 @@
6 </div> 6 </div>
7 7
8 <div class="center-content clearfix"> 8 <div class="center-content clearfix">
9 - <div class="left">  
10 - {{!-- 筛选区域 --}}  
11 - {{#filter}} 9 + {{#filter}}
  10 + <div class="left">
  11 + {{!-- 筛选区域 --}}
12 {{> list/filter}} 12 {{> list/filter}}
13 - {{/filter}}  
14 - </div>  
15 - <div class="right">  
16 - {{!-- 已选中条件 --}}  
17 - {{#filter}}  
18 - {{> list/filter-area}}  
19 - {{/filter}}  
20 - {{#if paginationData.total}}  
21 - {{!-- 排序 --}} 13 + </div>
  14 + {{/filter}}
  15 + {{#if paginationData.total}}
  16 + <div class="right">
  17 + {{!-- 已选中条件 --}}
  18 + {{#filter}}
  19 + {{> list/filter-area}}
  20 + {{/filter}}
  21 +
  22 + {{!-- 排序 --}}
22 {{> list/order-area}} 23 {{> list/order-area}}
23 {{!-- 商品列表 --}} 24 {{!-- 商品列表 --}}
24 {{> list/goods-box}} 25 {{> list/goods-box}}
25 {{!-- 分页 --}} 26 {{!-- 分页 --}}
26 {{{ pagination paginationData }}} 27 {{{ pagination paginationData }}}
27 - {{^}}  
28 - {{!-- 空结果 --}}  
29 - {{> list/empty}}  
30 - {{/if}}  
31 - </div> 28 + </div>
  29 + {{^}}
  30 + {{!-- 空结果 --}}
  31 + {{> list/empty}}
  32 + {{/if}}
32 </div> 33 </div>
33 34
34 35
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 </a> 13 </a>
14 14
15 <span id="brand-fav" class="brand-fav{{#if isFavorite}} coled{{/if}}"> 15 <span id="brand-fav" class="brand-fav{{#if isFavorite}} coled{{/if}}">
16 - {{> icon/collection}} 16 + <i class="iconfont">&#xe627;</i>
17 </span> 17 </span>
18 </p> 18 </p>
19 </div> 19 </div>
@@ -203,3 +203,5 @@ @@ -203,3 +203,5 @@
203 </div> 203 </div>
204 204
205 {{/if}} 205 {{/if}}
  206 +
  207 +<div class="blank-div" style="margin-bottom: 10px;"></div>
@@ -31,6 +31,10 @@ @@ -31,6 +31,10 @@
31 color: #999; 31 color: #999;
32 } 32 }
33 33
  34 + .checkbox {
  35 + font-size: 14px;
  36 + }
  37 +
34 .checked { 38 .checked {
35 color: #1b1b1b; 39 color: #1b1b1b;
36 } 40 }
@@ -315,7 +319,7 @@ @@ -315,7 +319,7 @@
315 319
316 .goods-brand { 320 .goods-brand {
317 font-weight: 700; 321 font-weight: 700;
318 - padding: 10px; 322 + padding: 10px 10px 4px;
319 overflow: hidden; 323 overflow: hidden;
320 text-overflow: ellipsis; 324 text-overflow: ellipsis;
321 white-space: nowrap; 325 white-space: nowrap;
@@ -344,7 +348,7 @@ @@ -344,7 +348,7 @@
344 } 348 }
345 349
346 .goods-name { 350 .goods-name {
347 - padding: 4px 10px 10px; 351 + padding: 10px;
348 width: 263px; 352 width: 263px;
349 overflow: hidden; 353 overflow: hidden;
350 text-overflow: ellipsis; 354 text-overflow: ellipsis;