Showing
1 changed file
with
1 additions
and
1 deletions
@@ -157,7 +157,7 @@ function actionGoodsCart() { | @@ -157,7 +157,7 @@ function actionGoodsCart() { | ||
157 | } | 157 | } |
158 | 158 | ||
159 | } | 159 | } |
160 | - if (cartInfo != null) { | 160 | + if (cartInfo !== null && cartInfo !== '') { |
161 | totalNum = parseInt(cartInfo._nac) + parseInt(cartInfo._ac); | 161 | totalNum = parseInt(cartInfo._nac) + parseInt(cartInfo._ac); |
162 | if (totalNum === 0) { | 162 | if (totalNum === 0) { |
163 | $('#icart-num').attr('class', 'icart-num icart-none'); | 163 | $('#icart-num').attr('class', 'icart-num icart-none'); |
-
Please register or login to post a comment