优化代码

This commit is contained in:
wuxw 2024-04-12 16:35:23 +08:00
parent 39dbbb36ad
commit f807598bc0
10 changed files with 13 additions and 16 deletions

View File

@ -48,7 +48,7 @@
page: 1,
row: 20,
idCard: _ownerInfo.idCard,
link: _ownerInfo.link,
link: _ownerInfo.ownerTel,
communityId: _communityId,
acctType:'2003'
}).then((data) => {

View File

@ -48,7 +48,7 @@
getChargeMonthOrder({
page: 1,
row: 20,
personTel: _ownerInfo.link,
personTel: _ownerInfo.ownerTel,
communityId: _communityId,
queryTime:formatDate(new Date())
}).then((data) => {

View File

@ -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)

View File

@ -97,7 +97,7 @@
page: 1,
row: 99,
idCard: _ownerInfo.idCard,
link: _ownerInfo.link,
link: _ownerInfo.ownerTel,
communityId: _communityId,
// acctType:'2003',
acctTypes: '2003,2004'

View File

@ -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;
}
});

View File

@ -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) => {

View File

@ -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>

View File

@ -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();
},

View File

@ -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());

View File

@ -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;
}
});
},