From 4fd72eef2e453db09134b13dd3e3ee35dc6d5698 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Tue, 18 Oct 2022 09:44:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=81=9C=E8=BD=A6=E5=8A=B5?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tempCarFee/tempCarFee.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pages/tempCarFee/tempCarFee.vue b/pages/tempCarFee/tempCarFee.vue index b291d56..de7cbcf 100644 --- a/pages/tempCarFee/tempCarFee.vue +++ b/pages/tempCarFee/tempCarFee.vue @@ -237,6 +237,7 @@ }; toPayTempCarFee(_objData) .then(_data=>{ + wx.hideLoading(); if (_data.code == '0') { // #ifdef H5 WexinPayFactory.wexinPay(_data, function() { @@ -249,10 +250,18 @@ }); }); // #endif - wx.hideLoading(); return; } - wx.hideLoading(); + if(_data.code == '100'){ + uni.showToast({ + title: "支付成功", + duration: 2000 + }); + uni.navigateBack({ + delta:1 + }); + return ; + } wx.showToast({ title: "缴费失败", icon: 'none',