Commit 2d4c87bb by 高淑倩

退款回退

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