...
|
...
|
@@ -3,13 +3,14 @@ |
|
|
*/
|
|
|
|
|
|
var $ = require('yoho-jquery'),
|
|
|
dialog = require('../common/dialog'),
|
|
|
Alert = dialog.Alert,
|
|
|
Alert = require('../common/dialog').Alert,
|
|
|
$payWapper = $('.pay-wapper'),
|
|
|
giftsWinTpl = require('hbs/cart/cart-gifts-win-tpl.hbs'),
|
|
|
productInfoTpl = require('hbs/cart/cart-product-info-tpl.hbs'),
|
|
|
$goodsSelWin = $('#Y_goodsSelectWin'),
|
|
|
capi = require('./cart-api'),
|
|
|
GoodsWinAction,
|
|
|
|
|
|
// 显示赠品
|
|
|
giftBtn = ['[data-role=gift-view-btn]',
|
|
|
'[data-role=gift-resel-btn]',
|
...
|
...
|
@@ -17,23 +18,13 @@ var $ = require('yoho-jquery'), |
|
|
'[data-role=pg-sel-btn]',
|
|
|
'[data-role=pg-resel-btn]'];
|
|
|
|
|
|
$(function() {
|
|
|
$('.body-modal-black').css({
|
|
|
height: $(document).height(),
|
|
|
width: $(document).width()
|
|
|
});
|
|
|
});
|
|
|
function renderAndShowGiftWin(plist) {
|
|
|
$goodsSelWin.find('.content').empty().html(giftsWinTpl(plist));
|
|
|
|
|
|
capi.showMDialog('#Y_goodsSelectWinDialog');/*
|
|
|
$ModalOverflow.show();
|
|
|
$ModalOverflow.closest('body').css({'overflow': 'hidden', 'position': 'relative'});*/
|
|
|
capi.showMDialog('#Y_goodsSelectWinDialog');
|
|
|
}
|
|
|
|
|
|
/** 赠品加价购弹窗 **/
|
|
|
|
|
|
var GoodsWinAction = {
|
|
|
GoodsWinAction = {
|
|
|
showGiftWin: function() {
|
|
|
|
|
|
var $this = $(this);
|
...
|
...
|
@@ -86,7 +77,8 @@ var GoodsWinAction = { |
|
|
|
|
|
renderAndShowGiftWin(promotionInfo);
|
|
|
},
|
|
|
/*closeWin: function() {
|
|
|
|
|
|
/* closeWin: function() {
|
|
|
$ModalOverflow.hide();
|
|
|
},*/
|
|
|
changeGoods: function() {
|
...
|
...
|
|