...
|
...
|
@@ -30,6 +30,7 @@ var $main = $('.main'), |
|
|
secKill = $main.data('seckill') === 'Y',
|
|
|
limitCode = $main.data('limitcode');
|
|
|
|
|
|
var maxStock = -1; // 记录当前选中的颜色-尺码的库存量,若为-1,代表未选择尺码
|
|
|
var SLIDETIME = 200;
|
|
|
|
|
|
var colTxt = {
|
...
|
...
|
@@ -97,7 +98,7 @@ bindEvent.add(function() { |
|
|
|
|
|
var isTicket = $('input[name="isTicket"]').length > 0 && $('input[name="isTicket"]').val() === 'true';
|
|
|
|
|
|
var maxStock = -1; // 记录当前选中的颜色-尺码的库存量,若为-1,代表未选择尺码
|
|
|
|
|
|
|
|
|
var brandDomain = $('.home').attr('href');
|
|
|
|
...
|
...
|
@@ -1474,11 +1475,13 @@ $('.bottom-tab').on('click', '.bottom-title', function() { |
|
|
// 店铺推荐
|
|
|
$recommendComment.slideDown(SLIDETIME);
|
|
|
$latestWalk.slideUp(SLIDETIME);
|
|
|
$('.change').css('display','inline-block');
|
|
|
} else {
|
|
|
// 最近游览
|
|
|
fetchLatestWalk(); // eslint-disable-line
|
|
|
$recommendComment.slideUp(SLIDETIME);
|
|
|
$latestWalk.slideDown(SLIDETIME);
|
|
|
$('.change').css('display','none');
|
|
|
}
|
|
|
|
|
|
});
|
...
|
...
|
@@ -1589,6 +1592,16 @@ $('.redcar').on('click', '.option', function() { |
|
|
$this.addClass('fixed');
|
|
|
});
|
|
|
|
|
|
$('.redcar').on('click', function(){
|
|
|
var $addToCart = $('#add-to-cart');
|
|
|
var sc = $(document);
|
|
|
if(maxStock === -1){
|
|
|
sc.scrollTop(0);
|
|
|
}else{
|
|
|
$addToCart.trigger('click');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(function() {
|
|
|
$('.bottom-tab .change').click(function() {
|
|
|
$('.img-brand-switch .next').trigger('click');
|
...
|
...
|
|