fix:修改h5微信支付返回页面

msb_prod
ch 3 years ago
parent 63169bec9a
commit 164da3f44a

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-07-08 11:46:30 * @Date: 2022-07-08 11:46:30
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-07-13 18:12:34 * @LastEditTime: 2022-07-13 19:09:10
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -103,13 +103,7 @@ const ENV = process.env;
paySign : par.paySign paySign : par.paySign
}, async (res) => { }, async (res) => {
if(res.err_msg === 'get_brand_wcpay_request:ok'){ if(res.err_msg === 'get_brand_wcpay_request:ok'){
if(this.orderInfo.returnUrl){
window.location.replace(this.orderInfo.returnUrl); window.location.replace(this.orderInfo.returnUrl);
}else{
uni.redirectTo({
url : `/pages/wapResult?payOrderNo=${this.payOrderNo}`
});
}
}else if(res.err_msg === 'get_brand_wcpay_request:fail'){ }else if(res.err_msg === 'get_brand_wcpay_request:fail'){
uni._$toast(res.err_msg); uni._$toast(res.err_msg);
} }
@ -123,7 +117,7 @@ const ENV = process.env;
const {error, result} = await this.getPayData('WX_H5'); const {error, result} = await this.getPayData('WX_H5');
if(result){ if(result){
// h5windowAPI // h5windowAPI
window.location.replace(result.payDataInfo.h5Url); window.location.replace(`${result.payDataInfo.h5Url}&redirect_url=${decodeURIComponent(this.orderInfo.returnUrl)}`);
} }
}, },
async aliPay(){ async aliPay(){

Loading…
Cancel
Save