Authored by 李靖

Merge branch 'feature/mars' of git.yoho.cn:fe/yohobuywap-node into feature/mars

... ... @@ -256,28 +256,30 @@ $.extend({
5. yas的cookies 种在 .yohobuy.com 根域下
周奇琪
*/
let isWechat = /micromessenger/i.test(navigator.userAgent || '');
let mktc = queryString().mkt_code || queryString().union_type || '';
function saveMktCode() {
if (mktc) {
setCookie('mkt_code', mktc, {
path: '/',
domain: 'yohobuy.com',
expires: 7 // 7天
});
}
}
mkt_code 控制移动到 YAS 2017.07.13
*/
if (isWechat) {
saveMktCode();
} else {
if (!cookie('mkt_code') || mktc === '100000000000349') {
saveMktCode();
}
}
// let isWechat = /micromessenger/i.test(navigator.userAgent || '');
// let mktc = queryString().mkt_code || queryString().union_type || '';
// function saveMktCode() {
// if (mktc) {
// setCookie('mkt_code', mktc, {
// path: '/',
// domain: 'yohobuy.com',
// expires: 7 // 7天
// });
// }
// }
// if (isWechat) {
// saveMktCode();
// } else {
// if (!cookie('mkt_code') || mktc === '100000000000349') {
// saveMktCode();
// }
// }
// 尝试打开 APP
require('./common/open-app');
... ...