|
@@ -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
|
|