Commit 552afe42 by 高淑倩

add: 退款列表

parent c2226262
...@@ -118,8 +118,10 @@ wxService.page({ ...@@ -118,8 +118,10 @@ wxService.page({
this.setData({ this.setData({
orderList: this.data.pageNo == 1 ? [...data] : [...this.data.orderList, ...data], orderList: this.data.pageNo == 1 ? [...data] : [...this.data.orderList, ...data],
noMoreFlag: data.length < pageSize ? true : false, noMoreFlag: data.length < pageSize ? true : false,
no_data: data.length ? true : false
}, () => { }, () => {
this.setData({
no_data: this.data.orderList.length ? true : false
})
wx.setStorageSync('orderList', this.data.orderList) wx.setStorageSync('orderList', this.data.orderList)
}) })
} }
...@@ -140,8 +142,11 @@ wxService.page({ ...@@ -140,8 +142,11 @@ wxService.page({
wx.hideLoading() wx.hideLoading()
this.setData({ this.setData({
orderList: this.data.pageNo == 1 ? [...data] : [...this.data.orderList, ...data], orderList: this.data.pageNo == 1 ? [...data] : [...this.data.orderList, ...data],
noMoreFlag: data.length < pageSize ? true : false, noMoreFlag: data.length < pageSize ? true : false
no_data: data.length ? true : false },()=>{
this.setData({
no_data: this.data.orderList.length ? true : false
})
}) })
} }
} }
......
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