Authored by 张文文

一件代发商品隐藏加入购物车按钮 review by lea.guo

... ... @@ -1059,6 +1059,9 @@ function _detailDataPkg(origin, uid, vipLevel, cookies) {
result.smallSortId = propOrigin('smallSortId', '');
result.middleSortId = propOrigin('middleSortId', '');
// 一件代发
result.isSellOneType = propOrigin('sellType') === 30 ? true : false;
result.goCartUrl = helpers.urlFormat('/cart/cart');
// 普通预售
... ...
... ... @@ -138,7 +138,7 @@
<span class="buy-btn dis"> <i class="iconfont">&#xe61c;</i> 非卖品 </span>
{{/if}}
{{#if addToCart}}
<span id="add-to-cart" class="buy-btn item-buy add-to-cart"> <i class="iconfont">
<span id="add-to-cart" class="buy-btn{{#if isSellOneType}} hidden{{/if}} item-buy add-to-cart"> <i class="iconfont">
&#xe600;</i> 加入购物车 </span>
{{/if}}
... ...
... ... @@ -760,6 +760,10 @@
&.dis {
background: #ccc;
}
&.hidden {
display: none;
}
}
.buy-now {
... ...