Authored by hf

Merge branch 'develop' into test

@@ -79,6 +79,9 @@ if ('advance' === cartType) { @@ -79,6 +79,9 @@ if ('advance' === cartType) {
79 $cartContent.toggleClass('hide'); 79 $cartContent.toggleClass('hide');
80 $('#common-cart-nav').removeClass('active'); 80 $('#common-cart-nav').removeClass('active');
81 $('#presell-cart-nav').addClass('active'); 81 $('#presell-cart-nav').addClass('active');
  82 + $('.shopping-cart-good .name').each(function() {
  83 + this.mlellipsis(2);
  84 + });
82 } 85 }
83 86
84 if ($('.cart-nav').length > 0) { 87 if ($('.cart-nav').length > 0) {
@@ -90,6 +93,10 @@ if ($('.cart-nav').length > 0) { @@ -90,6 +93,10 @@ if ($('.cart-nav').length > 0) {
90 return; 93 return;
91 } 94 }
92 95
  96 + $('.shopping-cart-good .name').each(function() {
  97 + this.mlellipsis(2);
  98 + });
  99 +
93 if (cartType === 'ordinary') { 100 if (cartType === 'ordinary') {
94 cartType = 'advance'; 101 cartType = 'advance';
95 $('#cartType').val('advance'); 102 $('#cartType').val('advance');
@@ -22,9 +22,11 @@ lazyLoad({ @@ -22,9 +22,11 @@ lazyLoad({
22 try_again_css: 'good-failure' 22 try_again_css: 'good-failure'
23 }); 23 });
24 24
25 -$('.shopping-cart-good .name').each(function() {  
26 - this.mlellipsis(2);  
27 -}); 25 +setTimeout(function() {
  26 + $('.shopping-cart-good .name').each(function() {
  27 + this.mlellipsis(2);
  28 + });
  29 +}, 0);
28 30
29 function GoodInfo(properties) { 31 function GoodInfo(properties) {
30 this.goods_type = properties.goods_type; 32 this.goods_type = properties.goods_type;
@@ -190,11 +192,13 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) { @@ -190,11 +192,13 @@ function bottomCheckBoxHandeler(isSelected, type, handlerAfterTouch) {
190 192
191 //全选按钮点击事件 193 //全选按钮点击事件
192 $selectAllBtn.on('touchend', function() { 194 $selectAllBtn.on('touchend', function() {
193 - if ($('.low-stocks').length > 0) { 195 + var isSelect = $(this).hasClass('icon-cb-checked');
  196 +
  197 + if (!isSelect && $('.low-stocks').length > 0) {
194 tip.show('所选商品中含有库存不足的商品'); 198 tip.show('所选商品中含有库存不足的商品');
195 return false; 199 return false;
196 } 200 }
197 - bottomCheckBoxHandeler($(this).hasClass('icon-cb-checked'), $('#cartType').val(), didUpdateAllGoodsCheckStatus); 201 + bottomCheckBoxHandeler(isSelect, $('#cartType').val(), didUpdateAllGoodsCheckStatus);
198 }); 202 });
199 203
200 $('.down').on('touchend', function() { 204 $('.down').on('touchend', function() {
@@ -58,6 +58,7 @@ @@ -58,6 +58,7 @@
58 } 58 }
59 .sale-price { 59 .sale-price {
60 color: #e10; 60 color: #e10;
  61 + margin-right: pxToRem(15px);
61 62
62 &.no-price { 63 &.no-price {
63 color: #000; 64 color: #000;