...
|
...
|
@@ -137,10 +137,7 @@ const getUserInfo = (channel, uid) => { |
|
|
}
|
|
|
|
|
|
if (result[1].code === 200) {
|
|
|
let email,
|
|
|
nickname,
|
|
|
username,
|
|
|
gender,
|
|
|
let gender,
|
|
|
genderArr,
|
|
|
birthday,
|
|
|
birthdayJson,
|
...
|
...
|
@@ -152,14 +149,14 @@ const getUserInfo = (channel, uid) => { |
|
|
income,
|
|
|
incomeArr;
|
|
|
|
|
|
userInfo = result[1].data;
|
|
|
email = userInfo.email !== undefined ? userInfo.email : '';
|
|
|
nickname = userInfo.nickname !== undefined ? userInfo.nickname : '';
|
|
|
username = userInfo.username !== undefined ? userInfo.username : '';
|
|
|
gender = userInfo.gender !== undefined ? userInfo.gender : 3;
|
|
|
birthday = userInfo.birthday !== undefined ? userInfo.birthday : '';
|
|
|
profession = userInfo.profession !== undefined ? userInfo.profession : 0;
|
|
|
income = userInfo.income !== undefined ? userInfo.income : 0;
|
|
|
userInfo = result[1].data || {};
|
|
|
|
|
|
if (userInfo) {
|
|
|
gender = userInfo.gender || 3;
|
|
|
birthday = userInfo.birthday || '';
|
|
|
profession = userInfo.profession || 0;
|
|
|
income = userInfoincome !== undefined ? userInfo.income : 0;
|
|
|
}
|
|
|
|
|
|
genderArr = configData.gender;
|
|
|
for (let value of genderArr) {
|
...
|
...
|
@@ -194,18 +191,18 @@ const getUserInfo = (channel, uid) => { |
|
|
profileSrc: userInfo.head_ico,
|
|
|
email: {
|
|
|
labelText: '登录邮箱:',
|
|
|
value: email
|
|
|
value: userInfo.email || ''
|
|
|
},
|
|
|
name: [
|
|
|
{
|
|
|
labelText: '昵称:',
|
|
|
value: nickname,
|
|
|
value: userInfo.nickname,
|
|
|
key: 'nickname',
|
|
|
tips: '与Yoho!业务或商家品牌冲突的昵称,Yoho!将有可能收回'
|
|
|
},
|
|
|
{
|
|
|
labelText: '真实姓名:',
|
|
|
value: username,
|
|
|
value: userInfo.username,
|
|
|
key: 'username',
|
|
|
tips: '' // 4.8去掉该提示
|
|
|
}
|
...
|
...
|
|