From 2bb5a510314787d7e1c99dc5adabec0d7edda16e Mon Sep 17 00:00:00 2001 From: qiaomu <3520484422@qq.com> Date: Thu, 27 Nov 2025 08:53:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=85=E5=80=BC=E5=92=8C=E5=BC=80=E7=A5=A8?= =?UTF-8?q?=E9=99=90=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.js | 17 ++++++++++++++++- pages/invoiceList/components/notyet/index.js | 14 +++++++++++++- project.private.config.json | 7 +++++++ 3 files changed, 36 insertions(+), 2 deletions(-) diff --git a/pages/home/index.js b/pages/home/index.js index cbea2c1..bcf3e81 100644 --- a/pages/home/index.js +++ b/pages/home/index.js @@ -1,6 +1,8 @@ // pages/home/index.js import { getMeterDetail, getMeterList, getTenementMeterList } from "../../service/meter"; -import { getOwnTenementList, getTenementExceptionalCase } from "../../service/tenement"; +import { getOwnTenementList, getTenementExceptionalCase , + getTenementBackInfo, getTenementDetail, getTenementInfoDetail, +} from "../../service/tenement"; import { alertInfo, alertSuccess } from "../../utils/index"; import request from '../../utils/request'; import { getDot } from "../../utils/system"; @@ -159,6 +161,19 @@ Page({ alertInfo("账号存在异常,无法进行充值,请联系客服处理") return; } + const { + code: tenementDetailCode, + message: tenementDetailMessage, + tenement: tenementDetail, + } = await getTenementBackInfo(park?.id, tenement?.id) + if (tenementDetailCode !== OK) { + alertInfo(tenementDetailMessage) + return + } + if (tenementDetail?.stop_top) { + alertInfo("您暂不可使用此功能,可联系客服处理。") + return; + } const that = this; if (!user || !user.id) { alertInfo("请先登录") diff --git a/pages/invoiceList/components/notyet/index.js b/pages/invoiceList/components/notyet/index.js index aa9fe41..6c10e41 100644 --- a/pages/invoiceList/components/notyet/index.js +++ b/pages/invoiceList/components/notyet/index.js @@ -1,5 +1,6 @@ // pages/invoiceList/components/notyet/index.js import { getInvoiceList } from '../../../../service/invoice'; +import { getTenementBackInfo } from '../../../../service/tenement'; import { alertInfo, loadingFunc } from '../../../../utils/index'; import request from '../../../../utils/request'; const { OK } = request; @@ -69,7 +70,18 @@ Component({ selectMoney: Number(selectMoney.toFixed(2)) }) }, - next() { + async next() { + const park = wx.getStorageSync("park") + const tenement = wx.getStorageSync("tenement") + const { code: detailCode, message: detailMessage, tenement: Detail } = await getTenementBackInfo(park?.id, tenement?.id) + if (detailCode !== OK) { + alertInfo(detailMessage) + return; + } + if (Detail?.stop_invoice) { + alertInfo("您暂不可使用此功能,可联系客服处理。") + return + } const { selectList, list, selectMoney, selectCount } = this.data; let tenementID = ""; let tenementName = ""; diff --git a/project.private.config.json b/project.private.config.json index 6409ae4..edd72a1 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -23,6 +23,13 @@ "condition": { "miniprogram": { "list": [ + { + "name": "pages/invoiceList/index", + "pathName": "pages/invoiceList/index", + "query": "", + "launchMode": "default", + "scene": null + }, { "name": "pages/workBenchNew/components/installMeter/index", "pathName": "pages/workBenchNew/components/installMeter/index",