Authored by zhangxiaoru

购物车页 加价购 赠品

... ... @@ -6,9 +6,9 @@
<div class="deps">
<p class="name row">{{name}}</p>
<p class="row">
<span class="price">&yen;{{#if price}}{{price}}{{else}}{{marketPrice}}{{/if}}</span>
{{#if price}}
<span class="price market-price">&yen;{{marketPrice}}</span>
<span class="price">&yen;{{#if price}}{{price}}{{else}}{{salesPrice}}{{/if}}</span>
{{#if salesPrice}}
<span class="price market-price">&yen;{{salesPrice}}</span>
{{/if}}
</p>
<span class="chose">选择</span>
... ...
... ... @@ -61,6 +61,7 @@
<div class="bottom">
<div class="price{{#if reAddToCart}} pull-left{{/if}}">
<span class="market-price">¥{{price}}</span>
{{#if salesPrice}}<span class="sales-price">¥{{salesPrice}}</span>{{/if}}
{{#if isStudents}}<span class="vip fill-text"></span>{{/if}}
{{#if isVipPrice}}<span class="vip fill-text">VIP</span>{{/if}}
</div>
... ...
... ... @@ -228,6 +228,12 @@
font-size: 28px;
color: #d0253b;
.sales-price {
color: #b6b6b6;
margin-left: 5px;
text-decoration: line-through;
}
.vip {
margin-left: 11px;
background-color: #d0021b;
... ...
... ... @@ -71,8 +71,8 @@ const formatAdvanceGoods = (gifts, isGift) => {
id: good.product_skn,
name: good.product_name,
thumb: good.goods_images ? helpers.image(good.goods_images, 120, 160) : '',
price: transPrice(good.last_price),
marketPrice: isGift ? '0.00' : transPrice(good.market_price),
price: isGift ? '0.00' : transPrice(good.last_price),
salesPrice: good.last_price !== good.sales_price ? transPrice(good.sales_price) : false,
count: good.storage_number
};
})
... ... @@ -105,6 +105,7 @@ const formatCartGoods = (goodData, isAdvanceCart, isValid, inValidLow) => {
size: goodData.size_name,
checked: goodData.selected === 'Y',
price: transPrice(goodData.last_vip_price),
salesPrice: goodData.sales_price !== goodData.last_vip_price ? transPrice(goodData.sales_price) : false,
isVipPrice: goodData.sales_price !== goodData.last_vip_price && goodData.discount_tag === 'V',
isStudents: goodData.sales_price !== goodData.last_vip_price && goodData.discount_tag === 'S',
count: goodData.buy_number,
... ...