...
|
...
|
@@ -433,7 +433,7 @@ class familyModel extends global.yoho.BaseModel { |
|
|
/**
|
|
|
* family主页
|
|
|
*/
|
|
|
familyIndex(uid, contentCodeOne, contentCodeTwo, isMarsApp) {
|
|
|
familyIndex(uid, contentCodeOne, contentCodeTwo, isMarsApp, protocol) {
|
|
|
return Promise.all([
|
|
|
this._userData(uid),
|
|
|
this._getCode(uid),
|
...
|
...
|
@@ -445,6 +445,11 @@ class familyModel extends global.yoho.BaseModel { |
|
|
let familyIndexData = {};
|
|
|
|
|
|
if (result[0] && result[0].data) {
|
|
|
|
|
|
if (result[0].data.headIco) {
|
|
|
result[0].data.headIco = result[0].data.headIco.replace('img01.yohomars.com', 'imgmars.yohobuy.com').replace('img02.yohomars.com', 'imgmars.yohobuy.com'); // eslint-disable-line
|
|
|
}
|
|
|
|
|
|
familyIndexData = _.assign(familyIndexData, {
|
|
|
head_ico: result[0].data.headIco,
|
|
|
nickname: result[0].data.nickName,
|
...
|
...
|
@@ -472,9 +477,9 @@ class familyModel extends global.yoho.BaseModel { |
|
|
}
|
|
|
|
|
|
if (isMarsApp) {
|
|
|
familyIndexData.userInfoLink = 'http://m.yohobuy.com/home/family/userInfo?openby:mars={"action":"go.h5","params":{"url":"http://m.yohobuy.com/home/family/userInfo"}}';
|
|
|
familyIndexData.userInfoLink = `${protocol}://m.yohobuy.com/home/family/userInfo?openby:mars={"action":"go.h5","params":{"url":"${protocol}://m.yohobuy.com/home/family/userInfo"}}`;
|
|
|
} else {
|
|
|
familyIndexData.userInfoLink = 'http://m.yohobuy.com/home/family/userInfo?openby:yohobuy={"action":"go.h5","params":{"url":"http://m.yohobuy.com/home/family/userInfo"}}';
|
|
|
familyIndexData.userInfoLink = `${protocol}://m.yohobuy.com/home/family/userInfo?openby:yohobuy={"action":"go.h5","params":{"url":"${protocol}://m.yohobuy.com/home/family/userInfo"}}`;
|
|
|
}
|
|
|
|
|
|
return familyIndexData;
|
...
|
...
|
@@ -545,6 +550,9 @@ class familyModel extends global.yoho.BaseModel { |
|
|
let vip = 0; // 从family进入二维码,暂时显示0
|
|
|
let hideTips = true;
|
|
|
|
|
|
if (result[0].data.headIco) {
|
|
|
result[0].data.headIco = result[0].data.headIco.replace('img01.yohomars.com', 'imgmars.yohobuy.com').replace('img02.yohomars.com', 'imgmars.yohobuy.com'); // eslint-disable-line
|
|
|
}
|
|
|
|
|
|
result[0].data.gender = (thisGender === '1' ? 'BOY' : 'GIRL');
|
|
|
result[0].data.otherGender = (thisGender === '1' ? 'GIRL' : 'BOY');
|
...
|
...
|
|