...
|
...
|
@@ -28,7 +28,7 @@ function init() { |
|
|
msg: null,
|
|
|
cartType: 'ordinary'
|
|
|
};
|
|
|
window.setCookie('order-info', JSON.stringify(info));
|
|
|
window.setCookie('order-info', JSON.stringify(info), {path: '/cart'});
|
|
|
}
|
|
|
|
|
|
// info 必须是 JSON 字符串
|
...
|
...
|
@@ -48,5 +48,5 @@ exports.orderInfo = function(key, value) { |
|
|
return info[key];
|
|
|
}
|
|
|
info[key] = value;
|
|
|
window.setCookie('order-info', JSON.stringify(info));
|
|
|
window.setCookie('order-info', JSON.stringify(info), {path: '/cart'});
|
|
|
}; |
...
|
...
|
|