mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
Merge branch 'patch-2' into 'master'
修复我的设置里的头像不显示bug See merge request !4
This commit is contained in:
commit
0dce5f20e7
@ -89,6 +89,8 @@
|
|||||||
import context from '../../lib/java110/Java110Context.js'
|
import context from '../../lib/java110/Java110Context.js'
|
||||||
import * as TanslateImage from '../../lib/java110/utils/translate-image.js';
|
import * as TanslateImage from '../../lib/java110/utils/translate-image.js';
|
||||||
import {refreshOwner} from '@/api/owner/ownerApi.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';
|
import conf from '@/conf/config.js';
|
||||||
const constant = context.constant;
|
const constant = context.constant;
|
||||||
const factory = context.factory;
|
const factory = context.factory;
|
||||||
@ -143,18 +145,20 @@
|
|||||||
/**
|
/**
|
||||||
* 查询业主头像
|
* 查询业主头像
|
||||||
*/
|
*/
|
||||||
loadOwnerHeaderImg: function() {
|
loadOwnerHeaderImg: function() {
|
||||||
console.log('loadOwnerHeaderImg')
|
|
||||||
let _that = this;
|
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() {
|
_uploadOwnerHeaderImg: function() {
|
||||||
let _that = this;
|
let _that = this;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user