修改分页组件在部分场景中存在缓存问题导致部分数据无法查看的问题
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// pages/invoiceInfo/index.js
|
||||
import { getInvoiceInfoDetail, downloadInvoice } from "../../service/invoice";
|
||||
import { alertError, alertInfo, loadingFunc } from "../../utils/index";
|
||||
import request from '../../utils/request'
|
||||
const { OK } = request;
|
||||
// pages/invoiceInfo/index.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
@@ -74,69 +74,7 @@ Page({
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
// console.log('data', data)
|
||||
// const filePath = `${wx.env.USER_DATA_PATH}/发票/${that.data.id}.${res.tapIndex === 0 ? 'xml' : "pdf"}`;
|
||||
// FileSystemManager.writeFile({
|
||||
// filePath: filePath,
|
||||
// data: res.data,
|
||||
// encoding: 'base64', // 2. base64解密写入, 后台返回的byte[]数组是经过base64编码的,其他方式写入文件打开格式不对
|
||||
// success: function(res) {
|
||||
|
||||
// },
|
||||
// fail: function (e) {
|
||||
// console.log(e.errMsg);
|
||||
// }
|
||||
// });
|
||||
}
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user