|
|
|
@ -29,6 +29,7 @@ Scene({ |
|
|
|
top: 0, |
|
|
|
orderList: [], |
|
|
|
form: { |
|
|
|
orderStatus: '', |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 10 |
|
|
|
}, |
|
|
|
@ -38,7 +39,7 @@ Scene({ |
|
|
|
// * 生命周期函数--监听页面加载
|
|
|
|
onLoad: function (options) { |
|
|
|
if(!util.isEmpty(options.status) || Number(options.status) == 0){ |
|
|
|
this.data.form.status = Number(options.status) |
|
|
|
this.data.form.orderStatus = Number(options.status) |
|
|
|
for (let index = 1; index < this.data.tabList.length; index++) { |
|
|
|
if(this.data.tabList[index].status === Number(options.status)){ |
|
|
|
this.data.tabIndex = index |
|
|
|
@ -66,7 +67,7 @@ Scene({ |
|
|
|
return |
|
|
|
} |
|
|
|
this.setData({ tabIndex: detail.index, requesting: false }) |
|
|
|
this.data.form.status = this.data.tabList[detail.index].status |
|
|
|
this.data.form.orderStatus = this.data.tabList[detail.index].status |
|
|
|
this.onRefreshList() |
|
|
|
}, |
|
|
|
onRefreshList: function () { |
|
|
|
@ -108,6 +109,7 @@ Scene({ |
|
|
|
} |
|
|
|
this.data.lastTime = itemTime |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
let nowList = `orderList[${this.data.orderList.length}]` |
|
|
|
var num = this.data.form.pageNum |
|
|
|
|