...
|
...
|
@@ -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) => {
|
|
|
|
...
|
...
|
|