Authored by 张孝茹

修改

... ... @@ -149,8 +149,7 @@ class familyModel extends global.yoho.BaseModel {
code: 200
}).then((result) => {
if (result.data && _.get(result, 'data.mars', '') &&
_.get(result, 'data.mars.vipLevelList', []).length > 0) {
if (_.get(result, 'data.mars.vipLevelList', []).length > 0) {
_.forEach(_.get(result, 'data.mars.vipLevelList', []), function(val) {
val.name = 'Lv.' + val.level;
});
... ... @@ -447,7 +446,7 @@ class familyModel extends global.yoho.BaseModel {
]).then((result) => {
let familyIndexData = {};
if (result[0] && result[0].data && _.get(result, '[0].code', '') === 200) {
if (_.get(result, '[0].code', '') === 200) {
let perInfo = _.get(result, '[0].data', {});
if (perInfo.headIco) {
... ...