From 33af9d9c63711c83a3bb8ba9f9a2b0b4f088bce1 Mon Sep 17 00:00:00 2001 From: 63194756 <63194756@qq.com> Date: Tue, 8 Oct 2024 13:39:31 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=88=91=E7=9A=84=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=87=8C=E7=9A=84=E5=A4=B4=E5=83=8F=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/settings/settings.vue | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/pages/settings/settings.vue b/pages/settings/settings.vue index 7635f18..f9ef9fa 100644 --- a/pages/settings/settings.vue +++ b/pages/settings/settings.vue @@ -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; @@ -143,18 +145,20 @@ /** * 查询业主头像 */ - loadOwnerHeaderImg: function() { - console.log('loadOwnerHeaderImg') + loadOwnerHeaderImg: function() { let _that = this; - refreshOwner().then(_owner=>{ - if(_owner.headImgUrl ){ - _that.headerImg = _owner.headImgUrl; + + 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'; - } - },err=>{ - - }); + _that.headerImg =conf.imgUrl+'/h5/images/serve/head.png'; + } + }) }, _uploadOwnerHeaderImg: function() { let _that = this;