Commit 2d4c87bb by 高淑倩

退款回退

parent ab529f45
...@@ -60,13 +60,24 @@ wxService.page({ ...@@ -60,13 +60,24 @@ wxService.page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
this.setData({ console.log('currentIndex', this.data.currentIndex)
currentIndex: 1, const {currentIndex} = this.data
pageNo: 1,
pageSize: 5, if(currentIndex == 5){
trade: '', this.getRefundList(this.data.pageNo, this.data.pageSize)
}) } else {
this.initOrderList(this.data.pageNo, this.data.pageSize, this.data.trade) this.setData({
pageNo: 1,
pageSize: 5
},()=>{
const params = { trade: this.data.trade }
this.initOrderList(this.data.pageNo, this.data.pageSize, params)
// this.initOrderList(this.data.pageNo, this.data.pageSize, this.data.trade)
})
}
}, },
// 确认收货 // 确认收货
handelConfirmReceipt(e) { handelConfirmReceipt(e) {
...@@ -189,7 +200,12 @@ wxService.page({ ...@@ -189,7 +200,12 @@ wxService.page({
if (type == 5 && status == 'RF') { if (type == 5 && status == 'RF') {
this.getRefundList(this.data.pageNo, this.data.pageSize) this.getRefundList(this.data.pageNo, this.data.pageSize)
} else { } else {
this.initOrderList(this.data.pageNo, this.data.pageSize, status) this.setData({
trade:status
},()=>{
this.initOrderList(this.data.pageNo, this.data.pageSize, status)
})
} }
}) })
}, },
......
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