Authored by htoooth

fix css

@@ -9,7 +9,8 @@ @@ -9,7 +9,8 @@
9 </span> 9 </span>
10 10
11 <span class="bundle {{#if_cond bundle.type "!=" 2}}hide{{/if_cond}}"> 11 <span class="bundle {{#if_cond bundle.type "!=" 2}}hide{{/if_cond}}">
12 - {{bundle.count}} 件起购 12 + {{bundle.count}}件起购享{{bundle.discount}}折优惠
  13 +
13 </span> 14 </span>
14 15
15 <span class="few-sold hide"> 16 <span class="few-sold hide">
@@ -183,9 +183,9 @@ function dataLazyLoad(doc) { @@ -183,9 +183,9 @@ function dataLazyLoad(doc) {
183 this.fn(); 183 this.fn();
184 184
185 var _this = this; 185 var _this = this;
186 - Util.addEvent(window, "scroll", $.throttle(500, true, _this.fn));  
187 - Util.addEvent(window, "resize", $.throttle(500, true, _this.fn));  
188 - Util.addEvent(doc.body, "touchMove", $.throttle(500, true, _this.fn)); 186 + Util.addEvent(window, "scroll", _this.fn);
  187 + Util.addEvent(window, "resize", _this.fn);
  188 + Util.addEvent(doc.body, "touchMove", _this.fn);
189 return this; 189 return this;
190 } 190 }
191 }; 191 };
@@ -1858,6 +1858,8 @@ $(window).scroll(function() { @@ -1858,6 +1858,8 @@ $(window).scroll(function() {
1858 }); 1858 });
1859 1859
1860 $('.shoppingCar').on('click', '.option', function(e) { 1860 $('.shoppingCar').on('click', '.option', function(e) {
  1861 + e.stopPropagation();
  1862 +
1861 var $this = $(this); 1863 var $this = $(this);
1862 1864
1863 if ($this.hasClass('fixed')) { 1865 if ($this.hasClass('fixed')) {
@@ -1867,17 +1869,15 @@ $('.shoppingCar').on('click', '.option', function(e) { @@ -1867,17 +1869,15 @@ $('.shoppingCar').on('click', '.option', function(e) {
1867 $this.closest('li').siblings().find('.option').removeClass('fixed'); 1869 $this.closest('li').siblings().find('.option').removeClass('fixed');
1868 $this.addClass('fixed'); 1870 $this.addClass('fixed');
1869 1871
1870 - if ($this.hasClass('comment')) {  
1871 - window.fetchComment();  
1872 - window.fetchRecommend();  
1873 - } else if ($this.hasClass('consult')) {  
1874 - window.fetchConsult();  
1875 - window.fetchRecommend(); 1872 + if ($this.hasClass('comment') || $this.hasClass('consult')) {
  1873 + $.when(window.fetchComment(), window.fetchConsult(), window.fetchRecommend()).always(function() {
  1874 + _scrollTo($($this.data('el')));
  1875 + });
  1876 +
  1877 + return;
1876 } 1878 }
1877 1879
1878 _scrollTo($($this.data('el'))); 1880 _scrollTo($($this.data('el')));
1879 -  
1880 - e.stopPropagation();  
1881 }); 1881 });
1882 1882
1883 $('.shoppingCar-btn').on('click', function() { 1883 $('.shoppingCar-btn').on('click', function() {