Showing
1 changed file
with
5 additions
and
1 deletions
@@ -71,8 +71,12 @@ let functions = { | @@ -71,8 +71,12 @@ let functions = { | ||
71 | addToCart(sku, skn, buyNum) { | 71 | addToCart(sku, skn, buyNum) { |
72 | if (!yoho.isLogin()) { | 72 | if (!yoho.isLogin()) { |
73 | let preInfo = `${sku}_${skn}_${buyNum}`; | 73 | let preInfo = `${sku}_${skn}_${buyNum}`; |
74 | + let actCkOpthn = { | ||
75 | + path: '/', | ||
76 | + expires: 1 | ||
77 | + }; | ||
74 | 78 | ||
75 | - window.setCookie('tmp-cart-info', preInfo, {expires: 1}); | 79 | + window.setCookie('tmp-cart-info', preInfo, actCkOpthn); |
76 | window.location.href = '//m.yohobuy.com/signin.html?refer=' + encodeURIComponent(window.location.href); | 80 | window.location.href = '//m.yohobuy.com/signin.html?refer=' + encodeURIComponent(window.location.href); |
77 | return false; | 81 | return false; |
78 | } | 82 | } |
-
Please register or login to post a comment