...
|
...
|
@@ -1858,6 +1858,8 @@ $(window).scroll(function() { |
|
|
});
|
|
|
|
|
|
$('.shoppingCar').on('click', '.option', function(e) {
|
|
|
e.stopPropagation();
|
|
|
|
|
|
var $this = $(this);
|
|
|
|
|
|
if ($this.hasClass('fixed')) {
|
...
|
...
|
@@ -1867,17 +1869,15 @@ $('.shoppingCar').on('click', '.option', function(e) { |
|
|
$this.closest('li').siblings().find('.option').removeClass('fixed');
|
|
|
$this.addClass('fixed');
|
|
|
|
|
|
if ($this.hasClass('comment')) {
|
|
|
window.fetchComment();
|
|
|
window.fetchRecommend();
|
|
|
} else if ($this.hasClass('consult')) {
|
|
|
window.fetchConsult();
|
|
|
window.fetchRecommend();
|
|
|
if ($this.hasClass('comment') || $this.hasClass('consult')) {
|
|
|
$.when(window.fetchComment(), window.fetchConsult(), window.fetchRecommend()).always(function() {
|
|
|
_scrollTo($($this.data('el')));
|
|
|
});
|
|
|
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
_scrollTo($($this.data('el')));
|
|
|
|
|
|
e.stopPropagation();
|
|
|
});
|
|
|
|
|
|
$('.shoppingCar-btn').on('click', function() {
|
...
|
...
|
|