Commit 3dc4f9c7 by 高淑倩

amount

parent 9eba5082
......@@ -138,17 +138,12 @@ Component({
const { result, data } = res && res.data || res && res.result
if (result == 0) {
console.log('data', data)
let amount = data.amount || 0
wx.requestPayment(Object.assign({
success(res) {
wx.hideLoading()
// wx.showToast({
// title: '支付成功',
// icon: 'none',
// mask: true
// })
// 支付成功页面
console.log(res)
wxService.router('/subPackage/page/pages/paymentStatus/paymentStatus?status=S')
wxService.router(`/subPackage/page/pages/paymentStatus/paymentStatus?status=S&amount=${amount}`)
},
fail(res) {
wx.hideLoading()
......
......@@ -267,7 +267,8 @@ wxService.page({
const { result, data } = res && res.data || res && res.result
if (result == 0) {
delete data.appId
console.log('data', data)
console.log('dddd', data.amount)
let amount = data.amount || 0
wx.requestPayment(Object.assign({
success(res) {
wx.hideLoading()
......@@ -277,7 +278,7 @@ wxService.page({
// mask: true
// })
// 支付成功页面
wxService.router('/subPackage/page/pages/paymentStatus/paymentStatus?status=S')
wxService.router(`/subPackage/page/pages/paymentStatus/paymentStatus?status=S&amount=${amount}`)
},
fail(res) {
wx.hideLoading()
......
......@@ -144,17 +144,14 @@ if(currentIndex == 5){
if (res) {
const { result, data } = res.data
if (result == 0) {
console.log('dddd', data.amount)
let amount = data.amount || 0
wx.hideLoading()
wx.requestPayment(Object.assign({
success(res) {
wx.hideLoading()
// wx.showToast({
// title: '支付成功',
// icon: 'none',
// mask: true
// })
// 支付成功页面
wxService.router('/subPackage/page/pages/paymentStatus/paymentStatus?status=S')
wxService.router(`/subPackage/page/pages/paymentStatus/paymentStatus?status=S&amount=${amount}`)
},
fail(res) {
wx.hideLoading()
......
......@@ -95,17 +95,14 @@ wxService.page({
if (res) {
const { result, data } = res.data
if (result == 0) {
console.log('dddd', data.amount)
let amount = data.amount || 0
wx.hideLoading()
wx.requestPayment(Object.assign({
success(res) {
wx.hideLoading()
// wx.showToast({
// title: '支付成功',
// icon: 'none',
// mask: true
// })
// 支付成功页面
wxService.router('/subPackage/page/pages/paymentStatus/paymentStatus?status=S')
wxService.router(`/subPackage/page/pages/paymentStatus/paymentStatus?status=S&amount=${amount}`)
},
fail(res) {
wx.hideLoading()
......
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