From 9df2d4320b78134b47660ce50da52bd26a75b605 Mon Sep 17 00:00:00 2001
From: kele <1184860403@qq.com>
Date: Tue, 10 Jan 2023 18:09:40 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=99=E9=A2=9D=E5=85=85=E5=80=BC?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0=E5=B0=8F=E6=95=B0=E7=82=B9?=
=?UTF-8?q?=E6=94=AF=E6=8C=81=EF=BC=8C=E6=95=B0=E6=8D=AE=E6=A0=BC=E5=BC=8F?=
=?UTF-8?q?=E9=87=8D=E6=9E=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/pay/recharge.vue | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/pages/pay/recharge.vue b/pages/pay/recharge.vue
index f134afdf..c0aebe3d 100644
--- a/pages/pay/recharge.vue
+++ b/pages/pay/recharge.vue
@@ -24,7 +24,7 @@
¥
@@ -75,10 +75,12 @@
state.recharge_money = e;
}
async function getRechargeTabs() {
- const list = await sheep.$api.trade.rechargeRules();
- state.data = list;
- state.data.status = list.status;
- state.faceValueList = list.quick_amounts;
+ const res = await sheep.$api.trade.rechargeRules();
+ if (res.error === 0) {
+ state.data = res.data;
+ state.data.status = res.data.status;
+ state.faceValueList = res.data.quick_amounts;
+ }
}
function onChange(e) {