修改样式

This commit is contained in:
2024-06-17 17:36:07 +08:00
parent 56e08863de
commit 75713f1e97
16 changed files with 72 additions and 40 deletions

View File

@@ -1,6 +1,6 @@
import { getRechargeList } from "../../service/recharge";
import { getTenementMeterList } from "../../service/meter";
import { getYears, alertInfo } from "../../utils/index";
import { getYears, alertInfo, loadingFunc } from "../../utils/index";
import request from "../../utils/request";
const { OK } = request;
// pages/rechargeRecord/index.js
@@ -95,10 +95,14 @@ Page({
onShow() {
const { year } = this.data;
const tenement = wx.getStorageSync('tenement')
this.init(year, '');
this.getMeters(tenement?.id);
loadingFunc(async () => {
await this.init(year, '');
await this.getMeters(tenement?.id);
});
},
refreshEmpty() {
const { year } = this.data;
const tenement = wx.getStorageSync('tenement')
this.init(year, '');
this.init(year, tenement);