...
|
...
|
@@ -480,6 +480,13 @@ class familyModel extends global.yoho.BaseModel { |
|
|
|
|
|
if (_.get(result, '[0].data')) {
|
|
|
let thisGender = result[0].data.gender;
|
|
|
let token = _.get(result[0], 'data.uid', null) ?
|
|
|
crypto.encryption('yoho9646yoho9646', _.get(result, 'data.uid', null) + '') : '';
|
|
|
let icon = _.get(result[0], 'data.headIco', '');
|
|
|
let name = _.get(result[0], 'data.nickName', '');
|
|
|
let vip = 0; // 从family进入二维码,暂时显示0
|
|
|
let hideTips = true;
|
|
|
|
|
|
|
|
|
result[0].data.gender = (thisGender === '1' ? '男' : '女');
|
|
|
result[0].data.otherGender = (thisGender === '1' ? '女' : '男');
|
...
|
...
|
@@ -490,13 +497,33 @@ class familyModel extends global.yoho.BaseModel { |
|
|
result[0].data.genderId = 2;
|
|
|
result[0].data.otherGenderId = 1;
|
|
|
}
|
|
|
result[0].data.qrcodeLink = helpers.urlFormat('/home/user/qrcode', {
|
|
|
token: _.get(result[0], 'data.uid', null) ?
|
|
|
crypto.encryption('yoho9646yoho9646', _.get(result, 'data.uid', null) + '') : '',
|
|
|
icon: _.get(result[0], 'data.headIco', ''),
|
|
|
uname: _.get(result[0], 'data.nickName', ''),
|
|
|
vip: 0 // 从family进入二维码,暂时显示0
|
|
|
});
|
|
|
if (params.isApp) {
|
|
|
result[0].data.qrcodeLink = `http://m.yohobuy.com?openby:yohobuy={"action":"go.h5","params":{
|
|
|
"url":"http://m.yohobuy.com/home/user/qrcode",
|
|
|
"param": {
|
|
|
"token":"${token}",
|
|
|
"icon":"${icon}",
|
|
|
"uname":"${name}",
|
|
|
"vip":"${vip}"
|
|
|
}
|
|
|
}}`;
|
|
|
result[0].data.trendLink = `http://m.yohobuy.com?openby:yohobuy={"action":"go.h5","params":{
|
|
|
"url":"http://m.yohobuy.com/home/tide-command",
|
|
|
"param": {
|
|
|
"hideTips":"${hideTips}"
|
|
|
}
|
|
|
}}`;
|
|
|
} else {
|
|
|
result[0].data.qrcodeLink = helpers.urlFormat('/home/user/qrcode', {
|
|
|
token: token,
|
|
|
icon: icon,
|
|
|
uname: name,
|
|
|
vip: vip
|
|
|
});
|
|
|
result[0].data.trendLink = helpers.urlFormat('/home/tide-command', {
|
|
|
hideTips: hideTips
|
|
|
});
|
|
|
}
|
|
|
resu = camelCase(result[0].data);
|
|
|
}
|
|
|
if (_.get(result, '[1].data')) {
|
...
|
...
|
|