页面读取

master
gongfuxiang 2024-10-10 17:26:52 +08:00
parent af5739fe1e
commit 590ff12ca1
2 changed files with 5 additions and 5 deletions

View File

@ -121,10 +121,10 @@
data_bottom_line_status: true
};
this.setData(upd_data);
//
uni.setStorageSync(cache_key, upd_data);
//
if (parseInt(data.is_result_data_cache || 0) == 1) {
this.get_data({ is_cache: 0 });

View File

@ -99,19 +99,19 @@
success: res => {
uni.stopPullDownRefresh();
if (res.data.code == 0) {
var data = res.data.data;
var upd_data = {
data: res.data.data.data || null,
data: data.data || null,
data_list_loding_msg: '',
data_list_loding_status: 0,
data_bottom_line_status: true
};
this.setData(upd_data);
//
uni.setStorageSync(cache_key, upd_data);
//
if (parseInt(data.is_result_data_cache || 0) == 1) {
if (parseInt(this.data.is_result_data_cache || 0) == 1) {
this.get_data({ is_cache: 0 });
}