Authored by 肖亚东

登录修改 — review by 李其昌

... ... @@ -236,6 +236,8 @@ export const getPhoneNumber = (e) => {
});
event.emit('user-get-phonenumber-error', error);
});
} else {
event.emit('user-get-phonenumber-error', e.detail.errMsg);
}
}
... ...
... ... @@ -12,6 +12,7 @@ import user from '../../utils/user';
import { login as loginModel } from '../../models';
import './index.scss';
import event from '../../utils/event.js';
import { getImgUrl } from '../../utils/index.js'
@connect(({ globalData }) => ({
globalData
... ... @@ -250,7 +251,7 @@ export default class UserCenter extends Component {
return (
<View className= "user-center-page" >
<View className="header" >
<Image src={ isLogin ? userInfo.avatarUrl : avatar } className = "avatar-img" > </Image>
<Image src={ isLogin ? getImgUrl(userInfo.avatarUrl) : avatar } className = "avatar-img" > </Image>
{
!isLogin &&
... ...