From 3e5fd32bea21a0e83ef5e264126be429f201532e Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Thu, 30 Oct 2025 11:21:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=85=91=E6=8D=A2=E9=87=91=E5=B8=81?= =?UTF-8?q?=E9=A1=B5):=20=E4=BD=BF=E7=94=A8=E6=96=B0=E7=9A=84=E5=A4=B4?= =?UTF-8?q?=E9=83=A8=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=AF=B9=E6=8E=A5=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E5=88=87=E6=8D=A2=E5=8A=9F=E8=83=BD=E5=B9=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/ar.json | 11 ++++ src/locales/en.json | 11 ++++ src/locales/zh.json | 11 ++++ src/views/ExchangeGoldCoinsView.vue | 85 +++++++++++++++++++++-------- 4 files changed, 94 insertions(+), 24 deletions(-) diff --git a/src/locales/ar.json b/src/locales/ar.json index 9896042..5f36998 100644 --- a/src/locales/ar.json +++ b/src/locales/ar.json @@ -137,6 +137,17 @@ "tips": "نصائح", "leave_agent_tips": "يمكن للمضيف مغادرة الوكيل الحالي فقط في اليوم الأول والـ16 من كل شهر", + "loading": "جار التحميل", + "details": "تفاصيل", + "failed_to_load_balance": "فشل تحميل الرصيد. يرجى المحاولة مرة أخرى.", + "failed_to_load_user_info": "فشل تحميل معلومات المستخدم", + "please_select_coin_amount": "يرجى اختيار كمية العملات أولاً", + "insufficient_balance": "رصيد غير كافٍ. رصيدك الحالي هو ${balance} دولارًا، لكنك تحتاج إلى ${price} دولارًا للتبادل.", + "confirm_exchange_coins": "هل تريد تبادل العملات مقابل ${price} دولارًا؟", + "exchange_success": "تم تبادل العملات مقابل ${price} دولارًا بنجاح", + "exchange_failed": "فشل التبادل، يرجى المحاولة لاحقًا.", + "exchange_error_occurred": "حدث خطأ أثناء عملية التبادل. يرجى المحاولة لاحقًا.", + "application_record_not_found": "Application record not found", "application_processed_cannot_cancel": "Application has been processed and cannot be canceled", "cancellation_failed_try_again": "Cancellation failed, please try again", diff --git a/src/locales/en.json b/src/locales/en.json index 62d49b9..9ba5b2c 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -137,6 +137,17 @@ "tips": "Tips", "leave_agent_tips": "The host can only leave the current agent on the 1st and 16th of each month", + "loading": "Loading", + "details": "Details", + "failed_to_load_balance": "Failed to load balance. Please try again.", + "failed_to_load_user_info": "Failed to load user information", + "please_select_coin_amount": "Please select a coin amount first", + "insufficient_balance": "Insufficient balance. Your current balance is ${balance}, but you need $${price} to exchange.", + "confirm_exchange_coins": "Do you want to exchange coins for $${price}?", + "exchange_success": "Successfully exchanged coins for $${price}", + "exchange_failed": "Exchange failed, please try again later.", + "exchange_error_occurred": "An error occurred during the exchange process. Please try again later.", + "application_record_not_found": "Application record not found", "application_processed_cannot_cancel": "Application has been processed and cannot be canceled", "cancellation_failed_try_again": "Cancellation failed, please try again", diff --git a/src/locales/zh.json b/src/locales/zh.json index c1f89a6..3019060 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -137,6 +137,17 @@ "tips": "提示", "leave_agent_tips": "主播只能在每月1日和16日离开当前代理", + "loading": "加载中", + "details": "详情", + "failed_to_load_balance": "加载余额失败,请重试。", + "failed_to_load_user_info": "加载用户信息失败", + "please_select_coin_amount": "请先选择金币数量", + "insufficient_balance": "余额不足。您当前余额为${balance}美元,但兑换需要${price}美元。", + "confirm_exchange_coins": "您确定要兑换${price}美元的金币吗?", + "exchange_success": "成功兑换${price}美元的金币", + "exchange_failed": "兑换失败,请稍后重试。", + "exchange_error_occurred": "兑换过程中发生错误,请稍后重试。", + "application_record_not_found": "申请记录未找到", "application_processed_cannot_cancel": "申请已被处理,无法取消", "cancellation_failed_try_again": "取消失败,请重试", diff --git a/src/views/ExchangeGoldCoinsView.vue b/src/views/ExchangeGoldCoinsView.vue index ae14baf..faf7909 100644 --- a/src/views/ExchangeGoldCoinsView.vue +++ b/src/views/ExchangeGoldCoinsView.vue @@ -1,6 +1,13 @@ @@ -334,10 +350,19 @@ onMounted(() => { border: none; padding: 12px; color: white; + font-weight: 600; + cursor: pointer; } .exchange-btn:disabled { background: #ccc; + cursor: not-allowed; +} + +.flipImg { + display: block; + width: 16px; + margin-left: 4px; } @media screen and (max-width: 360px) { @@ -357,4 +382,16 @@ onMounted(() => { font-size: 24px; } } + +/* RTL支持 */ +[dir='rtl'] .details-btn { + flex-direction: row-reverse; +} + +[dir='rtl'] .flipImg { + margin-left: auto; + margin-right: 4px; + -webkit-transform: scaleX(-1); + transform: scaleX(-1); +}