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