Authored by yyq

Merge branch 'release/5.5' of git.yoho.cn:fe/yohobuy-node into release/5.5

... ... @@ -592,7 +592,10 @@ const formatCart = (cartDataRet, uid, shoppingKey, cartDelList) => {
promotionInfos: formatPromotionInfos(_.get(ordCartData, 'promotion_info'), goodsList),
stat: formatShoppingCartData(_.get(ordCartData, 'shopping_cart_data')),
ensureUrl: helpers.urlFormat('/cart/ensure')
ensureUrl: helpers.urlFormat('/cart/ensure'),
// 免运费提示
tips: _.get(ordCartData, 'shipping_cost_prompt.shipping_cost_tips', '')
};
let advStat = result.advanceCart.stat;
... ...
... ... @@ -21,7 +21,7 @@
</div>
{{#advanceCart}}
<div class="mb40" data-role="advance">
<div class="mb20" data-role="advance">
<!-- 预售商品 -->
<div class="pre-sell">
<code>预售商品</code>预售商品不参加活动,不可使用优惠券,不同上市期的商品我们将为您先到先发。
... ... @@ -73,6 +73,11 @@
{{#ordinaryCart}}
<div data-role="ordinary">
<!-- 预售商品 -->
<div class="pre-sell ordinary-sell">
<code>普通商品</code> {{tips}}
</div>
{{#pools}}
<div class="promotion-pool {{#unless @first}}mt20{{/unless}}" data-role="promotion-pool">
{{#if promotionInfos}}
... ...
... ... @@ -45,7 +45,7 @@
</div>
<div class="pkgDg-footer clearfix">
<p class="totalMoney left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;计:<em>{{pkgPrice}}</em></p>
<span id="pay-pkg" class="buy-product red-color right">
<span class="pay-pkg buy-product red-color right" data-bundleid="{{bundleId}}">
<em>立即购买</em>
</span>
</div>
... ...
... ... @@ -1610,7 +1610,7 @@ $('.package-box').on('click', '#buy-detail', function() {
var pkgDialog = new Dialog(opt); // eslint-disable-line
pkgDialog.show();
pkgDialog.$el.on('click', '#pay-pkg', function() {
pkgDialog.$el.on('click', '.pay-pkg', function() {
var product = pkgDialog.$el.find('.pkgDg-prodetal .pkg-product');
var idArr = [];
... ... @@ -1701,13 +1701,13 @@ $('.package-box').on('click', '#buy-detail', function() {
});
// 立即购买跳转
pkgDialog.$el.on('click', '#pay-pkg', function() {
pkgDialog.$el.on('click', '.pay-pkg', function() {
if (!window.getUid()) {
window.location.href = window.location.href + '#package';
return window.jumpUrl(window.signinUrl());
}
var bundleId = $('#package-pro').data('bundleid'), // eslint-disable-line
var bundleId = $(this).data('bundleid'), // eslint-disable-line
$selectedPkgSizes = $('.pkg-sizes .size:not(.hide)'),
flag = true,
skuList = [];
... ...
... ... @@ -274,6 +274,9 @@
margin-right: 30px;
}
}
.ordinary-sell {
padding-top: 0px;
}
.gift-sell {
border: 1px solid #e0e0e0;
... ...