Authored by 黄敬囿

Merge branch 'UFO_1.0.0' of http://git.yoho.cn/mobile/yoho-miniapp-ufo into UFO_1.0.0

... ... @@ -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 &&
... ...