Authored by 刘传洋

m

... ... @@ -361,11 +361,11 @@ Cart = {
var $firstGift = $('[data-role="gift-sel-btn"]');
var $sitem = $firstGift;
if(!$sitem.is(':visible')) {
if (!$sitem.is(':visible')) {
$sitem = $sitem.closest('.sale-info');
}
$('html,body').animate({scrollTop: $sitem.offset().top - 50 + 'px'}, 500, 'swing', function(){
$('html,body').animate({scrollTop: $sitem.offset().top - 50 + 'px'}, 500, 'swing', function() {
$firstGift.click();
});
}, function() {
... ...