From 888bf0bdb733aa9a466a4faa7bb74a386c589b24 Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Thu, 30 Oct 2025 15:28:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=A2=E9=98=9F=E6=94=B6=E5=85=A5?= =?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/components/HostCenter/workReportBox.vue | 12 ++-- src/locales/ar.json | 5 +- src/locales/en.json | 5 +- src/locales/zh.json | 5 +- src/views/AgencyCenterView.vue | 8 +-- src/views/TeamBillView.vue | 62 +++++++++++++++------ 6 files changed, 69 insertions(+), 28 deletions(-) diff --git a/src/components/HostCenter/workReportBox.vue b/src/components/HostCenter/workReportBox.vue index 7f0a350..756fc61 100644 --- a/src/components/HostCenter/workReportBox.vue +++ b/src/components/HostCenter/workReportBox.vue @@ -96,6 +96,8 @@ watch( // 更新展示类型 const updateTypeShowText = () => { + console.log('更新展示类型') + if (props.type == 'In Progress') { typeShowText.value = t('in_progress') } else if (props.type == 'Pending') { @@ -111,23 +113,23 @@ watch( () => props.type, (newType) => { console.log('newType:', newType) - - if (newType == 'In Progress') { + updateTypeShowText() + if (newType == 'In Progress' || newType == t('in_progress')) { backgroundImage.value = 'linear-gradient(112deg, #759CFF 5.66%, #3D73FF 42.49%)' fontSize.value = '0.9em' typeShowText.value = t('in_progress') } - if (newType == 'Pending') { + if (newType == 'Pending' || newType == t('pending')) { backgroundImage.value = 'linear-gradient(112deg, #FF7578 5.66%, #FF3D40 42.49%)' fontSize.value = '1em' typeShowText.value = t('pending') } - if (newType == 'Completed') { + if (newType == 'Completed' || newType == t('completed')) { backgroundImage.value = 'linear-gradient(112deg, #75FF98 5.66%, #3DFF54 42.49%)' fontSize.value = '1em' typeShowText.value = t('completed') } - if (newType == 'Out of account') { + if (newType == 'Out of account' || newType == t('out_of_account')) { backgroundImage.value = 'linear-gradient(112deg, #BDBDBD 5.66%, #AEAEAE 42.49%)' fontSize.value = '0.7em' typeShowText.value = t('out_of_account') diff --git a/src/locales/ar.json b/src/locales/ar.json index 43be142..0cf99b9 100644 --- a/src/locales/ar.json +++ b/src/locales/ar.json @@ -20,6 +20,7 @@ "not_authorized": "غير مُصرح به للانضمام", "cancellation_failed": "فشلت الإلغاء", "network_error": "خطأ في الشبكة، يرجى التحقق من اتصالك والمحاولة مرة أخرى", + "host": "المضيف", "host_center": "مركز المضيف", "my_account": "حسابي", "my_salary": "راتبي", @@ -180,5 +181,7 @@ "information_details": "تفاصيل المعلومات", "no_transaction_records": "لا توجد سجلات معاملات", "retry": "إعادة المحاولة", - "failed_to_load_data": "فشل تحميل البيانات" + "failed_to_load_data": "فشل تحميل البيانات", + + "no_data_available": "لا توجد بيانات متاحة" } diff --git a/src/locales/en.json b/src/locales/en.json index aa69664..7538abd 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -20,6 +20,7 @@ "not_authorized": "Not authorized to join", "cancellation_failed": "Cancellation failed", "network_error": "Network error,please check yourconnection and try again", + "host": "Host", "host_center": "Host Center", "my_account": "My account", "my_salary": "My salary:", @@ -180,5 +181,7 @@ "information_details": "Information details", "no_transaction_records": "No transaction records", "retry": "Retry", - "failed_to_load_data": "Failed to load data" + "failed_to_load_data": "Failed to load data", + + "no_data_available": "No data available" } diff --git a/src/locales/zh.json b/src/locales/zh.json index 2067fae..8e14035 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -20,6 +20,7 @@ "not_authorized": "无权加入", "cancellation_failed": "取消失败", "network_error": "网络错误,请检查您的连接并重试。", + "host": "主播", "host_center": "主播中心", "my_account": "我的账户", "my_salary": "我的工资", @@ -180,5 +181,7 @@ "information_details": "信息详情", "no_transaction_records": "无交易记录", "retry": "重试", - "failed_to_load_data": "加载数据失败" + "failed_to_load_data": "加载数据失败", + + "no_data_available": "暂无数据" } diff --git a/src/views/AgencyCenterView.vue b/src/views/AgencyCenterView.vue index 5556cd9..6853eeb 100644 --- a/src/views/AgencyCenterView.vue +++ b/src/views/AgencyCenterView.vue @@ -413,10 +413,10 @@ const fetchMemberWorkData = async () => { // 格式化状态 const formatStatus = (status) => { const statusMap = { - SETTLED: t('completed'), - UNPAID: t('in_progress'), - HANG_UP: t('out_of_account'), - PAY_OUT: t('completed'), + SETTLED: 'Completed', + UNPAID: 'In Progress', + HANG_UP: 'Out of account', + PAY_OUT: 'Completed', } return statusMap[status] || status } diff --git a/src/views/TeamBillView.vue b/src/views/TeamBillView.vue index 524381c..d0248dd 100644 --- a/src/views/TeamBillView.vue +++ b/src/views/TeamBillView.vue @@ -1,6 +1,13 @@