From b9ce59c8bc4365fa75e993d594f0f25029400dba Mon Sep 17 00:00:00 2001 From: Fox-33 <1466778434@qq.com> Date: Tue, 28 Oct 2025 11:25:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages_order/report/pay.vue | 8 +++++--- pages_order/test/testCard.vue | 13 +++++++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/pages_order/report/pay.vue b/pages_order/report/pay.vue index 2056f6a..2d41277 100644 --- a/pages_order/report/pay.vue +++ b/pages_order/report/pay.vue @@ -153,13 +153,15 @@ const result = await this.$fetch('createOrder', params) - await uni.requestPaymentWxPay({ result }) - + if (params.payAmount > 0) { + await uni.requestPaymentWxPay({ result }) + } + uni.showToast({ title: '支付成功', icon: 'none' }) - + setTimeout(() => { uni.redirectTo({ url: `/pages_order/report/userInfo?batchNo=${this.batchNo}` diff --git a/pages_order/test/testCard.vue b/pages_order/test/testCard.vue index 01e6c9b..a0d7fef 100644 --- a/pages_order/test/testCard.vue +++ b/pages_order/test/testCard.vue @@ -54,10 +54,15 @@ }) }, onCreateReport() { - // todo: check - uni.navigateTo({ - url: `/pages_order/report/pay?batchNo=${this.data.batchNo}` - }) + if (this.data.isPay) { + uni.navigateTo({ + url: `/pages_order/report/userInfo?batchNo=${this.batchNo}` + }) + } else { + uni.navigateTo({ + url: `/pages_order/report/pay?batchNo=${this.data.batchNo}` + }) + } }, }, }