Authored by 李靖

提示样式修改

... ... @@ -27,9 +27,12 @@
<div class="cart-content normal-good active">
{{#commonCart}}
{{#if shipCost.shippingTip}}
<div class="tips">
{{shipCost.shippingTip}}
</div>
<a class="tips" href="/product/boys-new/">
<div>
{{shipCost.shippingTip}}
</div>
<span class="iconfont free-shipping">{{#if shipCost.freeShipping}}去凑单{{/if}}&nbsp;&#xe604;</span>
</a>
{{/if}}
{{> cart-content}}
{{/commonCart}}
... ...
... ... @@ -12,13 +12,30 @@
.tips {
margin-top: -20px;
height: 54px;
line-height: 54px;
height: 70px;
line-height: 70px;
font-size: 25px;
background: #f0f0f0;
color: #b7b7b7;
background: #ff7f81;
color: #fff;
padding-left: 30px;
padding-right: 30px;
display: block;
div {
width: 570px;
float: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.free-shipping {
font-size: 25px;
width: 120px;
float: left;
text-align: right;
color: #fff;
}
}
.presell-info {
... ...
... ... @@ -356,7 +356,8 @@ const procCartData = (data, isAdvanceCart) => {
}
result.shipCost = {
isFree: _.get(data, 'shipping_cost_prompt.is_shipping_cost_free', 'N'),
shippingTip: _.get(data, 'shipping_cost_prompt.shipping_cost_tips', '').replace(/¥/g, '¥')
shippingTip: _.get(data, 'shipping_cost_prompt.shipping_cost_tips', '').replace(/¥/g, '¥'),
freeShipping: _.get(data, 'shipping_cost_prompt.is_shipping_cost_free', 'N') === 'Y'
};
// 计算正常商品且有库存的总数
... ...