From 37b9a4d02ac7028ab4dd72dae0e5d10fc6632252 Mon Sep 17 00:00:00 2001 From: fuchao <2577131060@qq.com> Date: Wed, 26 Nov 2025 15:30:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=9A=E5=85=85=E5=80=BC?= =?UTF-8?q?=E6=B6=88=E8=B4=B9=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/modules/user.ts | 12 +++++ locale/en.json | 10 +++- locale/zh-Hans.json | 10 +++- pages/user/recharge/index.vue | 53 ++++++++++++-------- pages/user/virtual/index.vue | 94 +++++++++++++++++++---------------- 5 files changed, 111 insertions(+), 68 deletions(-) diff --git a/api/modules/user.ts b/api/modules/user.ts index 8aef89d..a411c7c 100644 --- a/api/modules/user.ts +++ b/api/modules/user.ts @@ -253,4 +253,16 @@ export async function getActivityDescription() { method: 'POST' }) return res +} + +/** + * 获取充值列表 + */ +export async function getTransactionDetailsList(current: number, limit: number, userId: string,) { + const res = await mainClient.request({ + url: 'common/transactionDetails/getTransactionDetailsList', + method: 'POST', + data: { current, limit, userId, } + }) + return res } \ No newline at end of file diff --git a/locale/en.json b/locale/en.json index 46aff49..709af91 100644 --- a/locale/en.json +++ b/locale/en.json @@ -207,7 +207,8 @@ "seasonCard": "Quarterly", "yearCard": "Yearly", "days": "days", - "selectPackage": "Please select a package" + "selectPackage": "Please select a package", + "consumptionRecord": "Consumption record" }, "book": { "title": "My Books", @@ -471,6 +472,11 @@ "couponType0": "All Products", "couponType1": "Specific Courses", "couponType2": "Course Categories", - "couponCount": "{count} coupons" + "couponCount": "{count} coupons", + "rechargeConsumptionList": "Recharge and consumption records", + "rechargeAmount": "Recharge amount", + "valueAddedServices": "Value-added services", + "readAgree": "I have read and agreed", + "readAgreeServices": "Please read and agree to the value-added services first" } } diff --git a/locale/zh-Hans.json b/locale/zh-Hans.json index 636e3ff..8354bd4 100644 --- a/locale/zh-Hans.json +++ b/locale/zh-Hans.json @@ -208,7 +208,8 @@ "seasonCard": "季卡", "yearCard": "年卡", "days": "天", - "selectPackage": "请选择套餐" + "selectPackage": "请选择套餐", + "consumptionRecord": "消费记录" }, "book": { "title": "我的书单", @@ -472,6 +473,11 @@ "couponType0": "全场通用", "couponType1": "指定课程可用", "couponType2": "指定课程品类可用", - "couponCount": "共 {count} 张" + "couponCount": "共 {count} 张", + "rechargeConsumptionList": "充值消费记录", + "rechargeAmount": "充值金额", + "valueAddedServices": "增值服务", + "readAgree": "我已阅读并同意", + "readAgreeServices": "请先阅读并同意增值服务" } } diff --git a/pages/user/recharge/index.vue b/pages/user/recharge/index.vue index da3541a..2146ae6 100644 --- a/pages/user/recharge/index.vue +++ b/pages/user/recharge/index.vue @@ -1,15 +1,15 @@