...
|
...
|
@@ -71,8 +71,12 @@ let functions = { |
|
|
addToCart(sku, skn, buyNum) {
|
|
|
if (!yoho.isLogin()) {
|
|
|
let preInfo = `${sku}_${skn}_${buyNum}`;
|
|
|
let actCkOpthn = {
|
|
|
path: '/',
|
|
|
expires: 1
|
|
|
};
|
|
|
|
|
|
window.setCookie('tmp-cart-info', preInfo, {expires: 1});
|
|
|
window.setCookie('tmp-cart-info', preInfo, actCkOpthn);
|
|
|
window.location.href = '//m.yohobuy.com/signin.html?refer=' + encodeURIComponent(window.location.href);
|
|
|
return false;
|
|
|
}
|
...
|
...
|
|