修改请求时长配置
This commit is contained in:
@@ -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)
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user