Merge branch 'patch-2' into 'master'

修复我的设置里的头像不显示bug

See merge request !4
This commit is contained in:
928255095 2024-10-08 13:43:23 +00:00
commit 0dce5f20e7

View File

@ -89,6 +89,8 @@
import context from '../../lib/java110/Java110Context.js'
import * as TanslateImage from '../../lib/java110/utils/translate-image.js';
import {refreshOwner} from '@/api/owner/ownerApi.js';
import {loadLoginOwner,getMemberId,hasAuthOwner} from '../../api/owner/ownerApi.js';
import {getCommunityId,getCommunityName} from '../../api/community/communityApi.js';
import conf from '@/conf/config.js';
const constant = context.constant;
const factory = context.factory;
@ -144,17 +146,19 @@
* 查询业主头像
*/
loadOwnerHeaderImg: function() {
console.log('loadOwnerHeaderImg')
let _that = this;
refreshOwner().then(_owner=>{
if(_owner.headImgUrl ){
_that.headerImg = _owner.headImgUrl;
}else{
_that.headerImg = conf.imgUrl+'/h5/images/serve/head.png';
}
},err=>{
});
loadLoginOwner({
memberId:getMemberId(),
communityId:getCommunityId()
}).then(_data=>{
//console.log(_data);
if(_data.faceUrl){
_that.headerImg = _data.faceUrl;
}else{
_that.headerImg =conf.imgUrl+'/h5/images/serve/head.png';
}
})
},
_uploadOwnerHeaderImg: function() {
let _that = this;