From db0395ab08c900a4d9997429ceca40cbec52a562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=A8=81=E5=A8=81?= <1834256911@qq.com> Date: Tue, 10 Jun 2025 18:27:33 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 ++++ pages/wy-bmfw.vue | 36 ++++++++++++++++++++ pages/wy-home.vue | 8 ++++- pages/wy-mine.vue | 3 +- pagesMain/pages/jfjl.vue | 57 ++++++++++++++++++++++++++++++++ pagesMain/pages/jnzd.vue | 6 ++++ pagesMain/pages/jnzd_ccs.vue | 4 +++ pagesMain/pages/jnzd_czf.vue | 49 +++++++++++++++++++-------- pagesMain/pages/jnzd_qt.vue | 5 ++- pagesMain/pages/jnzd_tcf.vue | 47 ++++++++++++++++++-------- pagesMain/pages/jnzd_tcfmx.vue | 60 +++++++++++++++++++++++++--------- pagesMain/pages/jnzd_wyf.vue | 22 ++++++++++--- pagesMain/pages/jnzd_wyfmx.vue | 18 ++++++++-- pagesMine/pages/dkpz.vue | 25 +++++++------- pagesMine/pages/wx_lsgd.vue | 2 +- 15 files changed, 284 insertions(+), 64 deletions(-) create mode 100644 pagesMain/pages/jfjl.vue diff --git a/pages.json b/pages.json index e8deb85..a993d51 100644 --- a/pages.json +++ b/pages.json @@ -166,6 +166,12 @@ "style": { "navigationBarTitleText": "缴纳账单" } + }, + { + "path": "pages/jfjl", + "style": { + "navigationBarTitleText": "缴费记录" + } } ] }, diff --git a/pages/wy-bmfw.vue b/pages/wy-bmfw.vue index 7ca735a..5505fdd 100644 --- a/pages/wy-bmfw.vue +++ b/pages/wy-bmfw.vue @@ -73,6 +73,7 @@ onLoad(options) { this.getUserInfo() this.getXqList() + this.getHouseList() }, methods: { onXz() { @@ -142,6 +143,41 @@ this.listXq = res.data }) }, + getHouseList() { + uni.showLoading({ + title: '' + }) + const than = this; + const params = { + url: '/api/community/myRoomListAll', + method: 'GET', + } + than.$request(params).then(res => { + if (than.$wskj.isNull(res.data)) { + uni.hideLoading() + return + } + than.houseList = res.data + than.houseList.forEach(function(item, index) { + if (item.room == than.userInfo.room) { + than.selecteIndex = index + } + }); + //默认绑定房屋信息 + than.setHouse() + }) + }, + setHouse() { + const params = { + url: '/api/community/cut/' + this.houseList[this.selecteIndex].communityId + "/" + this.houseList[ + this.selecteIndex].proprietorId, + } + this.$request(params).then(res => { + uni.hideLoading() + uni.setStorageSync('fwInfo', res.data) + this.address = res.data.communityName + }) + }, } }; diff --git a/pages/wy-home.vue b/pages/wy-home.vue index 9dd4f31..88c45da 100644 --- a/pages/wy-home.vue +++ b/pages/wy-home.vue @@ -188,11 +188,12 @@ getBannerList() { const than = this; const params = { - url: '/api/slideshow/list', + url: '/api/slideshow/list?type=1', method: 'GET', data: {} } this.$request(params).then(res => { + than.bannerList = []; res.data.forEach(function(item, index) { than.bannerList.push(item.url) }); @@ -258,6 +259,9 @@ }) }, getHouseList() { + uni.showLoading({ + title: '' + }) const than = this; const params = { url: '/api/community/myRoomListAll', @@ -265,6 +269,7 @@ } than.$request(params).then(res => { if (than.$wskj.isNull(res.data)) { + uni.hideLoading() return } than.houseList = res.data @@ -283,6 +288,7 @@ this.selecteIndex].proprietorId, } this.$request(params).then(res => { + uni.hideLoading() uni.setStorageSync('fwInfo', res.data) this.address = res.data.communityName }) diff --git a/pages/wy-mine.vue b/pages/wy-mine.vue index 2bc226c..f916367 100644 --- a/pages/wy-mine.vue +++ b/pages/wy-mine.vue @@ -74,11 +74,12 @@ getBannerList() { const than = this; const params = { - url: '/api/slideshow/list', + url: '/api/slideshow/list?type=1', method: 'GET', data: {} } this.$request(params).then(res => { + than.bannerList = []; res.data.forEach(function(item, index) { than.bannerList.push(item.url) }); diff --git a/pagesMain/pages/jfjl.vue b/pagesMain/pages/jfjl.vue new file mode 100644 index 0000000..b0ddeac --- /dev/null +++ b/pagesMain/pages/jfjl.vue @@ -0,0 +1,57 @@ + + + + + \ No newline at end of file diff --git a/pagesMain/pages/jnzd.vue b/pagesMain/pages/jnzd.vue index fce04b9..778ed4f 100644 --- a/pagesMain/pages/jnzd.vue +++ b/pagesMain/pages/jnzd.vue @@ -38,6 +38,9 @@ 立即缴费 + + 缴费记录 + @@ -74,6 +77,9 @@ this.indexTab = index this.money = (index + 1) * 20 }, + onJfjl() { + this.$wskj.to("/pagesMain/pages/jfjl?type=" + this.type) + }, onSubmit() { this.onCjdd() }, diff --git a/pagesMain/pages/jnzd_ccs.vue b/pagesMain/pages/jnzd_ccs.vue index f758f7a..9e7db0e 100644 --- a/pagesMain/pages/jnzd_ccs.vue +++ b/pagesMain/pages/jnzd_ccs.vue @@ -20,6 +20,10 @@ 立即缴费 + + 缴费记录 + 立即缴费 + + 缴费记录 + - @@ -33,9 +37,6 @@ return { show: false, carShow: false, - list: [ - [] - ], columns: [ ['1个月', '3个月', '6个月', '9个月', '12个月'] ], @@ -45,18 +46,17 @@ carportId: '', money: '0', carIndex: 0, + listCar: [ + [] + ], + list: [], }; }, onLoad(options) { this.type = options.type this.userinfo = uni.getStorageSync("userInfo") - //1出售车库 2临时车辆 3固定车辆 4租赁车库) - this.userinfo.carportVoList.forEach(item => { - if (item.type == 4) { - this.list[0].push(item.carportNumber) - } - }) + this.getListCar() }, methods: { open() { @@ -74,10 +74,14 @@ }, confirm(e) { + if (this.$wskj.isNull(this.carportId)) { + this.$wskj.toast('请选择车位号') + return + } this.show = false this.monthsNumber = e.value[0] - this.money = parseFloat(this.monthsNumber.replace('个月', '')) * parseFloat(this.userinfo.carportVoList[this - .carIndex].monthMoney); + this.money = parseFloat(this.monthsNumber.replace('个月', '')) * parseFloat(this.list[this.carIndex] + .monthMoney); this.money = this.money.toFixed(2) console.log("LMG", this.money) @@ -86,7 +90,7 @@ this.carShow = false this.carNumber = e.value[0] this.carIndex = e.indexs[0] - this.carportId = this.userinfo.carportVoList[e.indexs[0]].carportId + this.carportId = this.list[e.indexs[0]].carportId }, onSubmit() { if (this.$wskj.isNull(this.carportId)) { @@ -99,6 +103,25 @@ } this.onCjdd() }, + getListCar() { + const params = { + url: '/api/carport/listByType?type=2', + method: 'GET', + } + this.$request(params).then(res => { + if (this.$wskj.isNull(res.data)) { + return + } + this.list = res.data + res.data.forEach(item => { + this.listCar[0].push(item.carportNumber) + }) + //默认第一个车位 + this.carIndex = 0 + this.carNumber = res.data[0].carportNumber + this.carportId = res.data[0].carportId + }) + }, onCjdd() { const params = { url: '/api/liveBill/add', diff --git a/pagesMain/pages/jnzd_qt.vue b/pagesMain/pages/jnzd_qt.vue index 55ed364..6bd5ff4 100644 --- a/pagesMain/pages/jnzd_qt.vue +++ b/pagesMain/pages/jnzd_qt.vue @@ -30,7 +30,10 @@ 立即缴费 - + + 缴费记录 + diff --git a/pagesMain/pages/jnzd_tcf.vue b/pagesMain/pages/jnzd_tcf.vue index 150edd8..812dc79 100644 --- a/pagesMain/pages/jnzd_tcf.vue +++ b/pagesMain/pages/jnzd_tcf.vue @@ -22,7 +22,7 @@ - @@ -33,9 +33,6 @@ return { show: false, carShow: false, - list: [ - [] - ], columns: [ ['1个月', '3个月', '6个月', '9个月', '12个月'] ], @@ -45,18 +42,18 @@ carportId: '', money: '', carIndex: 0, + listCar: [ + [] + ], + list: [], }; }, onLoad(options) { this.type = options.type this.userinfo = uni.getStorageSync("userInfo") - //1出售车库 2临时车辆 3固定车辆 4租赁车库) - this.userinfo.carportVoList.forEach(item => { - if (item.type == 3) { - this.list[0].push(item.carportNumber) - } - }) + this.getListCar() + }, methods: { open() { @@ -74,19 +71,22 @@ }, confirm(e) { + if (this.$wskj.isNull(this.carportId)) { + this.$wskj.toast('请选择车位号') + return + } this.show = false this.monthsNumber = e.value[0] - this.money = parseFloat(this.monthsNumber.replace('个月', '')) * parseFloat(this.userinfo.carportVoList[this - .carIndex].monthMoney); + this.money = parseFloat(this.monthsNumber.replace('个月', '')) * parseFloat(this.list[this.carIndex] + .monthMoney); this.money = this.money.toFixed(2) console.log("LMG", this.money) - }, confirmCar(e) { this.carShow = false this.carNumber = e.value[0] this.carIndex = e.indexs[0] - this.carportId = this.userinfo.carportVoList[e.indexs[0]].carportId + this.carportId = this.list[e.indexs[0]].carportId }, onSubmit() { if (this.$wskj.isNull(this.carportId)) { @@ -99,6 +99,25 @@ } this.onCjdd() }, + getListCar() { + const params = { + url: '/api/carport/listByType?type=1', + method: 'GET', + } + this.$request(params).then(res => { + if (this.$wskj.isNull(res.data)) { + return + } + this.list = res.data + res.data.forEach(item => { + this.listCar[0].push(item.carportNumber) + }) + //默认第一个车位 + this.carIndex = 0 + this.carNumber = res.data[0].carportNumber + this.carportId = res.data[0].carportId + }) + }, onCjdd() { const params = { url: '/api/liveBill/add', diff --git a/pagesMain/pages/jnzd_tcfmx.vue b/pagesMain/pages/jnzd_tcfmx.vue index 6192a10..4bc6d4e 100644 --- a/pagesMain/pages/jnzd_tcfmx.vue +++ b/pagesMain/pages/jnzd_tcfmx.vue @@ -44,7 +44,8 @@ - + {{item.month}} @@ -60,7 +61,11 @@ - + + + + {{item.updateTime.slice(0, 7)}} @@ -71,8 +76,11 @@ {{item.updateTime.slice(5)}} + + + - @@ -86,27 +94,23 @@ indexNumber: 0, type: 0, show: false, - columns: [ - [] - ], carNumber: '', userinfo: '', jfjlList: [], djList: [], carportId: '', money: 0, + listCar: [ + [] + ], + list: [], }; }, onLoad(options) { this.type = options.type this.userinfo = uni.getStorageSync("userInfo") - //1出售车库 2临时车辆 3固定车辆 4租赁车库) - this.userinfo.carportVoList.forEach(item => { - if (item.type == 3) { - this.columns[0].push(item.carportNumber) - } - }) + this.getListCar() this.getJfjlList() }, methods: { @@ -116,6 +120,14 @@ return } this.indexTab = index + if (index == 1) { + this.getDjList() + return + } + if (index == 2) { + this.getJfjlList() + return + } }, onClick(index) { this.indexNumber = index @@ -129,9 +141,27 @@ confirm(e) { this.show = false this.carNumber = e.value[0] - this.carportId = this.userinfo.carportVoList[e.indexs[0]].carportId + this.carportId = this.list[e.indexs[0]].carportId this.getDjList() }, + getListCar() { + const params = { + url: '/api/carport/listByType?type=1', + method: 'GET', + } + this.$request(params).then(res => { + if (this.$wskj.isNull(res.data)) { + return + } + this.list = res.data + res.data.forEach(item => { + this.listCar[0].push(item.carportNumber) + }) + //默认第一个车位 + this.carNumber = res.data[0].carportNumber + this.carportId = res.data[0].carportId + }) + }, //类型(1电费 2水费 3物业费 4车位管理费 5车位出租费 6储藏室出租 7其他费用) getDjList() { const params = { @@ -139,9 +169,9 @@ method: 'GET', } this.$request(params).then(res => { + let money = 0 this.djList = res.data - const money = 0 - this.res.data.forEach(item => { + res.data.forEach(item => { money = money + parseFloat(item.money) }) this.money = money.toFixed(2) diff --git a/pagesMain/pages/jnzd_wyf.vue b/pagesMain/pages/jnzd_wyf.vue index 9535ac2..a147a8a 100644 --- a/pagesMain/pages/jnzd_wyf.vue +++ b/pagesMain/pages/jnzd_wyf.vue @@ -5,11 +5,11 @@ 物业费 房屋 - {{userinfo.room}} + {{userInfo.room}} 房屋面积 - {{userinfo.sqm}}m² + {{userInfo.sqm}}m² 缴费时长 @@ -39,13 +39,13 @@ ['1个月', '3个月', '6个月', '9个月', '12个月'] ], monthsNumber: '', - userinfo: '', + userInfo: '', money: 0, }; }, onLoad(options) { this.type = options.type - this.userinfo = uni.getStorageSync("userInfo") + this.getUserInfo() }, methods: { @@ -58,7 +58,7 @@ confirm(e) { this.show = false this.monthsNumber = e.value[0] - this.money = parseFloat(this.monthsNumber.replace('个月', '')) * parseFloat(this.userinfo.monthMoney); + this.money = parseFloat(this.monthsNumber.replace('个月', '')) * parseFloat(this.userInfo.monthMoney); this.money = this.money.toFixed(2) console.log(this.money) }, @@ -69,6 +69,18 @@ } this.onCjdd() }, + getUserInfo() { + const params = { + url: '/api/login/userInfo', + method: 'GET', + data: {} + } + this.$request(params).then(res => { + this.userInfo = res.data + //uni.setStorageSync('userInfo', res.data) + + }) + }, onCjdd() { const params = { url: '/api/liveBill/add', diff --git a/pagesMain/pages/jnzd_wyfmx.vue b/pagesMain/pages/jnzd_wyfmx.vue index 77e7b25..9e6243d 100644 --- a/pagesMain/pages/jnzd_wyfmx.vue +++ b/pagesMain/pages/jnzd_wyfmx.vue @@ -40,6 +40,9 @@ + + + {{item.updateTime.slice(5)}} + + + @@ -84,6 +90,14 @@ return } this.indexTab = index + if (index == 1) { + this.getDjList() + return + } + if (index == 2) { + this.getJfjlList() + return + } }, onClick(index) { this.indexNumber = index @@ -95,9 +109,9 @@ method: 'GET', } this.$request(params).then(res => { + let money = 0 this.djList = res.data - const money = 0 - this.res.data.forEach(item => { + res.data.forEach(item => { money = money + parseFloat(item.money) }) this.money = money.toFixed(2) diff --git a/pagesMine/pages/dkpz.vue b/pagesMine/pages/dkpz.vue index b39f70c..0e20ab8 100644 --- a/pagesMine/pages/dkpz.vue +++ b/pagesMine/pages/dkpz.vue @@ -56,18 +56,18 @@ - - + + {{nowTimes}} - - + + {{nowTime}} - - - - {{addRess}} - - {{txtName}} + + + + {{addRess}} + + {{txtName}} @@ -189,6 +189,9 @@ }) }, takeCanvas(imginfo) { + uni.showLoading({ + title: "" + }) console.log(imginfo) var that = this // 获取图片信息 @@ -198,7 +201,6 @@ that.w = ress.width + 'px'; // 设置 canvas 元素宽度 that.h = ress.height + 'px'; // 设置 canvas 元素高度 console.log(that.w, that.h) - let ctx = uni.createCanvasContext('firstCanvas'); /** 创建画布 */ const maxWidth = 200; // 设置最大行宽 const lineHeight = 30; // 设置行高 @@ -255,6 +257,7 @@ //通过 eventChannel 发送数据 uni.$emit('imageSrc', that.imageSrc) setTimeout(() => { + uni.hideLoading() this.$wskj.goBack(1) }, 600) }, diff --git a/pagesMine/pages/wx_lsgd.vue b/pagesMine/pages/wx_lsgd.vue index 1e21597..f5467f5 100644 --- a/pagesMine/pages/wx_lsgd.vue +++ b/pagesMine/pages/wx_lsgd.vue @@ -55,7 +55,7 @@ - + 设置维修费用