Commit ab529f45 by 高淑倩

切换状态显示订单

parent 3f7aa772
...@@ -60,6 +60,12 @@ wxService.page({ ...@@ -60,6 +60,12 @@ wxService.page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
this.setData({
currentIndex: 1,
pageNo: 1,
pageSize: 5,
trade: '',
})
this.initOrderList(this.data.pageNo, this.data.pageSize, this.data.trade) this.initOrderList(this.data.pageNo, this.data.pageSize, this.data.trade)
}, },
// 确认收货 // 确认收货
...@@ -138,34 +144,6 @@ wxService.page({ ...@@ -138,34 +144,6 @@ wxService.page({
} }
}, data)) }, data))
// const payJson = JSON.parse(decodeURIComponent(res_.data.data.parameter))
// wx.requestPayment({
// 'timeStamp': payJson.timeStamp,
// 'nonceStr': payJson.nonceStr,
// 'package': payJson.package,
// 'signType': payJson.signType,
// 'paySign': payJson.paySign,
// 'success': _res => {
// wx.hideLoading()
// wx.showToast({
// title: '支付成功',
// icon: 'none',
// mask: true
// })
// wx.reportAnalytics('api_pay_success', {
// orderno: orderNo
// })
// this.initByStatus(this.data.status)
// },
// 'fail': _res => {
// wx.hideLoading()
// wx.showToast({
// title: '支付失败',
// icon: 'none',
// mask: true
// })
// }
// })
} }
} }
}) })
...@@ -216,6 +194,7 @@ wxService.page({ ...@@ -216,6 +194,7 @@ wxService.page({
}) })
}, },
initOrderList(pageNo, pageSize, trade) { initOrderList(pageNo, pageSize, trade) {
console.log('-------------', trade)
wx.showLoading({ wx.showLoading({
title: '加载中', title: '加载中',
mask: true mask: true
......
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