diff --git a/pages/payParkingFee/payParkingFee.vue b/pages/payParkingFee/payParkingFee.vue index 11b6df5..95a2610 100755 --- a/pages/payParkingFee/payParkingFee.vue +++ b/pages/payParkingFee/payParkingFee.vue @@ -326,6 +326,18 @@ wx.hideLoading(); return; } + if (res.statusCode == 200 && res.data.code == '100') { + let data = res.data; //成功情况下跳转 + uni.showToast({ + title: "支付成功", + duration: 2000 + }); + setTimeout(function(){ + uni.navigateBack({}); + },2000) + + return; + } wx.hideLoading(); wx.showToast({ @@ -406,6 +418,18 @@ wx.hideLoading(); return; } + if (res.statusCode == 200 && res.data.code == '100') { + let data = res.data; //成功情况下跳转 + uni.showToast({ + title: "支付成功", + duration: 2000 + }); + setTimeout(function(){ + uni.navigateBack({}); + },2000) + + return; + } uni.hideLoading(); uni.showToast({ title: "缴费失败", diff --git a/pages/roomFee/roomFee.vue b/pages/roomFee/roomFee.vue index 9648c71..735ac6c 100755 --- a/pages/roomFee/roomFee.vue +++ b/pages/roomFee/roomFee.vue @@ -463,6 +463,18 @@ wx.hideLoading(); return; } + if (res.statusCode == 200 && res.data.code == '100') { + let data = res.data; //成功情况下跳转 + uni.showToast({ + title: "支付成功", + duration: 2000 + }); + setTimeout(function(){ + uni.navigateBack({}); + },2000) + + return; + } wx.hideLoading(); wx.showToast({