...
|
...
|
@@ -69,70 +69,71 @@ const configData = { |
|
|
type: 'radio',
|
|
|
key: 'shopping',
|
|
|
value: '1',
|
|
|
text: '目的型购物',
|
|
|
text: '目的型购物'
|
|
|
},
|
|
|
{
|
|
|
type: 'radio',
|
|
|
key: 'shopping',
|
|
|
value: '2',
|
|
|
text: '冲动型购物'
|
|
|
},
|
|
|
{
|
|
|
type: 'radio',
|
|
|
key: 'shopping',
|
|
|
value: '3',
|
|
|
text: '保守型购物'
|
|
|
}],
|
|
|
//着装习惯
|
|
|
{
|
|
|
type: 'radio',
|
|
|
key: 'shopping',
|
|
|
value: '2',
|
|
|
text: '冲动型购物'
|
|
|
},
|
|
|
{
|
|
|
type: 'radio',
|
|
|
key: 'shopping',
|
|
|
value: '3',
|
|
|
text: '保守型购物'
|
|
|
}],
|
|
|
|
|
|
// 着装习惯
|
|
|
dressHabits: [{
|
|
|
type: 'checkbox',
|
|
|
key: 'dress[]',
|
|
|
index: 'dress-1',
|
|
|
value: '1',
|
|
|
text: '正装',
|
|
|
},
|
|
|
{
|
|
|
type: 'checkbox',
|
|
|
key: 'dress[]',
|
|
|
index: 'dress-2',
|
|
|
value: '2',
|
|
|
text: '商务'
|
|
|
},
|
|
|
{
|
|
|
type: 'checkbox',
|
|
|
key: 'dress[]',
|
|
|
index: 'dress-3',
|
|
|
value: '3',
|
|
|
text: '街头流行'
|
|
|
},
|
|
|
{
|
|
|
type: 'checkbox',
|
|
|
key: 'dress[]',
|
|
|
index: 'dress-4',
|
|
|
value: '4',
|
|
|
text: '运动休闲'
|
|
|
text: '正装'
|
|
|
},
|
|
|
{
|
|
|
type: 'checkbox',
|
|
|
key: 'dress[]',
|
|
|
index: 'dress-5',
|
|
|
value: '5',
|
|
|
text: '文艺气质'
|
|
|
},
|
|
|
{
|
|
|
type: 'checkbox',
|
|
|
key: 'dress[]',
|
|
|
index: 'dress-6',
|
|
|
value: '6',
|
|
|
text: '甜美可爱'
|
|
|
},
|
|
|
{
|
|
|
type: 'checkbox',
|
|
|
key: 'dress[]',
|
|
|
index: 'dress-7',
|
|
|
value: '7',
|
|
|
text: '另类'
|
|
|
}]
|
|
|
{
|
|
|
type: 'checkbox',
|
|
|
key: 'dress[]',
|
|
|
index: 'dress-2',
|
|
|
value: '2',
|
|
|
text: '商务'
|
|
|
},
|
|
|
{
|
|
|
type: 'checkbox',
|
|
|
key: 'dress[]',
|
|
|
index: 'dress-3',
|
|
|
value: '3',
|
|
|
text: '街头流行'
|
|
|
},
|
|
|
{
|
|
|
type: 'checkbox',
|
|
|
key: 'dress[]',
|
|
|
index: 'dress-4',
|
|
|
value: '4',
|
|
|
text: '运动休闲'
|
|
|
},
|
|
|
{
|
|
|
type: 'checkbox',
|
|
|
key: 'dress[]',
|
|
|
index: 'dress-5',
|
|
|
value: '5',
|
|
|
text: '文艺气质'
|
|
|
},
|
|
|
{
|
|
|
type: 'checkbox',
|
|
|
key: 'dress[]',
|
|
|
index: 'dress-6',
|
|
|
value: '6',
|
|
|
text: '甜美可爱'
|
|
|
},
|
|
|
{
|
|
|
type: 'checkbox',
|
|
|
key: 'dress[]',
|
|
|
index: 'dress-7',
|
|
|
value: '7',
|
|
|
text: '另类'
|
|
|
}]
|
|
|
};
|
|
|
|
|
|
const getDays = (year, month) => {
|
...
|
...
|
@@ -189,9 +190,9 @@ const getBirthday = (birthday) => { |
|
|
};
|
|
|
|
|
|
const isEmpty = (value) => {
|
|
|
return (Array.isArray(value) && value.length === 0)
|
|
|
|| (Object.prototype.isPrototypeOf(value) && Object.keys(value).length === 0);
|
|
|
}
|
|
|
return (Array.isArray(value) && value.length === 0) ||
|
|
|
(Object.prototype.isPrototypeOf(value) && Object.keys(value).length === 0);
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 联动取地区信息
|
...
|
...
|
@@ -379,11 +380,11 @@ const getUserInfo = (channel, uid) => { |
|
|
]
|
|
|
},
|
|
|
details: [{
|
|
|
labelText: '固定电话:',
|
|
|
key: 'phone',
|
|
|
value: contactInfo.phone || '',
|
|
|
tips: '如: 010-82831245'
|
|
|
},
|
|
|
labelText: '固定电话:',
|
|
|
key: 'phone',
|
|
|
value: contactInfo.phone || '',
|
|
|
tips: '如: 010-82831245'
|
|
|
},
|
|
|
{
|
|
|
labelText: '手机号码:',
|
|
|
key: 'mobile',
|
...
|
...
|
@@ -449,7 +450,7 @@ const getUserInfo = (channel, uid) => { |
|
|
data: dressHabitArr
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
if (result[4].code === 200) {
|
...
|
...
|
@@ -457,12 +458,13 @@ const getUserInfo = (channel, uid) => { |
|
|
// finalResult.favorite = {
|
|
|
// subTitle: '喜爱品牌',
|
|
|
// submitId: 'favorite-brand',
|
|
|
// likebrand: (substr($userLikeBrandInfo['likeBrandStr'], 0, 1) == ',') ? $userLikeBrandInfo['likeBrandStr'] : ',' . $userLikeBrandInfo['likeBrandStr'],
|
|
|
// likebrand: (substr($userLikeBrandInfo['likeBrandStr'], 0, 1) == ',') ?
|
|
|
// $userLikeBrandInfo['likeBrandStr'] : ',' . $userLikeBrandInfo['likeBrandStr'],
|
|
|
// favoriteBrands: $userLikeBrandInfo['favBrands'],
|
|
|
// hotBrands: $userLikeBrandInfo['hotBrands'],
|
|
|
// }
|
|
|
}
|
|
|
|
|
|
|
|
|
finalResult.headerData = headerData;
|
|
|
finalResult.meEditPage = true;
|
|
|
return finalResult;
|
...
|
...
|
|