Authored by 刘传洋

m

... ... @@ -139,6 +139,10 @@ const formatCartGoods = (cartGoods, isAdvanceCart, inValid, isOffShelves, analys
if (it.min_buy_number) {
goods.minBuyNumber = Number(it.min_buy_number);
if(goods.minBuyNumber > 1) {
goods.tipMessage = goods.minBuyNumber + '件起购';
}
}
// 已下架
... ...
... ... @@ -5,6 +5,8 @@
var $ = require('yoho-jquery'),
Alert = require('../common/dialog').Alert,
capi = require('./cart-api'),
rDialog = require('./rdialog'),
RAlert = rDialog.RAlert,
giftsWinTpl = require('hbs/cart/cart-gifts-win-tpl.hbs'),
productInfoTpl = require('hbs/cart/cart-product-info-tpl.hbs');
... ... @@ -20,6 +22,11 @@ var $cartListWrap = $('#Y_CartListWrap'),
'[data-role=pg-resel-btn]'];
function renderAndShowGiftWin(plist) {
if(!plist.goodsList || !plist.goodsList.length) {
new RAlert('<div class="alert-main">已抢光</div>');
return;
}
$goodsSelWin.find('.detail-body').empty().html(giftsWinTpl(plist));
capi.showMDialog('#Y_goodsSelectWinDialog');
... ...