充值和开票限定

This commit is contained in:
2025-11-27 08:53:09 +08:00
parent 990a3a17aa
commit 2bb5a51031
3 changed files with 36 additions and 2 deletions

View File

@@ -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("请先登录")