修改样式
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user