Authored by 周少峰

shop rec market price

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