mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
优化代码
This commit is contained in:
parent
e4ebf0e422
commit
8ce3d7602b
@ -80,7 +80,7 @@
|
|||||||
"disableHostCheck" : true,
|
"disableHostCheck" : true,
|
||||||
"proxy" : {
|
"proxy" : {
|
||||||
"/app" : {
|
"/app" : {
|
||||||
"target" : "http://192.168.100.108:8088/", //目标接口域名
|
"target" : "http://demo.homecommunity.cn/", //目标接口域名
|
||||||
"changeOrigin" : true, //是否跨域
|
"changeOrigin" : true, //是否跨域
|
||||||
"secure" : true // 设置支持https协议的代理
|
"secure" : true // 设置支持https协议的代理
|
||||||
},
|
},
|
||||||
|
|||||||
@ -85,6 +85,8 @@
|
|||||||
let that = this;
|
let that = this;
|
||||||
this.logoUrl = constant.url.baseUrl + 'logo.png';
|
this.logoUrl = constant.url.baseUrl + 'logo.png';
|
||||||
//todo 清除缓存内容,以防 业主后退,然后还显示他的东西
|
//todo 清除缓存内容,以防 业主后退,然后还显示他的东西
|
||||||
|
uni.removeStorageSync("ownerInfo");
|
||||||
|
uni.removeStorageSync("userInfo");
|
||||||
uni.removeStorageSync("JAVA110_USER_INFO");
|
uni.removeStorageSync("JAVA110_USER_INFO");
|
||||||
uni.removeStorageSync("currentCommunityInfo");
|
uni.removeStorageSync("currentCommunityInfo");
|
||||||
removeUserLoginInfo();
|
removeUserLoginInfo();
|
||||||
|
|||||||
@ -1,12 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<view class="bg-white">
|
|
||||||
<view class="cu-steps">
|
|
||||||
<view class="cu-item" :class="index>active?'':'text-green'" v-for="(item,index) in steps" :key="index">
|
|
||||||
<text :class="'cuIcon-' + item.cuIcon"></text> {{item.name}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="block__title">小区信息</view>
|
<view class="block__title">小区信息</view>
|
||||||
<view class="cu-list menu">
|
<view class="cu-list menu">
|
||||||
<view class="cu-item">
|
<view class="cu-item">
|
||||||
@ -40,15 +33,6 @@
|
|||||||
<text class="text-grey text-sm">{{appUserName}}</text>
|
<text class="text-grey text-sm">{{appUserName}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="cu-item">
|
|
||||||
<view class="content">
|
|
||||||
<text class="cuIcon-card text-green"></text>
|
|
||||||
<text class="text-grey">身份证</text>
|
|
||||||
</view>
|
|
||||||
<view class="action">
|
|
||||||
<text class="text-grey text-sm">{{idCard}}</text>
|
|
||||||
</view>
|
|
||||||
</view> -->
|
|
||||||
<view class="cu-item">
|
<view class="cu-item">
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<text class="cuIcon-phone text-green"></text>
|
<text class="cuIcon-phone text-green"></text>
|
||||||
@ -60,10 +44,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="button_up_blank"></view>
|
|
||||||
<view v-if="active == 1" class="cu-form-group justify-center">
|
|
||||||
<button class="cu-btn bg-red lg" @tap.native.stop="unbindOwner">解绑业主</button>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -72,25 +52,17 @@
|
|||||||
import context from '../../lib/java110/Java110Context.js';
|
import context from '../../lib/java110/Java110Context.js';
|
||||||
const constant = context.constant;
|
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 {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
steps: [{
|
|
||||||
cuIcon: 'usefullfill',
|
|
||||||
name: '申请',
|
|
||||||
desc: ''
|
|
||||||
}, {
|
|
||||||
cuIcon: 'radioboxfill',
|
|
||||||
name: '审核中',
|
|
||||||
desc: ''
|
|
||||||
}, {
|
|
||||||
cuIcon: 'roundcheckfill',
|
|
||||||
name: '完成',
|
|
||||||
desc: ''
|
|
||||||
}],
|
|
||||||
active: 0,
|
|
||||||
areaName: '',
|
areaName: '',
|
||||||
communityId: '',
|
communityId: '',
|
||||||
communityName: '',
|
communityName: '',
|
||||||
@ -116,15 +88,16 @@
|
|||||||
loadOwnerInfo: function() {
|
loadOwnerInfo: function() {
|
||||||
let _that = this;
|
let _that = this;
|
||||||
|
|
||||||
context.getOwner(function(_ownerInfo) {
|
loadLoginOwner({
|
||||||
|
communityId:getCommunityId()
|
||||||
|
}).then(function(_ownerInfo) {
|
||||||
|
console.log(_ownerInfo)
|
||||||
if (_ownerInfo) {
|
if (_ownerInfo) {
|
||||||
let _active = _ownerInfo.state == '10000' ? 1 : 2;
|
let _active = _ownerInfo.state == '10000' ? 1 : 2;
|
||||||
_that.areaName = _ownerInfo.parentAreaName + _ownerInfo.areaName;
|
_that.areaName = _ownerInfo.parentAreaName + _ownerInfo.areaName;
|
||||||
_that.communityId = _ownerInfo.communityId;
|
_that.communityId = _ownerInfo.communityId;
|
||||||
_that.appUserName = _ownerInfo.ownerName;
|
_that.appUserName = _ownerInfo.name;
|
||||||
_that.link = _ownerInfo.link;
|
_that.link = _ownerInfo.link;
|
||||||
_that.active = _active;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user