修改请求时长配置

This commit is contained in:
@fawn-nine
2024-08-14 16:14:10 +08:00
parent c348bdad91
commit eedeb5c37f
5 changed files with 12 additions and 8 deletions

View File

@@ -264,9 +264,9 @@ import { data } from 'jquery';
},
getBookList(flag, refreshflag){
// 根据tab不同获取最新书评、最热书评、书集列表
// uni.showLoading({
// title: '加载中'
// });
uni.showLoading({
title: '加载中'
});
// 顶部红点数量
$http.request({
@@ -298,6 +298,7 @@ import { data } from 'jquery';
'Content-Type': 'application/json'
},
}).then(res => {
uni.hideLoading()
console.log(res, '内容获取成功')
if (res.code == 0 && res.page && res.page.records.length > 0) {
this.newList = this.newList.concat(res.page.records)
@@ -310,6 +311,7 @@ import { data } from 'jquery';
this.status = 0
}
}).catch(e => {
uni.hideLoading()
console.log(e)
})
},