From c11d7f4d1b4283433f7b2a032a055b30f614324d Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Thu, 30 Oct 2025 10:35:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=8E=86=E5=8F=B2=E8=96=AA=E8=B5=84?= =?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/GeneralHeader.vue | 41 ++++++----- src/components/HostCenter/workReportBox.vue | 15 ++-- src/locales/ar.json | 2 +- src/locales/en.json | 2 +- src/locales/zh.json | 2 +- src/views/HistorySalaryView.vue | 78 +++++++++++++-------- 6 files changed, 83 insertions(+), 57 deletions(-) diff --git a/src/components/GeneralHeader.vue b/src/components/GeneralHeader.vue index c8ff3fe..cb848e1 100644 --- a/src/components/GeneralHeader.vue +++ b/src/components/GeneralHeader.vue @@ -14,7 +14,7 @@ " > -
+
--> -
+
{ transform: scale(0.9); } +.extraList { + position: absolute; + right: 0; + top: 100%; + padding: 10px; + display: flex; + flex-direction: column; + width: max-content; + background-color: rgba(255, 255, 255); + border-radius: 10px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); + margin-top: 5px; + backdrop-filter: blur(8px); +} + .extraList > div:not(:last-child) { border-bottom: 0.1px solid black; } @@ -249,6 +247,11 @@ onMounted(() => { transform: scaleX(-1); } +[dir='rtl'] .extraList { + right: auto; + left: 0; +} + @media screen and (max-width: 360px) { * { font-size: 10px; diff --git a/src/components/HostCenter/workReportBox.vue b/src/components/HostCenter/workReportBox.vue index 490bb23..3254413 100644 --- a/src/components/HostCenter/workReportBox.vue +++ b/src/components/HostCenter/workReportBox.vue @@ -22,13 +22,8 @@
{{ t('total_income') }}: {{ income }}
-
- {{ t('more') }} > +
+ {{ t('more') }}
@@ -133,6 +128,12 @@ watch( .moreBt { font-size: 1em; + + position: absolute; + bottom: 8%; + right: 4%; + color: #bb92ff; + font-weight: 500; } .flipImg { diff --git a/src/locales/ar.json b/src/locales/ar.json index b5a8b8c..025f8b0 100644 --- a/src/locales/ar.json +++ b/src/locales/ar.json @@ -34,7 +34,7 @@ "target": "الهدف", "salary": "راتب", "time_days": "الوقت (الأيام)", - "more": "أكثر", + "more": "أكثر >", "exchange": "التبديل", "transfer": "تحويل الأموال", "host_salary": "راتب المضيف", diff --git a/src/locales/en.json b/src/locales/en.json index 6343102..143d130 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -34,7 +34,7 @@ "target": "Target", "salary": "Salary", "time_days": "Time(Days)", - "more": "More", + "more": "More >", "exchange": "Exchange", "transfer": "Transfer", "host_salary": "Host Salary", diff --git a/src/locales/zh.json b/src/locales/zh.json index 02ffb70..4403d11 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -34,7 +34,7 @@ "target": "目标", "salary": "工资", "time_days": "时间(天数)", - "more": "更多", + "more": "更多 >", "exchange": "兑换", "transfer": "转账", "host_salary": "主播工资", diff --git a/src/views/HistorySalaryView.vue b/src/views/HistorySalaryView.vue index 8ebede0..4d43558 100644 --- a/src/views/HistorySalaryView.vue +++ b/src/views/HistorySalaryView.vue @@ -1,6 +1,14 @@