Authored by 郭成尧

Merge branch 'qCloud' of git.yoho.cn:fe/yohobuywap-node into qCloud

@@ -249,7 +249,7 @@ const _getContent = (data, params, isApp, appVersion) => { @@ -249,7 +249,7 @@ const _getContent = (data, params, isApp, appVersion) => {
249 } 249 }
250 250
251 // tar note 处理楼层标题 251 // tar note 处理楼层标题
252 - if (fun === 'getCoupon' && _.has(data[i - 1], 'template_name') && data[i - 1].template_name === 'text') { 252 + if (fun === 'getCoupon' && data[i].data.length && _.has(data[i - 1], 'template_name') && data[i - 1].template_name === 'text') {
253 data[i].data[0].floorTitle = data[i - 1].data; 253 data[i].data[0].floorTitle = data[i - 1].data;
254 } 254 }
255 build = processFun[fun](data[i].data, isApp); 255 build = processFun[fun](data[i].data, isApp);
1 'use strict'; 1 'use strict';
2 2
3 const api = global.yoho.API; 3 const api = global.yoho.API;
4 -const logger = global.yoho.logger;  
5 const utils = '../../../utils'; 4 const utils = '../../../utils';
6 const productProcess = require(`${utils}/product-process`); 5 const productProcess = require(`${utils}/product-process`);
7 6
@@ -29,8 +28,6 @@ const mayLike = (uid, page, limit, gender, udid, recPos, channel) => { @@ -29,8 +28,6 @@ const mayLike = (uid, page, limit, gender, udid, recPos, channel) => {
29 } 28 }
30 } 29 }
31 30
32 - } else {  
33 - logger.error('mayLike cood 不是 200');  
34 } 31 }
35 }); 32 });
36 }; 33 };
@@ -54,8 +51,6 @@ const mayLikeKids = (page, limit, channel) => { @@ -54,8 +51,6 @@ const mayLikeKids = (page, limit, channel) => {
54 return productProcess.processProductList(result.data.product_list); 51 return productProcess.processProductList(result.data.product_list);
55 52
56 } 53 }
57 - } else {  
58 - logger.error('mayLikeKids cood 不是 200');  
59 } 54 }
60 }); 55 });
61 }; 56 };
@@ -2,24 +2,24 @@ @@ -2,24 +2,24 @@
2 <div class="good-info {{#if @root.saleViplogin}}sale-vip{{/if}}" data-good-id="{{product_id}}" data-id="{{product_skn}}" data-bp-id="guang_goodList_{{product_name}}_false"> 2 <div class="good-info {{#if @root.saleViplogin}}sale-vip{{/if}}" data-good-id="{{product_id}}" data-id="{{product_skn}}" data-bp-id="guang_goodList_{{product_name}}_false">
3 <div class="tag-container clearfix"> 3 <div class="tag-container clearfix">
4 {{# tags}} 4 {{# tags}}
5 - {{# is_new}} 5 + {{# isNew}}
6 <p class="good-tag new-tag">NEW</p> 6 <p class="good-tag new-tag">NEW</p>
7 - {{/ is_new}}  
8 - {{# is_hot}} 7 + {{/ isNew}}
  8 + {{# isHot}}
9 <p class="good-tag hot-tag">HOT</p> 9 <p class="good-tag hot-tag">HOT</p>
10 - {{/ is_hot}}  
11 - {{# is_advance}} 10 + {{/ isHot}}
  11 + {{# isAdvance}}
12 <p class="good-tag renew-tag">再到着</p> 12 <p class="good-tag renew-tag">再到着</p>
13 - {{/ is_advance}}  
14 - {{# is_discount}} 13 + {{/ isAdvance}}
  14 + {{# isDiscount}}
15 <p class="good-tag sale-tag">SALE</p> 15 <p class="good-tag sale-tag">SALE</p>
16 - {{/ is_discount}}  
17 - {{# is_yohood}} 16 + {{/ isDiscount}}
  17 + {{# isYohood}}
18 <p class="good-tag new-festival-tag">新品节</p> 18 <p class="good-tag new-festival-tag">新品节</p>
19 - {{/ is_yohood}}  
20 - {{# is_limited}} 19 + {{/ isYohood}}
  20 + {{# isLimited}}
21 <p class="good-tag limit-tag">限量商品</p> 21 <p class="good-tag limit-tag">限量商品</p>
22 - {{/ is_limited}} 22 + {{/ isLimited}}
23 {{/ tags}} 23 {{/ tags}}
24 </div> 24 </div>
25 <div class="good-detail-img"> 25 <div class="good-detail-img">