Authored by htoooth

fix reg bug

... ... @@ -207,8 +207,6 @@ const cert = {
let email;
userService.profile(uid).then(info => {
console.log(JSON.stringify(info));
if (info && info.code === 200) {
email = _.get(info, 'data.email');
} else {
... ...
... ... @@ -73,7 +73,7 @@ let index = (req, res, next) => {
let area = req.query.area;
refer && res.cookie('refer', encodeURI(refer), {
domain: 'yohobuy.com'
domain: config.cookieDomain
});
regService.getRegData().then((result) => {
... ...
... ... @@ -720,15 +720,4 @@ exports.init = function(page) {
$countDown.text(countDown--);
}, 1000);
}
// 设置 refer 信息
(function() {
var refer = queryString().refer || ''; // eslint-disable-line
if (refer) {
setCookie('refer', refer); // eslint-disable-line
} else {
setCookie('refer', ''); // eslint-disable-line
}
}());
};
... ...