修改分页组件在部分场景中存在缓存问题导致部分数据无法查看的问题
This commit is contained in:
@@ -11,9 +11,6 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
// list: [],
|
||||
// urls: [],
|
||||
// indexs: [],
|
||||
url: "",
|
||||
tenement: ""
|
||||
},
|
||||
@@ -22,7 +19,6 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
// this.getList()
|
||||
loadingFunc(async () => {
|
||||
await this.getCode()
|
||||
})
|
||||
@@ -43,7 +39,6 @@ Page({
|
||||
})
|
||||
},
|
||||
async getCode() {
|
||||
// const { index, id } = e.currentTarget.dataset;
|
||||
const tenement = wx.getStorageSync('tenement');
|
||||
const { code, message, data } = await getWxCode(tenement.id)
|
||||
if (code !== OK) {
|
||||
@@ -54,14 +49,6 @@ Page({
|
||||
url: data,
|
||||
tenement: tenement
|
||||
})
|
||||
// const newUrls = that.data.urls;
|
||||
// newUrls[index] = data;
|
||||
// const newIndexs = that.data.indexs;
|
||||
// newIndexs[index] = true;
|
||||
// that.setData({
|
||||
// urls: newUrls,
|
||||
// indexs: newIndexs,
|
||||
// })
|
||||
},
|
||||
look(e) {
|
||||
const that = this;
|
||||
@@ -69,52 +56,4 @@ Page({
|
||||
await this.getCode(e, that)
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user