调试接口
This commit is contained in:
@ -198,15 +198,16 @@
|
||||
|
||||
try {
|
||||
getHomeTeaStoreList(filter).then( res => {
|
||||
uni.hideLoading()
|
||||
const curPageData = res.list || [] // 当前页数据
|
||||
if(mescroll.num == 1) list.value = [] // 第一页需手动制空列表
|
||||
list.value = list.value.concat(curPageData) //追加新数据
|
||||
mescroll.endSuccess(curPageData.length, Boolean(res.more))
|
||||
}).catch(() => {
|
||||
uni.hideLoading()
|
||||
mescroll.endErr() // 请求失败, 结束加载
|
||||
})
|
||||
|
||||
uni.hideLoading()
|
||||
} catch (error) {
|
||||
uni.hideLoading()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user