优化物业缴费点击去抵扣物业账单后页面的数据请求逻辑

This commit is contained in:
赵毅 2025-10-20 11:50:56 +08:00
parent f2acabac3f
commit 15288eaa10
2 changed files with 16 additions and 5 deletions

View File

@ -298,6 +298,15 @@ export default {
this.localHeight = meun.height; this.localHeight = meun.height;
this.currentCommunity = uni.getStorageSync("changeCommData"); this.currentCommunity = uni.getStorageSync("changeCommData");
this.currentCommunityAddr = uni.getStorageSync("currentCommunityAddr"); this.currentCommunityAddr = uni.getStorageSync("currentCommunityAddr");
// providentFund
if (options.item) {
try {
const item = JSON.parse(decodeURIComponent(options.item));
this.currentRoom = item;
} catch (error) {
console.error("解析房源信息失败:", error);
}
}
this.getRoomSelect(); this.getRoomSelect();
this.getUserGovenmentMoney(); this.getUserGovenmentMoney();
}, },
@ -379,7 +388,9 @@ export default {
page_size: 50, page_size: 50,
}).then((res) => { }).then((res) => {
this.roomList = res.rows; this.roomList = res.rows;
this.currentRoom = this.roomList[0]; if (!this.currentRoom.room_id) {
this.currentRoom = this.roomList[0]
}
this.selectedRoomId = this.currentRoom.room_id; this.selectedRoomId = this.currentRoom.room_id;
this.getOrderList().then(() => { this.getOrderList().then(() => {
resolve(); resolve();

View File

@ -219,7 +219,7 @@ export default {
}); });
}, },
goPay() { goPay() {
NavgateTo("../propertyPayment/index"); NavgateTo("../propertyPayment/index?item=" + encodeURIComponent(JSON.stringify(this.defaultName)));
}, },
}, },
}; };