From 3d13c3003a8613cea452b6a1d988b294755ca570 Mon Sep 17 00:00:00 2001 From: qiaomu <3520484422@qq.com> Date: Mon, 6 May 2024 15:48:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8F=91=E7=A5=A8=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=92=8C=E8=AF=A6=E6=83=85=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/electricQuery/index.js | 1 - pages/home/index.js | 2 + pages/invoiceList/components/already/index.js | 1 - pages/invoiceList/components/info/index.js | 4 + pages/invoiceList/components/info/index.wxml | 213 +++++++++++------- pages/invoicing/index.js | 1 - pages/my/index.json | 6 +- pages/my/index.wxml | 26 +-- pages/rechargeRecord/index.js | 2 +- 9 files changed, 151 insertions(+), 105 deletions(-) diff --git a/pages/electricQuery/index.js b/pages/electricQuery/index.js index d82d9d0..afcffc0 100644 --- a/pages/electricQuery/index.js +++ b/pages/electricQuery/index.js @@ -122,7 +122,6 @@ Page({ onOk(e) { const { type, value = {} } = e.detail; const { id, code } = e; - console.log('e', e) const { year } = this.data; // const currentYear = years[Number(e)] this.setData({ diff --git a/pages/home/index.js b/pages/home/index.js index c772215..5beee83 100644 --- a/pages/home/index.js +++ b/pages/home/index.js @@ -306,6 +306,8 @@ Page({ updateDatas.all = data; this.setData({ ...updateDatas + }, () => { + this.getMeters({ id: updateDatas.tenement.id }) }) }, jumpToRecord() { diff --git a/pages/invoiceList/components/already/index.js b/pages/invoiceList/components/already/index.js index 38071d5..f0c6561 100644 --- a/pages/invoiceList/components/already/index.js +++ b/pages/invoiceList/components/already/index.js @@ -20,7 +20,6 @@ Component({ list: [] }, onRefresh() { - console.log('--------------') this.getList(); }, lifetimes: { diff --git a/pages/invoiceList/components/info/index.js b/pages/invoiceList/components/info/index.js index 27bdac3..6215f60 100644 --- a/pages/invoiceList/components/info/index.js +++ b/pages/invoiceList/components/info/index.js @@ -107,6 +107,10 @@ Component({ } } const { code, message } = await updateInvoiceInfo(formData) + if (code !== OK) { + alertInfo(message) + return; + } alertSuccess("编辑成功") this.getDetail() } diff --git a/pages/invoiceList/components/info/index.wxml b/pages/invoiceList/components/info/index.wxml index 6c85aa8..010e497 100644 --- a/pages/invoiceList/components/info/index.wxml +++ b/pages/invoiceList/components/info/index.wxml @@ -60,31 +60,45 @@ + - - {{detail.name}} - -- - - + border="{{ true }}" + /> + - - {{detail.tin}} - - - - + /> + - - {{detail.bank}} - - - - + /> - - {{detail.account}} - - - - + /> + - - {{detail.address}} - - - - + /> + - - - - - + /> + + - - - - - + /> @@ -217,7 +251,8 @@ - - - - - + /> + diff --git a/pages/invoicing/index.js b/pages/invoicing/index.js index a8f13fd..99b1012 100644 --- a/pages/invoicing/index.js +++ b/pages/invoicing/index.js @@ -23,7 +23,6 @@ Page({ * 生命周期函数--监听页面加载 */ onLoad(options) { - console.log('options', options) const { money = 0, tenement, ids = '', count = 0, tenementName } = options; this.setData({ money, tenement, ids: ids.split(","), count, tenementName }) this.getDetail(); diff --git a/pages/my/index.json b/pages/my/index.json index d53986f..10f58ec 100644 --- a/pages/my/index.json +++ b/pages/my/index.json @@ -4,7 +4,9 @@ "van-cell-group": "@vant/weapp/cell-group/index", "cell": "/components/cell/index", "van-dialog": "@vant/weapp/dialog/index", - "dot": "/components/dot/index" + "dot": "/components/dot/index", + "navigator": "/components/navigator/index" }, - "navigationBarTitleText": "我的" + "navigationBarTitleText": "我的", + "navigationStyle": "custom" } \ No newline at end of file diff --git a/pages/my/index.wxml b/pages/my/index.wxml index 974a775..2c18b70 100644 --- a/pages/my/index.wxml +++ b/pages/my/index.wxml @@ -4,20 +4,20 @@ --> - - - - - - - 成员管理 - - + + + + + + + 成员管理 + - - - - + + + + +