Commit 9db8d416 by 姜雷

Merge branch 'develop' into test

parents 19f4afc8 2ab422d4
......@@ -101,10 +101,15 @@ Component({
});
},
refreshList() {
wx.showLoading({
title: '加载中',
mask: true,
});
this.fetchList({
pageNum: 1,
})
.then(res => {
wx.hideLoading();
const { list } = res.data;
this.setData({
pageNum: 1,
......@@ -112,14 +117,20 @@ Component({
});
})
.catch(err => {
wx.hideLoading();
console.log(err);
});
},
getMoreListItem() {
wx.showLoading({
title: '加载中',
mask: true,
});
this.fetchList({
pageNum: this.data.pageNum + 1,
})
.then(res => {
wx.hideLoading();
const { list } = res.data;
if (list && list.length) {
this.setData!({
......@@ -129,6 +140,7 @@ Component({
}
})
.catch(err => {
wx.hideLoading();
console.log(err);
});
},
......
......@@ -109,6 +109,7 @@ Component({
refreshList() {
wx.showLoading({
title: '加载中',
mask: true,
});
this.fetchList()
.then(res => {
......@@ -132,6 +133,7 @@ Component({
getMoreListItem() {
wx.showLoading({
title: '加载中',
mask: true,
});
let nextPage = this.data.pagination[this.data.status].pageNum + 1;
this.fetchList({
......
......@@ -98,6 +98,7 @@ Component({
refreshList() {
wx.showLoading({
title: '加载中',
mask: true,
});
this.fetchList({})
.then(res => {
......@@ -122,6 +123,7 @@ Component({
getMoreListItem() {
wx.showLoading({
title: '加载中',
mask: true,
});
let nextPage = this.data.pageNum + 1;
this.fetchList({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment