Authored by 郭成尧

cookie-change

... ... @@ -3,8 +3,7 @@
* @author: bikai<kai.bi@yoho.cn>
* @date: 2015/12/14
*/
const cookie = require('yoho-cookie');
let info = cookie.get('order-info');
let info = window.cookie('order-info');
// cookie 参数
let actCkOpthn = {
... ... @@ -29,7 +28,7 @@ function init() {
msg: null,
cartType: 'ordinary'
};
cookie.set('order-info', JSON.stringify(info), actCkOpthn);
window.setCookie('order-info', JSON.stringify(info), actCkOpthn);
}
// info 必须是 JSON 字符串
... ... @@ -45,5 +44,5 @@ exports.orderInfo = function(key, value) {
return info[key];
}
info[key] = value;
cookie.set('order-info', JSON.stringify(info), actCkOpthn);
window.setCookie('order-info', JSON.stringify(info), actCkOpthn);
};
... ...