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); +}