Authored by htoooth

fix css

... ... @@ -9,7 +9,8 @@
</span>
<span class="bundle {{#if_cond bundle.type "!=" 2}}hide{{/if_cond}}">
{{bundle.count}} 件起购
{{bundle.count}}件起购享{{bundle.discount}}折优惠
</span>
<span class="few-sold hide">
... ...
... ... @@ -183,9 +183,9 @@ function dataLazyLoad(doc) {
this.fn();
var _this = this;
Util.addEvent(window, "scroll", $.throttle(500, true, _this.fn));
Util.addEvent(window, "resize", $.throttle(500, true, _this.fn));
Util.addEvent(doc.body, "touchMove", $.throttle(500, true, _this.fn));
Util.addEvent(window, "scroll", _this.fn);
Util.addEvent(window, "resize", _this.fn);
Util.addEvent(doc.body, "touchMove", _this.fn);
return this;
}
};
... ...
... ... @@ -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() {
... ...