|
@@ -105,13 +105,6 @@ if ($('.cart-nav').length > 0) { |
|
@@ -105,13 +105,6 @@ if ($('.cart-nav').length > 0) { |
105
|
return;
|
105
|
return;
|
106
|
}
|
106
|
}
|
107
|
|
107
|
|
108
|
- if (switchChose === false) {
|
|
|
109
|
- $cartContentShow.find('.shopping-cart-good .name').each(function() {
|
|
|
110
|
- this.mlellipsis(2);
|
|
|
111
|
- });
|
|
|
112
|
- switchChose = true;
|
|
|
113
|
- }
|
|
|
114
|
-
|
|
|
115
|
if (cartType === 'ordinary') {
|
108
|
if (cartType === 'ordinary') {
|
116
|
cartType = 'advance';
|
109
|
cartType = 'advance';
|
117
|
$('#cartType').val('advance');
|
110
|
$('#cartType').val('advance');
|
|
@@ -128,6 +121,13 @@ if ($('.cart-nav').length > 0) { |
|
@@ -128,6 +121,13 @@ if ($('.cart-nav').length > 0) { |
128
|
|
121
|
|
129
|
$cartContentShow = $cartContent.not('.hide');
|
122
|
$cartContentShow = $cartContent.not('.hide');
|
130
|
|
123
|
|
|
|
124
|
+ if (switchChose === false) {
|
|
|
125
|
+ $cartContentShow.find('.shopping-cart-good .name').each(function() {
|
|
|
126
|
+ this.mlellipsis(2);
|
|
|
127
|
+ });
|
|
|
128
|
+ switchChose = true;
|
|
|
129
|
+ }
|
|
|
130
|
+
|
131
|
//trigger lazyload
|
131
|
//trigger lazyload
|
132
|
$(window).trigger('scroll');
|
132
|
$(window).trigger('scroll');
|
133
|
});
|
133
|
});
|