mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
优化代码
This commit is contained in:
parent
39dbbb36ad
commit
f807598bc0
@ -48,7 +48,7 @@
|
|||||||
page: 1,
|
page: 1,
|
||||||
row: 20,
|
row: 20,
|
||||||
idCard: _ownerInfo.idCard,
|
idCard: _ownerInfo.idCard,
|
||||||
link: _ownerInfo.link,
|
link: _ownerInfo.ownerTel,
|
||||||
communityId: _communityId,
|
communityId: _communityId,
|
||||||
acctType:'2003'
|
acctType:'2003'
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
|
|||||||
@ -48,7 +48,7 @@
|
|||||||
getChargeMonthOrder({
|
getChargeMonthOrder({
|
||||||
page: 1,
|
page: 1,
|
||||||
row: 20,
|
row: 20,
|
||||||
personTel: _ownerInfo.link,
|
personTel: _ownerInfo.ownerTel,
|
||||||
communityId: _communityId,
|
communityId: _communityId,
|
||||||
queryTime:formatDate(new Date())
|
queryTime:formatDate(new Date())
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
|
|||||||
@ -152,7 +152,7 @@
|
|||||||
page: 1,
|
page: 1,
|
||||||
row: 20,
|
row: 20,
|
||||||
idCard: _ownerInfo.idCard,
|
idCard: _ownerInfo.idCard,
|
||||||
link: _ownerInfo.link,
|
link: _ownerInfo.ownerTel,
|
||||||
communityId: _ownerInfo.communityId
|
communityId: _ownerInfo.communityId
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
@ -192,7 +192,7 @@
|
|||||||
getCouponUsers({
|
getCouponUsers({
|
||||||
page: 1,
|
page: 1,
|
||||||
row: 100,
|
row: 100,
|
||||||
tel: _ownerInfo.link,
|
tel: _ownerInfo.ownerTel,
|
||||||
communityId: _ownerInfo.communityId,
|
communityId: _ownerInfo.communityId,
|
||||||
state: '1001'
|
state: '1001'
|
||||||
}, null)
|
}, null)
|
||||||
|
|||||||
@ -97,7 +97,7 @@
|
|||||||
page: 1,
|
page: 1,
|
||||||
row: 99,
|
row: 99,
|
||||||
idCard: _ownerInfo.idCard,
|
idCard: _ownerInfo.idCard,
|
||||||
link: _ownerInfo.link,
|
link: _ownerInfo.ownerTel,
|
||||||
communityId: _communityId,
|
communityId: _communityId,
|
||||||
// acctType:'2003',
|
// acctType:'2003',
|
||||||
acctTypes: '2003,2004'
|
acctTypes: '2003,2004'
|
||||||
|
|||||||
@ -140,7 +140,7 @@
|
|||||||
_that.appUserName = _ownerInfo.appUserName;
|
_that.appUserName = _ownerInfo.appUserName;
|
||||||
_that.appUserId = _ownerInfo.appUserId;
|
_that.appUserId = _ownerInfo.appUserId;
|
||||||
_that.idCard = _ownerInfo.idCard;
|
_that.idCard = _ownerInfo.idCard;
|
||||||
_that.link = _ownerInfo.link;
|
_that.link = _ownerInfo.ownerTel;
|
||||||
_that.active = _active;
|
_that.active = _active;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -66,11 +66,11 @@
|
|||||||
let _that = this;
|
let _that = this;
|
||||||
context.getOwner(function(_ownerInfo) {
|
context.getOwner(function(_ownerInfo) {
|
||||||
if (_ownerInfo) {
|
if (_ownerInfo) {
|
||||||
_that.personTel = _ownerInfo.link;
|
_that.personTel = _ownerInfo.ownerTel;
|
||||||
getChargeMonthOrder({
|
getChargeMonthOrder({
|
||||||
page: 1,
|
page: 1,
|
||||||
row: 20,
|
row: 20,
|
||||||
personTel: _ownerInfo.link,
|
personTel: _ownerInfo.ownerTel,
|
||||||
communityId: _that.communityId,
|
communityId: _that.communityId,
|
||||||
queryTime:formatDate(new Date())
|
queryTime:formatDate(new Date())
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
<view class="cu-item arrow" v-if="rooms.length > 0" v-for="(item, key) in rooms" :key="key" :data-item="item" @click="myHouseDetail(item)">
|
<view class="cu-item arrow" v-if="rooms.length > 0" v-for="(item, key) in rooms" :key="key" :data-item="item" @click="myHouseDetail(item)">
|
||||||
<view class="content padding-tb-sm">
|
<view class="content padding-tb-sm">
|
||||||
<view>
|
<view>
|
||||||
<text class="cuIcon-homefill text-green margin-right-xs"></text> {{item.floorNum}}号楼{{item.unitNum}}单元{{item.roomNum}}室</view>
|
<text class="cuIcon-homefill text-green margin-right-xs"></text> {{item.floorNum}}-{{item.unitNum}}-{{item.roomNum}}</view>
|
||||||
<view class="text-gray text-sm">
|
<view class="text-gray text-sm">
|
||||||
<text class="cuIcon-right margin-right-xs"></text> {{item.roomId}}</view>
|
<text class="cuIcon-right margin-right-xs"></text> {{item.roomId}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -39,6 +39,7 @@
|
|||||||
<script>
|
<script>
|
||||||
// pages/my/myHouseDetail.js
|
// pages/my/myHouseDetail.js
|
||||||
import context from '../../lib/java110/Java110Context.js';
|
import context from '../../lib/java110/Java110Context.js';
|
||||||
|
import {hasLogin} from '@/api/user/sessionApi.js';
|
||||||
const factory = context.factory;
|
const factory = context.factory;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -65,10 +66,6 @@
|
|||||||
context.onLoad(options);
|
context.onLoad(options);
|
||||||
_that.roomDetail = JSON.parse(options.room);
|
_that.roomDetail = JSON.parse(options.room);
|
||||||
|
|
||||||
factory.login.checkLoginStatus(function() {
|
|
||||||
_that.userInfo = context.getUserInfo();
|
|
||||||
//_that.roomDetail = wx.getStorageSync('roomDetail');
|
|
||||||
}); //查询用户信息
|
|
||||||
|
|
||||||
_that.loadOwenrInfo();
|
_that.loadOwenrInfo();
|
||||||
},
|
},
|
||||||
|
|||||||
@ -118,7 +118,7 @@
|
|||||||
getCurOwner()
|
getCurOwner()
|
||||||
.then(_ownerInfo=>{
|
.then(_ownerInfo=>{
|
||||||
//_that.personName = _ownerInfo.appUserName;
|
//_that.personName = _ownerInfo.appUserName;
|
||||||
// _that.personTel = _ownerInfo.link;
|
// _that.personTel = _ownerInfo.ownerTel;
|
||||||
_that.communityId = _ownerInfo.communityId;
|
_that.communityId = _ownerInfo.communityId;
|
||||||
});
|
});
|
||||||
this.todayDate = formatDate(new Date());
|
this.todayDate = formatDate(new Date());
|
||||||
|
|||||||
@ -97,7 +97,7 @@
|
|||||||
_that.areaName = _ownerInfo.parentAreaName + _ownerInfo.areaName;
|
_that.areaName = _ownerInfo.parentAreaName + _ownerInfo.areaName;
|
||||||
_that.communityId = _ownerInfo.communityId;
|
_that.communityId = _ownerInfo.communityId;
|
||||||
_that.appUserName = _ownerInfo.name;
|
_that.appUserName = _ownerInfo.name;
|
||||||
_that.link = _ownerInfo.link;
|
_that.link = _ownerInfo.ownerTel;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user