Authored by 陈峰

Merge branch 'hotfix/user' into 'gray'

fix user info modify



See merge request !271
@@ -313,21 +313,21 @@ module.exports = class extends global.yoho.BaseModel { @@ -313,21 +313,21 @@ module.exports = class extends global.yoho.BaseModel {
313 income = userInfo.income || 0; 313 income = userInfo.income || 0;
314 } 314 }
315 315
316 - genderArr = configData.gender; 316 + genderArr = _.cloneDeep(configData.gender);
317 for (let value of genderArr) { 317 for (let value of genderArr) {
318 if (value.value === parseInt(gender, 0)) { 318 if (value.value === parseInt(gender, 0)) {
319 value.isChecked = true; 319 value.isChecked = true;
320 } 320 }
321 } 321 }
322 322
323 - professionArr = configData.profession; 323 + professionArr = _.cloneDeep(configData.profession);
324 for (let value of professionArr) { 324 for (let value of professionArr) {
325 if (value.value === parseInt(profession, 0)) { 325 if (value.value === parseInt(profession, 0)) {
326 value.isChecked = true; 326 value.isChecked = true;
327 } 327 }
328 } 328 }
329 329
330 - incomeArr = configData.income; 330 + incomeArr = _.cloneDeep(configData.income);
331 for (let value of incomeArr) { 331 for (let value of incomeArr) {
332 if (value.value === parseInt(income, 0)) { 332 if (value.value === parseInt(income, 0)) {
333 value.isChecked = true; 333 value.isChecked = true;
@@ -496,7 +496,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -496,7 +496,7 @@ module.exports = class extends global.yoho.BaseModel {
496 shoppingHabitArr, 496 shoppingHabitArr,
497 dressArr = []; 497 dressArr = [];
498 498
499 - shoppingHabitArr = configData.shoppingHabits; 499 + shoppingHabitArr = _.cloneDeep(configData.shoppingHabits);
500 if (habitsInfo.shopping) { 500 if (habitsInfo.shopping) {
501 for (let value of shoppingHabitArr) { 501 for (let value of shoppingHabitArr) {
502 if (value.value === parseInt(habitsInfo.shopping, 0)) { 502 if (value.value === parseInt(habitsInfo.shopping, 0)) {
@@ -505,7 +505,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -505,7 +505,7 @@ module.exports = class extends global.yoho.BaseModel {
505 } 505 }
506 } 506 }
507 507
508 - dressHabitArr = configData.dressHabits; 508 + dressHabitArr = _.cloneDeep(configData.dressHabits);
509 if (habitsInfo.dress) { 509 if (habitsInfo.dress) {
510 dressArr = habitsInfo.dress.split(','); 510 dressArr = habitsInfo.dress.split(',');
511 for (let value of dressHabitArr) { 511 for (let value of dressHabitArr) {