From 1c774ce80cd937462c3ecf9e32d84d2d2ab28f58 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Sat, 25 Oct 2025 05:50:36 +0500 Subject: [PATCH] modified: main_dc/BB/bbvue/src/components/EventCard.vue modified: main_dc/BB/bbvue/src/router/index.js modified: main_dc/BB/bbvue/src/stores/event.js modified: main_dc/BB/bbvue/src/views/Events.vue modified: main_dc/BB/bbvue/src/views/Profile.vue add events page and event store and eventcard modal --- main_dc/BB/bbvue/src/components/EventCard.vue | 11 +- main_dc/BB/bbvue/src/router/index.js | 1 - main_dc/BB/bbvue/src/stores/event.js | 66 +-- main_dc/BB/bbvue/src/views/Events.vue | 482 +++++++++++++++--- main_dc/BB/bbvue/src/views/Profile.vue | 7 +- 5 files changed, 465 insertions(+), 102 deletions(-) diff --git a/main_dc/BB/bbvue/src/components/EventCard.vue b/main_dc/BB/bbvue/src/components/EventCard.vue index f4057c5..1c27073 100644 --- a/main_dc/BB/bbvue/src/components/EventCard.vue +++ b/main_dc/BB/bbvue/src/components/EventCard.vue @@ -51,7 +51,7 @@ @@ -132,6 +132,13 @@ export default { } }) + const getRegistrationId = () => { + const registration = props.userRegistrations.find(reg => + reg.event_id === props.event.id + ) + return registration?.id + } + const formatDate = (dateString) => { return new Date(dateString).toLocaleDateString('ru-RU', { day: 'numeric', @@ -154,6 +161,7 @@ export default { isFull, eventTypeLabel, imageStyle, + getRegistrationId, formatDate, truncateDescription } @@ -162,6 +170,7 @@ export default {