Showing
4 changed files
with
2 additions
and
2 deletions
@@ -14857,7 +14857,7 @@ function init() { | @@ -14857,7 +14857,7 @@ function init() { | ||
14857 | msg: null, | 14857 | msg: null, |
14858 | cartType: 'ordinary' | 14858 | cartType: 'ordinary' |
14859 | }; | 14859 | }; |
14860 | - window.setCookie('order-info', JSON.stringify(info)); | 14860 | + window.setCookie('order-info', JSON.stringify(info), {path: '/cart'}); |
14861 | } | 14861 | } |
14862 | 14862 | ||
14863 | // info 必须是 JSON 字符串 | 14863 | // info 必须是 JSON 字符串 |
@@ -14877,7 +14877,7 @@ exports.orderInfo = function(key, value) { | @@ -14877,7 +14877,7 @@ exports.orderInfo = function(key, value) { | ||
14877 | return info[key]; | 14877 | return info[key]; |
14878 | } | 14878 | } |
14879 | info[key] = value; | 14879 | info[key] = value; |
14880 | - window.setCookie('order-info', JSON.stringify(info)); | 14880 | + window.setCookie('order-info', JSON.stringify(info), {path: '/cart'}); |
14881 | }; | 14881 | }; |
14882 | 14882 | ||
14883 | }); | 14883 | }); |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
-
Please register or login to post a comment