优化代码

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

View File

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

View File

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

View File

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

View File

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

View File

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

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="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>

View File

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

View File

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

View File

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