|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-07-08 11:46:30
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-07-13 18:12:34
|
|
|
|
|
* @LastEditTime: 2022-07-13 19:09:10
|
|
|
|
|
* @Description: file content
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
@ -103,13 +103,7 @@ const ENV = process.env;
|
|
|
|
|
paySign : par.paySign
|
|
|
|
|
}, async (res) => {
|
|
|
|
|
if(res.err_msg === 'get_brand_wcpay_request:ok'){
|
|
|
|
|
if(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'){
|
|
|
|
|
uni._$toast(res.err_msg);
|
|
|
|
|
}
|
|
|
|
@ -123,7 +117,7 @@ const ENV = process.env;
|
|
|
|
|
const {error, result} = await this.getPayData('WX_H5');
|
|
|
|
|
if(result){
|
|
|
|
|
// 到这必然是h5页面所以可以用window这个API
|
|
|
|
|
window.location.replace(result.payDataInfo.h5Url);
|
|
|
|
|
window.location.replace(`${result.payDataInfo.h5Url}&redirect_url=${decodeURIComponent(this.orderInfo.returnUrl)}`);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
async aliPay(){
|
|
|
|
|