修改分页组件在部分场景中存在缓存问题导致部分数据无法查看的问题

This commit is contained in:
2024-08-08 10:30:55 +08:00
parent cf7756dd5c
commit b9e1b06d29
33 changed files with 56 additions and 886 deletions

View File

@@ -1,9 +1,9 @@
// pages/rechargeRecord/index.js
import { getRechargeList } from "../../service/recharge";
import { getTenementMeterList } from "../../service/meter";
import { getYears, alertInfo, loadingFunc } from "../../utils/index";
import request from "../../utils/request";
const { OK } = request;
// pages/rechargeRecord/index.js
Page({
/**
@@ -50,19 +50,6 @@ Page({
this.onChangeMeter(value)
return;
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
onChangeYear(e) {
const { codeId } = this.data;
@@ -78,9 +65,7 @@ Page({
onChangeMeter(e) {
const { id, code } = e;
const { year } = this.data;
// const currentYear = years[Number(e)]
this.setData({
// year: currentYear,
codeId: id,
meterCode: code,
type: "",
@@ -144,38 +129,4 @@ Page({
back() {
wx.navigateBack({delta: 1 })
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@@ -23,7 +23,6 @@
}
.recordsItem {
display: flex;
/* justify-content: space-between; */
padding: 16rpx 20rpx;
border-left: 0;
border-right: 0;
@@ -73,8 +72,6 @@
text-align: right;
color: #fff;
font-size: 32rpx;
/* display: flex; */
/* justify-content: end; */
}
.type {
@@ -92,8 +89,4 @@
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
page {
/* background-color: var(--light-green); */
}