Commit fed1c226 by 高淑倩

add: 下单页支付参数

parent b4ad1e14
......@@ -41,7 +41,6 @@ wxService.page({
const { result, data } = res.data
if (result == 0) {
wx.hideLoading()
console.log('data', data)
this.setData({ currentOrderList: data })
}
}
......@@ -60,8 +59,23 @@ wxService.page({
if (res) {
const { result, data } = res.data
if (result == 0) {
wx.hideLoading()
delete data.appId
console.log('data', data)
wx.requestPayment(Object.assign({
success(res) {
wx.hideLoading()
// 支付成功页面
wxService.router('/subPackage/page/pages/paymentStatus/paymentStatus')
},
fail(res) {
wx.hideLoading()
wx.showToast({
title: '支付失败',
icon: 'none',
mask: true
})
}
}, data))
}
}
})
......
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