xiaozhiyong 9 months ago
parent b2f723abaa
commit 0907abab72
  1. 23
      BagStation/pages/makeOrder/orderPaying.vue
  2. 8
      api/pay.js

@ -324,33 +324,26 @@
uni.requestPayment({
provider: 'wxpay',
...res.data.baseWxOrderVo,
success: (res1) => {
console.log(res)
if (res.code == 20000) {
success: (_res) => {
uni.showToast({
title: res.msg
})
oilPayApi.wxPayIntegral({
appId: 'wx2f203fde39b883bc',
orderId: this.order.orderSerialNumber
})
uni.redirectTo({
url: '/BagStation/pages/makeOrder/payResult?status=success&&payMethod=' +
this.payMethod,
fail: (err) => {
// console.log(err)
}
this.payMethod
})
},
})
} else {
uni.showToast({
title: res.msg,
icon: 'none'
})
}
},
fail: function(err) {
}
})
} else {
}
})
},

@ -10,4 +10,12 @@ export default {
data: data
})
},
// 积分处理
wxPayIntegral(data) {
return request({
url: '/oil-pay/yiBaoPay/wxPayIntegral',
method: 'post',
data: data
})
},
}

Loading…
Cancel
Save