From e37a8ec41d48802a5730bb36db0c8af34cd11056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E5=BE=88=E5=B7=AE=E5=95=A6?= <17633066053@163.com> Date: Tue, 21 Mar 2023 18:47:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E6=96=B0=E5=A2=9Eh5=E4=B8=AD?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98=E5=AE=8C=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/cart/payment/payOrder.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pages/cart/payment/payOrder.vue b/pages/cart/payment/payOrder.vue index 2cbe0af..8d1bdce 100644 --- a/pages/cart/payment/payOrder.vue +++ b/pages/cart/payment/payOrder.vue @@ -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({