充值和开票限定
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
// pages/home/index.js
|
// pages/home/index.js
|
||||||
import { getMeterDetail, getMeterList, getTenementMeterList } from "../../service/meter";
|
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 { alertInfo, alertSuccess } from "../../utils/index";
|
||||||
import request from '../../utils/request';
|
import request from '../../utils/request';
|
||||||
import { getDot } from "../../utils/system";
|
import { getDot } from "../../utils/system";
|
||||||
@@ -159,6 +161,19 @@ Page({
|
|||||||
alertInfo("账号存在异常,无法进行充值,请联系客服处理")
|
alertInfo("账号存在异常,无法进行充值,请联系客服处理")
|
||||||
return;
|
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;
|
const that = this;
|
||||||
if (!user || !user.id) {
|
if (!user || !user.id) {
|
||||||
alertInfo("请先登录")
|
alertInfo("请先登录")
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// pages/invoiceList/components/notyet/index.js
|
// pages/invoiceList/components/notyet/index.js
|
||||||
import { getInvoiceList } from '../../../../service/invoice';
|
import { getInvoiceList } from '../../../../service/invoice';
|
||||||
|
import { getTenementBackInfo } from '../../../../service/tenement';
|
||||||
import { alertInfo, loadingFunc } from '../../../../utils/index';
|
import { alertInfo, loadingFunc } from '../../../../utils/index';
|
||||||
import request from '../../../../utils/request';
|
import request from '../../../../utils/request';
|
||||||
const { OK } = request;
|
const { OK } = request;
|
||||||
@@ -69,7 +70,18 @@ Component({
|
|||||||
selectMoney: Number(selectMoney.toFixed(2))
|
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;
|
const { selectList, list, selectMoney, selectCount } = this.data;
|
||||||
let tenementID = "";
|
let tenementID = "";
|
||||||
let tenementName = "";
|
let tenementName = "";
|
||||||
|
|||||||
@@ -23,6 +23,13 @@
|
|||||||
"condition": {
|
"condition": {
|
||||||
"miniprogram": {
|
"miniprogram": {
|
||||||
"list": [
|
"list": [
|
||||||
|
{
|
||||||
|
"name": "pages/invoiceList/index",
|
||||||
|
"pathName": "pages/invoiceList/index",
|
||||||
|
"query": "",
|
||||||
|
"launchMode": "default",
|
||||||
|
"scene": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "pages/workBenchNew/components/installMeter/index",
|
"name": "pages/workBenchNew/components/installMeter/index",
|
||||||
"pathName": "pages/workBenchNew/components/installMeter/index",
|
"pathName": "pages/workBenchNew/components/installMeter/index",
|
||||||
|
|||||||
Reference in New Issue
Block a user