Authored by 周少峰

shop rec market price

@@ -1192,9 +1192,9 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => { @@ -1192,9 +1192,9 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => {
1192 result.recommendKeywords = getKeywordsInfo(recommendKeywords); 1192 result.recommendKeywords = getKeywordsInfo(recommendKeywords);
1193 1193
1194 // 处理店铺推荐 1194 // 处理店铺推荐
1195 - result.shopRecommend = _.map(_.get(requestData, 'shopRecommend.data.product_list', ''), val =>{  
1196 - return Object.assign({url: Helpers.getUrlBySkc(val.product_skn)}, val);  
1197 - }); 1195 + result.shopRecommend = productProcess.processProductList(
  1196 + _.get(requestData, 'shopRecommend.data.product_list', '')
  1197 + );
1198 1198
1199 // 商品标签 1199 // 商品标签
1200 result.tags = _getTagsDataByProductInfo(origin); 1200 result.tags = _getTagsDataByProductInfo(origin);
@@ -1676,7 +1676,7 @@ const recommendAsync = (skn, page, limit) => { @@ -1676,7 +1676,7 @@ const recommendAsync = (skn, page, limit) => {
1676 1676
1677 let products = _.get(recommendData, 'data.product_list', []).map((rp) => { 1677 let products = _.get(recommendData, 'data.product_list', []).map((rp) => {
1678 let salePrice = rp.sales_price; 1678 let salePrice = rp.sales_price;
1679 - let marketPrice = rp.market_price; 1679 + let marketPrice = rp.market_price > rp.market_price ? rp.market_price : '';
1680 1680
1681 let defaultGoods = _.find(rp.goods_list, {is_default: 'Y'}); 1681 let defaultGoods = _.find(rp.goods_list, {is_default: 'Y'});
1682 1682
@@ -39,7 +39,7 @@ @@ -39,7 +39,7 @@
39 </a> 39 </a>
40 <a class="name" href="{{url}}" target="_blank">{{product_name}}</a> 40 <a class="name" href="{{url}}" target="_blank">{{product_name}}</a>
41 <p class="price"> 41 <p class="price">
42 - <span class="market-price">¥{{market_price}}</span> 42 + {{#if market_price}}<span class="market-price">¥{{market_price}}</span>{{/if}}
43 <span class="sale-price">¥{{sales_price}}</span> 43 <span class="sale-price">¥{{sales_price}}</span>
44 </p> 44 </p>
45 </div> 45 </div>