充值和开票限定
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("请先登录")
|
||||
|
||||
@@ -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 = "";
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user