diff --git a/src/assets/icon/edit.png b/src/assets/icon/edit.png index a9c9f6d..7973981 100644 Binary files a/src/assets/icon/edit.png and b/src/assets/icon/edit.png differ diff --git a/src/views/HostCenter/index.vue b/src/views/HostCenter/index.vue index 2469e21..6dbc82f 100644 --- a/src/views/HostCenter/index.vue +++ b/src/views/HostCenter/index.vue @@ -11,7 +11,7 @@ /> -
+
{{ t('my_account') }} @@ -19,40 +19,98 @@
-
+
-
+
+
- {{ getAvatarPlaceholder() }} + {{ + getAvatarPlaceholder() + }}
+ + + -
-
-
{{ t('my_salary') }}
-
-
+
{{ t('history_salary') }}
${{ historySalary.toFixed(2) }}
@@ -65,14 +123,36 @@
-
-
-
{{ t('todays_task') }}
-
-
+
{{ t('host_type') }}
{{ taskInfo.anchorType }}
@@ -90,7 +170,7 @@ -
- - +
@@ -244,10 +339,16 @@ const exchangeGoldCoins = () => { router.push('/exchange-gold-coins') } +// 前往转账 const transfer = () => { router.push('/transfer') } +// 前往提现 +const withdraw = () => { + router.push('/cash-withdraw') +} + const { appConnected, userInfo, salaryInfo, taskInfo, handleImageError, getAvatarPlaceholder } = usePageInitializationWithConfig('HOST_CENTER', { needsTeamInfo: true, @@ -274,12 +375,6 @@ onMounted(() => { background-image: url(../../assets/images/secondBg.png); } -.content { - padding: 16px; - position: relative; - z-index: 2; -} - .section-title { margin: 0 1%; margin-bottom: 12px; @@ -294,24 +389,6 @@ onMounted(() => { margin-left: 10px; } -.user-card { - background-color: white; - padding: 16px; - border-radius: 12px; - box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25); - margin: 0 1%; - margin-bottom: 12px; - display: flex; - flex-direction: column; - justify-content: space-between; -} - -.user-header { - display: flex; - align-items: center; - margin-bottom: 12px; -} - .avatar { width: 50px; height: 50px; @@ -328,80 +405,11 @@ onMounted(() => { position: relative; } -.avatar img { - width: 100%; - height: 100%; - object-fit: cover; - border-radius: 25px; -} - -.avatar .avatar-placeholder { - color: white; - font-size: 20px; - font-weight: 600; -} - .user-info { flex: 1; min-width: 0; } -.user-name { - margin: 0 0 4px 0; - font-weight: 600; - color: #333; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - width: 100%; -} - -.user-id { - margin: 0; - font-size: 0.9em; - color: #666; -} - -.edit-btn { - width: 32px; - height: 32px; - border: none; - background: none; - font-size: 16px; -} - -.edit-icon { - width: 70%; -} - -.salary-section { - margin-bottom: 10px; -} - -.salary-header { - display: flex; - justify-content: space-between; - margin-bottom: 5px; -} - -.salary-title { - font-weight: 600; -} - -.salary-link { - font-weight: 500; - color: rgba(0, 0, 0, 0.4); - border: 0; - background-color: transparent; - cursor: pointer; -} - -.salary-grid { - display: grid; - grid-template-columns: repeat(2, 1fr); - gap: 10px; -} - .salary-item { display: flex; flex-direction: column; @@ -417,42 +425,6 @@ onMounted(() => { font-weight: 600; } -.task-card { - display: flex; - flex-direction: column; - justify-content: space-between; - gap: 5px; - background-color: white; - padding: 3%; - border-radius: 12px; - margin: 0 1%; - margin-bottom: 12px; - box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25); -} - -.task-header { - display: flex; - justify-content: space-between; - margin-bottom: 10px; -} - -.task-title { - font-weight: 600; -} - -.policy-link { - font-weight: 500; - color: rgba(0, 0, 0, 0.4); - border: 0; - background-color: transparent; - cursor: pointer; -} - -.task-content { - display: flex; - justify-content: space-between; -} - .task-item { display: flex; flex-direction: column; @@ -469,23 +441,14 @@ onMounted(() => { font-weight: 600; } -.work-report { - margin-bottom: 10px; -} - -/* 操作按钮 */ -.action-buttons { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 12px; - margin: 0 1%; -} - .action-btn { - padding: 14px 12px; + border-radius: 4px; + box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25); + color: white; + + height: 36px; border: none; - border-radius: 12px; - font-size: 14px; + font-size: 1em; font-weight: 600; text-align: center; line-height: 1.2; @@ -498,22 +461,6 @@ onMounted(() => { transform: scale(0.98); } -.exchange-btn { - background: linear-gradient(135deg, #f1eca6 2.82%, #ffd22f 99.15%), #fff; - box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25); - color: white; -} - -.transfer-btn { - background: linear-gradient(135deg, #a6aaf1 2.82%, #592fff 99.15%), #fff; - box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25); - color: white; -} - -.withdraw-btn { - color: white; -} - @media screen and (max-width: 360px) { * { font-size: 10px; @@ -550,8 +497,4 @@ onMounted(() => { [dir='rtl'] .user-info { text-align: right; } - -[dir='rtl'] .action-buttons { - grid-template-columns: 1fr 1fr; -}