...
|
...
|
@@ -55,11 +55,11 @@ GoodsWinAction = { |
|
|
if (role === 'pg-resel-btn') {
|
|
|
$selectedItem = $promotionPool.find('[data-role=pitem]')
|
|
|
.filter('[data-ispricegift]')
|
|
|
.filter('[data-promotionid=' + promotionid + ']');
|
|
|
.filter('[data-promotionid="' + promotionid + '"]');
|
|
|
} else if (role === 'gift-resel-btn') {
|
|
|
$selectedItem = $promotionPool.find('[data-role=pitem]')
|
|
|
.filter('[data-isgift]')
|
|
|
.filter('[data-promotionid=' + promotionid + ']');
|
|
|
.filter('[data-promotionid="' + promotionid + '"]');
|
|
|
}
|
|
|
|
|
|
if ($selectedItem && $selectedItem.length > 0) {
|
...
|
...
|
@@ -263,7 +263,7 @@ GoodsWinAction = { |
|
|
},
|
|
|
|
|
|
// 收藏
|
|
|
btnFav: function() {
|
|
|
btnFav: function(event) {
|
|
|
|
|
|
var favBtn = $('[data-role="fav-count"]');
|
|
|
var $this = $(this);
|
...
|
...
|
@@ -324,7 +324,8 @@ GoodsWinAction = { |
|
|
}).mouseleave(function() {
|
|
|
favBtn.find('em').text(colTxt.coled);
|
|
|
});
|
|
|
obj.stopPropagation();
|
|
|
|
|
|
event.stopPropagation();
|
|
|
|
|
|
}).fail(function() {
|
|
|
|
...
|
...
|
@@ -346,6 +347,10 @@ GoodsWinAction = { |
|
|
var promotionId = $this.closest('.product-detail-info').data('promotionid') || 0;
|
|
|
var isSwap = $this.closest('.product-detail-info').data('isswap');
|
|
|
|
|
|
if ($this.hasClass('btn-grey')) {
|
|
|
return capi.hideMDialog('#Y_goodsSelectWinDialog');
|
|
|
}
|
|
|
|
|
|
if ($curSize.length <= 0) {
|
|
|
$this.closest('.detail-info').find('.size-p-tip').show();
|
|
|
$this.closest('.detail-info').find('.submit').css('marginTop', '0');
|
...
|
...
|
|