...
|
...
|
@@ -147,7 +147,15 @@ function actionGoodsCart() { |
|
|
if (typeof window.cookie(params.cookie) === 'undefined') {
|
|
|
cartInfo = null;
|
|
|
} else {
|
|
|
cartInfo = json2.parse(window.cookie(params.cookie));
|
|
|
if (params.cookie) {
|
|
|
try {
|
|
|
cartInfo = json2.parse(window.cookie(params.cookie));
|
|
|
} catch (e) {
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
if (cartInfo != null) {
|
|
|
totalNum = parseInt(cartInfo._nac) + parseInt(cartInfo._ac);
|
...
|
...
|
@@ -232,7 +240,7 @@ function actionGoodsCart() { |
|
|
};
|
|
|
var params = '';
|
|
|
|
|
|
if (typeof (domain) === undefined || domain === '') {
|
|
|
if (typeof(domain) === undefined || domain === '') {
|
|
|
return false;
|
|
|
}
|
|
|
params = $.extend(defaults, options);
|
...
|
...
|
|