...
|
...
|
@@ -297,11 +297,6 @@ function renderAndShowSelWin($item, pinfo) { |
|
|
var Cart = {
|
|
|
addToCart: function(params) {
|
|
|
|
|
|
$payWapper.find('.cart-item-check').each(function() {
|
|
|
|
|
|
var $item = $(this);
|
|
|
var $chk = $item.find('.cart-item-check');
|
|
|
if ($chk.hasClass('cart-item-checked')) {
|
|
|
},
|
|
|
toggleSelectOne: function() { // 单选
|
|
|
|
...
|
...
|
@@ -749,16 +744,16 @@ editTarget.find('.sizes-list.mb10').each(function() { |
|
|
var giftBtn = '[data-role=gift-view-btn],[data-role=gift-resel-btn],[data-role=gift-sel-btn]';
|
|
|
|
|
|
$('.shop-cart').on('click', giftBtn, function() {
|
|
|
var mtext = $(this).closest('[data-role=promotion-wrap]').find('textarea[data-role=gifts-cansel]').text();
|
|
|
var mhtml = $(this).closest('[data-role=promotion-wrap]').find('textarea[data-role=gifts-cansel]').html();
|
|
|
console.log(mtext);
|
|
|
console.log(mhtml);
|
|
|
var textJson = $.parseJSON(mtext);
|
|
|
var htmlJson = $.parseJSON(mhtml);
|
|
|
|
|
|
console.log(textJson);
|
|
|
console.log(htmlJson);
|
|
|
var $this = $(this);
|
|
|
var $win = $this.closest('[data-role=promotion-wrap]').find('[data-role=cart-gift-win]');
|
|
|
|
|
|
console.log($win.length);
|
|
|
$win.show();
|
|
|
});
|
|
|
|
|
|
$('.shop-cart').on('click', '[data-role="cart-gift-win"] .close', function(){
|
|
|
$(this).closest('[data-role="cart-gift-win"]').hide();
|
|
|
});
|
|
|
|
|
|
// 显示加价购 |
...
|
...
|
|