修复排行

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

File diff suppressed because one or more lines are too long