Authored by yyq

fix user info modify

... ... @@ -313,21 +313,21 @@ module.exports = class extends global.yoho.BaseModel {
income = userInfo.income || 0;
}
genderArr = configData.gender;
genderArr = _.cloneDeep(configData.gender);
for (let value of genderArr) {
if (value.value === parseInt(gender, 0)) {
value.isChecked = true;
}
}
professionArr = configData.profession;
professionArr = _.cloneDeep(configData.profession);
for (let value of professionArr) {
if (value.value === parseInt(profession, 0)) {
value.isChecked = true;
}
}
incomeArr = configData.income;
incomeArr = _.cloneDeep(configData.income);
for (let value of incomeArr) {
if (value.value === parseInt(income, 0)) {
value.isChecked = true;
... ... @@ -496,7 +496,7 @@ module.exports = class extends global.yoho.BaseModel {
shoppingHabitArr,
dressArr = [];
shoppingHabitArr = configData.shoppingHabits;
shoppingHabitArr = _.cloneDeep(configData.shoppingHabits);
if (habitsInfo.shopping) {
for (let value of shoppingHabitArr) {
if (value.value === parseInt(habitsInfo.shopping, 0)) {
... ... @@ -505,7 +505,7 @@ module.exports = class extends global.yoho.BaseModel {
}
}
dressHabitArr = configData.dressHabits;
dressHabitArr = _.cloneDeep(configData.dressHabits);
if (habitsInfo.dress) {
dressArr = habitsInfo.dress.split(',');
for (let value of dressHabitArr) {
... ...