修复排行

This commit is contained in:
2022-06-30 17:12:06 +08:00
parent 6a40ddc3d8
commit 40e213e8df
2 changed files with 7 additions and 6 deletions

View File

@@ -91,7 +91,6 @@
},
onShow() {
this.getList();
console.log('onshow...')
},
methods: {
@@ -99,8 +98,10 @@
this.timeData = e
},
changeType(type) {
if (this.type !== type) {
this.type = type;
if (this.type !== type) {
this.lists = [];
this.type = type;
uni.showLoading({})
this.getList();
}
},
@@ -118,10 +119,10 @@
urlRequest = week
}
urlRequest().then(res => {
this.lists = [];
this.lists = res.rand;
this.page_id = res.page_id;
this.end_timestamp = res.end_timestamp * 1000;
this.end_timestamp = res.end_timestamp * 1000;
uni.hideLoading()
}).catch(err => {
uni.showToast({
title: err.message,