Authored by wenjiekong

联系信息。购物习惯

@@ -65,10 +65,10 @@ app.use(session({ @@ -65,10 +65,10 @@ app.use(session({
65 domain: 'yohobuy.com', 65 domain: 'yohobuy.com',
66 httpOnly: false 66 httpOnly: false
67 }, 67 },
68 - // store: new MemcachedStore({  
69 - // hosts: config.memcache.session,  
70 - // prefix: 'yohobuy_session:'  
71 - // }) 68 + store: new MemcachedStore({
  69 + hosts: config.memcache.session,
  70 + prefix: 'yohobuy_session:'
  71 + })
72 })); 72 }));
73 73
74 app.use((req, res, next) => { 74 app.use((req, res, next) => {
@@ -69,7 +69,7 @@ const configData = { @@ -69,7 +69,7 @@ const configData = {
69 type: 'radio', 69 type: 'radio',
70 key: 'shopping', 70 key: 'shopping',
71 value: '1', 71 value: '1',
72 - text: '目的型购物', 72 + text: '目的型购物'
73 }, 73 },
74 { 74 {
75 type: 'radio', 75 type: 'radio',
@@ -83,13 +83,14 @@ const configData = { @@ -83,13 +83,14 @@ const configData = {
83 value: '3', 83 value: '3',
84 text: '保守型购物' 84 text: '保守型购物'
85 }], 85 }],
86 - //着装习惯 86 +
  87 + // 着装习惯
87 dressHabits: [{ 88 dressHabits: [{
88 type: 'checkbox', 89 type: 'checkbox',
89 key: 'dress[]', 90 key: 'dress[]',
90 index: 'dress-1', 91 index: 'dress-1',
91 value: '1', 92 value: '1',
92 - text: '正装', 93 + text: '正装'
93 }, 94 },
94 { 95 {
95 type: 'checkbox', 96 type: 'checkbox',
@@ -189,9 +190,9 @@ const getBirthday = (birthday) => { @@ -189,9 +190,9 @@ const getBirthday = (birthday) => {
189 }; 190 };
190 191
191 const isEmpty = (value) => { 192 const isEmpty = (value) => {
192 - return (Array.isArray(value) && value.length === 0)  
193 - || (Object.prototype.isPrototypeOf(value) && Object.keys(value).length === 0);  
194 -} 193 + return (Array.isArray(value) && value.length === 0) ||
  194 + (Object.prototype.isPrototypeOf(value) && Object.keys(value).length === 0);
  195 +};
195 196
196 /** 197 /**
197 * 联动取地区信息 198 * 联动取地区信息
@@ -449,7 +450,7 @@ const getUserInfo = (channel, uid) => { @@ -449,7 +450,7 @@ const getUserInfo = (channel, uid) => {
449 data: dressHabitArr 450 data: dressHabitArr
450 } 451 }
451 ] 452 ]
452 - } 453 + };
453 } 454 }
454 455
455 if (result[4].code === 200) { 456 if (result[4].code === 200) {
@@ -457,7 +458,8 @@ const getUserInfo = (channel, uid) => { @@ -457,7 +458,8 @@ const getUserInfo = (channel, uid) => {
457 // finalResult.favorite = { 458 // finalResult.favorite = {
458 // subTitle: '喜爱品牌', 459 // subTitle: '喜爱品牌',
459 // submitId: 'favorite-brand', 460 // submitId: 'favorite-brand',
460 - // likebrand: (substr($userLikeBrandInfo['likeBrandStr'], 0, 1) == ',') ? $userLikeBrandInfo['likeBrandStr'] : ',' . $userLikeBrandInfo['likeBrandStr'], 461 + // likebrand: (substr($userLikeBrandInfo['likeBrandStr'], 0, 1) == ',') ?
  462 + // $userLikeBrandInfo['likeBrandStr'] : ',' . $userLikeBrandInfo['likeBrandStr'],
461 // favoriteBrands: $userLikeBrandInfo['favBrands'], 463 // favoriteBrands: $userLikeBrandInfo['favBrands'],
462 // hotBrands: $userLikeBrandInfo['hotBrands'], 464 // hotBrands: $userLikeBrandInfo['hotBrands'],
463 // } 465 // }