http请求修改

This commit is contained in:
姚亚男
2021-10-19 14:59:13 +08:00
parent b399125d3a
commit 27a0dc96b1
10 changed files with 113 additions and 74 deletions
+5 -1
View File
@@ -60,6 +60,10 @@ Page({
})
},
loadData(){
wx.showToast({
title: '加载中...',
icon: 'loading'
})
if(this.data.type == 'project'){
UserApi.projectList(this.data.searchParams).then(res=>{
if(res.success){
@@ -78,7 +82,7 @@ Page({
}).catch(err=>{
wx.showToast({
title: '加载失败',
icon: 'fail',
icon: 'none',
duration: 2000
})
})