|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-04-29 14:26:10
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-05-05 11:26:35
|
|
|
|
|
* @LastEditTime: 2022-05-05 19:16:29
|
|
|
|
|
* @Description: file content
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
@ -35,7 +35,7 @@ export const Wxpay = async ({orderId,openId})=>{
|
|
|
|
|
}, res => {
|
|
|
|
|
if(res.err_msg !== 'get_brand_wcpay_request:cancel'){
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url : `/payResult?orderId=${orderId}`
|
|
|
|
|
url : `/payResult?orderId=${orderId}&payType=wxjsapi`
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -46,7 +46,7 @@ export const Wxpay = async ({orderId,openId})=>{
|
|
|
|
|
uni.$u.toast(error.message);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
const redirect_url = decodeURIComponent(`https://you-app.mashibing.com/payResult?orderId=${orderId}`);
|
|
|
|
|
const redirect_url = decodeURIComponent(`https://you-app.mashibing.com/payResult?orderId=${orderId}&payType=wxh5`);
|
|
|
|
|
window.location.href = `${result.dataInfo.payUrl}&redirect_url=${redirect_url}`;
|
|
|
|
|
}
|
|
|
|
|
}
|