...
|
...
|
@@ -4,11 +4,12 @@ |
|
|
|
|
|
var $ = require('yoho-jquery'),
|
|
|
Alert = require('../common/dialog').Alert,
|
|
|
$payWapper = $('.pay-wapper'),
|
|
|
capi = require('./cart-api'),
|
|
|
giftsWinTpl = require('hbs/cart/cart-gifts-win-tpl.hbs'),
|
|
|
productInfoTpl = require('hbs/cart/cart-product-info-tpl.hbs'),
|
|
|
productInfoTpl = require('hbs/cart/cart-product-info-tpl.hbs');
|
|
|
|
|
|
var $payWapper = $('.pay-wapper'),
|
|
|
$goodsSelWin = $('#Y_goodsSelectWin'),
|
|
|
capi = require('./cart-api'),
|
|
|
GoodsWinAction,
|
|
|
|
|
|
// 显示赠品
|
...
|
...
|
@@ -180,17 +181,15 @@ GoodsWinAction = { |
|
|
$curDetailBig.find('.con li').eq(bigPicIndex).addClass('active');
|
|
|
|
|
|
$sizes.eq(idx).each(function() {
|
|
|
if ($(this).find('.active').data('num') == 0) {
|
|
|
if ($(this).find('.active').data('num') === 0) {
|
|
|
$goodsSelWin.find('.addcart').addClass('none');
|
|
|
$goodsSelWin.find('.btn_sellOut').removeClass('none');
|
|
|
$goodsSelWin.find('.colorBox .active').addClass('disabled');
|
|
|
console.log("0000000000")
|
|
|
|
|
|
} else {
|
|
|
$goodsSelWin.find('.addcart').removeClass('none');
|
|
|
$goodsSelWin.find('.btn_sellOut').addClass('none');
|
|
|
$goodsSelWin.find('.colorBox .active').removeClass('disabled');
|
|
|
console.log("******0000000000");
|
|
|
|
|
|
return false;
|
|
|
}
|
...
|
...
|
@@ -199,6 +198,7 @@ GoodsWinAction = { |
|
|
selSize: function() {
|
|
|
|
|
|
var $this = $(this);
|
|
|
|
|
|
// var idx = $this.index();
|
|
|
var shopNumAll = $this.data('num');
|
|
|
|
...
|
...
|
|