From 1907da5b438a2132a83654adf317f10766f93b43 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Mon, 19 Jan 2026 15:57:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98?= =?UTF-8?q?=EF=BC=8Ccode=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/my/deviceRecharge.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/my/deviceRecharge.vue b/src/my/deviceRecharge.vue index a4b6c68..336fe2e 100644 --- a/src/my/deviceRecharge.vue +++ b/src/my/deviceRecharge.vue @@ -389,7 +389,7 @@ Taro.useDidShow(() => { // 支付选项 function getPayItem() { payOption().then((res: any) => { - if (res.statusCode == 200) { + if (res.code == 200) { payItem.value = res.data; reType.value = res.data[0]["id"]; } @@ -442,7 +442,7 @@ function changeEx(state) { /** 下一步 */ function next() { payOption().then((res: any) => { - if (res.statusCode == 200) { + if (res.code == 200) { res.data.forEach((item) => { // 分转元 item.amount = item.amount / 100; @@ -471,13 +471,14 @@ function wxpay() { success: function (r) { if (r.code) { const data = { - js_code: r.code, + jsCode: r.code, payId: reType.value, listDeviceId: rechargeList.value, }; + console.log(data) // 创建订单 createOrder(data).then((res: any) => { - if (res.statusCode == 200) { + if (res.code == 200) { const orderInfo = res.data; // 时间戳 const timestamp = String(Math.floor(Date.now() / 1000));