|
|
@ -120,17 +120,17 @@ |
|
|
|
provider: 'alipay', |
|
|
|
orderInfo: res, |
|
|
|
success: function(data) { |
|
|
|
console.log("aliAppPay_data》》》", data); |
|
|
|
let rawdataResult = JSON.parse(data.rawdata).result; |
|
|
|
let r = rawdataResult.split(';')[0]; |
|
|
|
let r1 = rawdataResult.split(';')[0].length - 1; |
|
|
|
let r2 = rawdataResult.split(';')[0].length - 2; |
|
|
|
let alipayTradeAppPayResponse = JSON.parse(r.substr(0, r1)) |
|
|
|
.alipay_trade_app_pay_response; |
|
|
|
let out_trade_no = alipayTradeAppPayResponse.out_trade_no; |
|
|
|
console.log("aliAppPay_data》》》", data); |
|
|
|
let rawdataResult1 = data.rawdata; |
|
|
|
console.log("rawdataResult1》》》", rawdataResult1); |
|
|
|
let rawdataResult2 = JSON.parse(rawdataResult1); |
|
|
|
console.log("rawdataResult2》》》", rawdataResult2); |
|
|
|
let rawdataResult3 = JSON.parse(rawdataResult2.result); |
|
|
|
console.log("rawdataResult3》》》", rawdataResult3); |
|
|
|
|
|
|
|
_this.$common.successToShow('支付成功', () => { |
|
|
|
//_this.redirectHandler(res.data.payment_id) |
|
|
|
_this.redirectHandler(out_trade_no); |
|
|
|
_this.redirectHandler(rawdataResult3.out_trade_no); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|