充值和开票限定
This commit is contained in:
@@ -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("请先登录")
|
||||
|
||||
Reference in New Issue
Block a user