Authored by whb

header.js

@@ -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');