From 10b6548135d85f988e1f04c1d6447f7ca5d468e9 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Sun, 31 Mar 2024 09:22:39 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=A4=9A=E4=B8=9A=E4=B8=BB?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=99=BB=E9=99=86=E6=97=B6=20=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: java110 <928255095@qq.com> --- pages/login/login.vue | 2 + pages/viewBindOwner/viewBindOwner.vue | 57 +++++++-------------------- 2 files changed, 17 insertions(+), 42 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index 97909f2..72c24bb 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -85,6 +85,8 @@ let that = this; this.logoUrl = constant.url.baseUrl + 'logo.png'; //todo 清除缓存内容,以防 业主后退,然后还显示他的东西 + uni.removeStorageSync("ownerInfo"); + uni.removeStorageSync("userInfo"); uni.removeStorageSync("JAVA110_USER_INFO"); uni.removeStorageSync("currentCommunityInfo"); removeUserLoginInfo(); diff --git a/pages/viewBindOwner/viewBindOwner.vue b/pages/viewBindOwner/viewBindOwner.vue index 150b34e..b6f709f 100644 --- a/pages/viewBindOwner/viewBindOwner.vue +++ b/pages/viewBindOwner/viewBindOwner.vue @@ -1,12 +1,5 @@ @@ -71,26 +51,18 @@ // pages/viewBindOwner/viewBindOwner.js import context from '../../lib/java110/Java110Context.js'; const constant = context.constant; - - import {getCommunityName} from '@/api/community/communityApi.js' + + import { + getCommunityId, + getCommunityName + } from '@/api/community/communityApi.js'; + import { + loadLoginOwner + } from '../../api/owner/ownerApi.js'; export default { data() { return { - steps: [{ - cuIcon: 'usefullfill', - name: '申请', - desc: '' - }, { - cuIcon: 'radioboxfill', - name: '审核中', - desc: '' - }, { - cuIcon: 'roundcheckfill', - name: '完成', - desc: '' - }], - active: 0, areaName: '', communityId: '', communityName: '', @@ -115,16 +87,17 @@ */ loadOwnerInfo: function() { let _that = this; - - context.getOwner(function(_ownerInfo) { + + loadLoginOwner({ + communityId:getCommunityId() + }).then(function(_ownerInfo) { + console.log(_ownerInfo) if (_ownerInfo) { let _active = _ownerInfo.state == '10000' ? 1 : 2; _that.areaName = _ownerInfo.parentAreaName + _ownerInfo.areaName; _that.communityId = _ownerInfo.communityId; - _that.appUserName = _ownerInfo.ownerName; + _that.appUserName = _ownerInfo.name; _that.link = _ownerInfo.link; - _that.active = _active; - } }); }, @@ -187,4 +160,4 @@ text { text-align: center; } - + \ No newline at end of file