...
|
...
|
@@ -28,6 +28,7 @@ class storeHome extends global.yoho.BaseModel { |
|
|
return Promise.all([
|
|
|
this._userInfo(params)
|
|
|
]).then(result => {
|
|
|
result[0].data.babyInfo.gender = '';
|
|
|
if (_.get(result, '[0].data')) {
|
|
|
let coffee = result[0].data.vip_type === 1;
|
|
|
let green = result[0].data.vip_type === 2;
|
...
|
...
|
@@ -45,6 +46,10 @@ class storeHome extends global.yoho.BaseModel { |
|
|
if (result[0].data.babyInfo) {
|
|
|
let thisGender = result[0].data.babyInfo.gender;
|
|
|
|
|
|
if (!thisGender) {
|
|
|
result[0].data.unknow = true;
|
|
|
}
|
|
|
|
|
|
result[0].data.gender = (thisGender === '1' ? '男' : '女');
|
|
|
result[0].data.otherGender = (thisGender === '1' ? '女' : '男');
|
|
|
if (result[0].data.gender === '男') {
|
...
|
...
|
|