fix: 🐛 新增h5中微信支付完回调查询订单详情

master
学习很差啦 2023-03-21 18:47:23 +08:00
parent 467b7a0cba
commit e37a8ec41d
1 changed files with 16 additions and 0 deletions

View File

@ -337,6 +337,22 @@
uni.hideLoading();
} else {
window.location.href = JSON.parse(response.result).h5_url;
const searchParams = {
...params,
price:this.cashierParams,
}
const timer = setInterval(()=>{
payCallback(searchParams).then(res=>{
if(res.data.result){
clearTimeout(timer);
uni.navigateTo({
url:"/pages/order/myOrder"
})
}
})
},3000)
uni.hideLoading();
}
} else if (paymentMethod === "WALLET") {
uni.showToast({