This commit is contained in:
2022-06-30 16:15:54 +08:00
parent 9e0a4d13c8
commit edd8395e53
4 changed files with 6 additions and 7 deletions

View File

@@ -86,11 +86,12 @@
lists: [], lists: [],
timeData: {}, timeData: {},
type: "1", // 1 加成榜 2推荐榜 type: "1", // 1 加成榜 2推荐榜
page_id:'', page_id: '',
} }
}, },
onLoad() { onShow() {
this.getList(); this.getList();
console.log('onshow...')
}, },
methods: { methods: {
@@ -100,7 +101,6 @@
changeType(type) { changeType(type) {
if (this.type !== type) { if (this.type !== type) {
this.type = type; this.type = type;
this.getList(); this.getList();
} }
}, },
@@ -110,7 +110,7 @@
}) })
}, },
getList() { getList() {
uni.showLoading({})
let urlRequest = '' let urlRequest = ''
if (this.type === '1') { if (this.type === '1') {
urlRequest = week_mul urlRequest = week_mul
@@ -122,7 +122,6 @@
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,

BIN
static/tabBar/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 631 B

After

Width:  |  Height:  |  Size: 2.6 KiB

File diff suppressed because one or more lines are too long