Authored by 周少峰

alike price

... ... @@ -1186,6 +1186,7 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => {
// 处理相似商品
result.alike = _.map(_.get(requestData, 'alike.data.product_list', ''), val =>{
val.market_price = val.market_price > val.sales_price ? val.market_price : '';
return Object.assign({url: Helpers.getUrlBySkc(val.product_skn)}, val);
});
... ...
... ... @@ -22,7 +22,9 @@
</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>
... ...