Authored by wenjiekong

auto

... ... @@ -126,32 +126,32 @@ const getBirthday = (birthday) => {
*/
const getProviceCityInfo = (parentId, checkValue) => {
let addressInfo = userApi.getProviceCityInfo(parentId) || '',
res = [{value:0}],
res = [{value: 0}],
defaultText;
if (parentId.length === 2) {
defaultText = '请选择省份';
}else if (parentId.length === 4) {
} else if (parentId.length === 4) {
defaultText = '请选择市';
}else {
} else {
defaultText = '请选择区县';
}
res[0].text = defaultText;
if (addressInfo.code == 200) {
if (addressInfo.code === 200) {
for (let i = addressInfo.data.length - 1; i >= 0; i--) {
let addressJson = {
value: addressInfo.data.id,
text: addressInfo.data.caption
};
if (addressInfo.data.id == checkValue) {
if (addressInfo.data.id === checkValue) {
addressJson.isChecked = true;
}
res.push(addressJson);
}
}
return res;
}
};
const getUserInfo = (channel, uid) => {
... ... @@ -283,7 +283,7 @@ const getUserInfo = (channel, uid) => {
let contactInfo = result[2].data || '',
areaCode = contactInfo.areaCode || '';
console.info(areaCode);
console.info(areaCode);
finalResult.contactInfo = {
subTitle: '联系信息',
submitId: 'contact-info',
... ...