getPage(msg) {
uni.showLoading({
title: msg,
mask: true
})
this.$http.get(this.$api.url.notice.getPageList, this.page.query).then(res => {
uni.hideLoading();
uni.stopPullDownRefresh();
if (!res.success) {
uni.showToast({
title: res.message,
icon: 'none'
})
return
}
if (this.page.query.pageNumber == 1) {
this.page.rows = [];
}
this.page.total = res.data.total
this.page.rows = this.page.rows.concat(res.data.rows)
}).catch(err=>{
uni.hideLoading();
uni.showToast({
title: err.message,
icon: 'none'
})
})
},
以上为请求代码,再重复点击后,会出现加载框一直展示不会消失的问题。
下边是错误的视频