From 4ff1ddf799fbfa863de12807f97e1ad29b53a423 Mon Sep 17 00:00:00 2001 From: Professional Date: Sat, 24 May 2025 01:07:30 +0700 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=B3=D0=BE=D0=B2?= =?UTF-8?q?=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ProfileView.vue | 3210 +++++++++++++++---------------------- 1 file changed, 1284 insertions(+), 1926 deletions(-) diff --git a/src/views/ProfileView.vue b/src/views/ProfileView.vue index f8514c9..08de586 100644 --- a/src/views/ProfileView.vue +++ b/src/views/ProfileView.vue @@ -24,11 +24,9 @@
- - -
-
- + +
+
- @@ -97,263 +100,271 @@
- -
- -
-
-

Основная информация

-
- + +
+
+ + +
+
+ + +
+ +
+
+
+

Основная информация

-
-
- -
- - {{ profileActionError }} -
-
- - {{ profileActionSuccess }} -
- - -
-
- - {{ profileData.name || 'Не указано' }} - +
+ +
+ + {{ profileActionError }}
-
- - {{ profileData.dateOfBirth ? formatDate(profileData.dateOfBirth) : 'Не указана' }} - +
+ + {{ profileActionSuccess }}
-
- - {{ getGenderText(profileData.gender) }} -
+ + +
+
+ + {{ profileData.name || 'Не указано' }} - - -
- - {{ profileData.location?.city || 'Не указан' }} -
- - - -
- - {{ profileData.bio || 'Расскажите о себе...' }} - +
+ + {{ profileData.bio || 'Расскажите о себе...' }} + +
- -
-
-

Мои фотографии

-
- -
-
-
- -
-
- -
- - Главное -
-
- - -
+ +
+
+
+

Мои фотографии

+
+
- - -
-
-
-
- -
+
+ +
+
+ +
+ + Главное
-
-
- -
-

- {{ photoActionLoading ? 'Загружаем...' : 'Добавьте первое фото' }} -

-

- {{ photoActionLoading ? 'Подождите, фотография обрабатывается' : 'Нажмите или перетащите файлы сюда для загрузки' }} -

- -
-
- - Безопасно -
-
- - Быстро -
-
- - HD качество -
-
- -
+
+ +
+
+
+ + +
+
+
+
+ +
+
+
+
+ +
+

+ {{ photoActionLoading ? 'Загружаем...' : 'Добавьте первое фото' }} +

+

+ {{ photoActionLoading ? 'Подождите, фотография обрабатывается' : 'Нажмите или перетащите файлы сюда для загрузки' }} +

-
- Поддерживаются: JPG, PNG, WebP до 10 МБ +
+
+ + Безопасно +
+
+ + Быстро +
+
+ + HD качество +
+
+ +
+ + +
+ Поддерживаются: JPG, PNG, WebP до 10 МБ +
-
- -
- - {{ photoActionError }} -
-
- - {{ photoActionSuccess }} -
-
-
- Загрузка фотографий... + +
+ + {{ photoActionError }} +
+
+ + {{ photoActionSuccess }} +
+
+
+ Загрузка фотографий... +
@@ -423,6 +434,7 @@ const loading = ref(true); const initialLoading = ref(true); const error = ref(''); const isEditMode = ref(false); +const activeTab = ref('info'); // Добавляем переключатель вкладок let originalProfileData = ''; // Для хранения исходных данных профиля в формате JSON // Для управления фото @@ -590,10 +602,16 @@ const toggleEditMode = async () => { }; const scrollToPhotos = () => { - const photosSection = document.getElementById('photos-section'); - if (photosSection) { - photosSection.scrollIntoView({ behavior: 'smooth', block: 'start' }); - } + // Переключаемся на вкладку с фото + activeTab.value = 'photos'; + + // Дополнительно можно прокрутить к секции фото после смены вкладки + nextTick(() => { + const photosSection = document.getElementById('photos-section'); + if (photosSection) { + photosSection.scrollIntoView({ behavior: 'smooth', block: 'start' }); + } + }); }; @@ -1154,6 +1172,7 @@ onUnmounted(() => {