...
|
...
|
@@ -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');
|
|
|
|
...
|
...
|
|