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,
|
||||
row: 20,
|
||||
idCard: _ownerInfo.idCard,
|
||||
link: _ownerInfo.link,
|
||||
link: _ownerInfo.ownerTel,
|
||||
communityId: _communityId,
|
||||
acctType:'2003'
|
||||
}).then((data) => {
|
||||
|
||||
@ -48,7 +48,7 @@
|
||||
getChargeMonthOrder({
|
||||
page: 1,
|
||||
row: 20,
|
||||
personTel: _ownerInfo.link,
|
||||
personTel: _ownerInfo.ownerTel,
|
||||
communityId: _communityId,
|
||||
queryTime:formatDate(new Date())
|
||||
}).then((data) => {
|
||||
|
||||
@ -152,7 +152,7 @@
|
||||
page: 1,
|
||||
row: 20,
|
||||
idCard: _ownerInfo.idCard,
|
||||
link: _ownerInfo.link,
|
||||
link: _ownerInfo.ownerTel,
|
||||
communityId: _ownerInfo.communityId
|
||||
}).then((data) => {
|
||||
if (!data) {
|
||||
@ -192,7 +192,7 @@
|
||||
getCouponUsers({
|
||||
page: 1,
|
||||
row: 100,
|
||||
tel: _ownerInfo.link,
|
||||
tel: _ownerInfo.ownerTel,
|
||||
communityId: _ownerInfo.communityId,
|
||||
state: '1001'
|
||||
}, null)
|
||||
|
||||
@ -97,7 +97,7 @@
|
||||
page: 1,
|
||||
row: 99,
|
||||
idCard: _ownerInfo.idCard,
|
||||
link: _ownerInfo.link,
|
||||
link: _ownerInfo.ownerTel,
|
||||
communityId: _communityId,
|
||||
// acctType:'2003',
|
||||
acctTypes: '2003,2004'
|
||||
|
||||
@ -140,7 +140,7 @@
|
||||
_that.appUserName = _ownerInfo.appUserName;
|
||||
_that.appUserId = _ownerInfo.appUserId;
|
||||
_that.idCard = _ownerInfo.idCard;
|
||||
_that.link = _ownerInfo.link;
|
||||
_that.link = _ownerInfo.ownerTel;
|
||||
_that.active = _active;
|
||||
}
|
||||
});
|
||||
|
||||
@ -66,11 +66,11 @@
|
||||
let _that = this;
|
||||
context.getOwner(function(_ownerInfo) {
|
||||
if (_ownerInfo) {
|
||||
_that.personTel = _ownerInfo.link;
|
||||
_that.personTel = _ownerInfo.ownerTel;
|
||||
getChargeMonthOrder({
|
||||
page: 1,
|
||||
row: 20,
|
||||
personTel: _ownerInfo.link,
|
||||
personTel: _ownerInfo.ownerTel,
|
||||
communityId: _that.communityId,
|
||||
queryTime:formatDate(new Date())
|
||||
}).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="content padding-tb-sm">
|
||||
<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">
|
||||
<text class="cuIcon-right margin-right-xs"></text> {{item.roomId}}</view>
|
||||
</view>
|
||||
|
||||
@ -39,6 +39,7 @@
|
||||
<script>
|
||||
// pages/my/myHouseDetail.js
|
||||
import context from '../../lib/java110/Java110Context.js';
|
||||
import {hasLogin} from '@/api/user/sessionApi.js';
|
||||
const factory = context.factory;
|
||||
|
||||
export default {
|
||||
@ -65,11 +66,7 @@
|
||||
context.onLoad(options);
|
||||
_that.roomDetail = JSON.parse(options.room);
|
||||
|
||||
factory.login.checkLoginStatus(function() {
|
||||
_that.userInfo = context.getUserInfo();
|
||||
//_that.roomDetail = wx.getStorageSync('roomDetail');
|
||||
}); //查询用户信息
|
||||
|
||||
|
||||
_that.loadOwenrInfo();
|
||||
},
|
||||
|
||||
|
||||
@ -118,7 +118,7 @@
|
||||
getCurOwner()
|
||||
.then(_ownerInfo=>{
|
||||
//_that.personName = _ownerInfo.appUserName;
|
||||
// _that.personTel = _ownerInfo.link;
|
||||
// _that.personTel = _ownerInfo.ownerTel;
|
||||
_that.communityId = _ownerInfo.communityId;
|
||||
});
|
||||
this.todayDate = formatDate(new Date());
|
||||
|
||||
@ -97,7 +97,7 @@
|
||||
_that.areaName = _ownerInfo.parentAreaName + _ownerInfo.areaName;
|
||||
_that.communityId = _ownerInfo.communityId;
|
||||
_that.appUserName = _ownerInfo.name;
|
||||
_that.link = _ownerInfo.link;
|
||||
_that.link = _ownerInfo.ownerTel;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user