| | |
| | | <template> |
| | | <div class="mapPopUpBox"> |
| | | <div class="title"> |
| | | {{ info.event_name }} |
| | | <span>{{ info.event_name }}</span> |
| | | |
| | | <el-icon class="header-close" @click="props.removeLabel"> |
| | | <Close /> |
| | | </el-icon> |
| | | </div> |
| | | <div class="content"> |
| | | <div class="medium"> |
| | | <img v-if="info.media_type === 'PHOTO_TYPE'" class="eventImage" :src="info.url" alt="Event Image" /> |
| | | <el-image |
| | | v-if="info.media_type === 'PHOTO_TYPE'" |
| | | class="eventImage" |
| | | :src="info.url" |
| | | fit="cover" |
| | | :preview-src-list="[info.url]" |
| | | preview-teleported |
| | | /> |
| | | |
| | | <video v-else :src="info.url" autoplay muted playsinline preload="metadata" /> |
| | | </div> |
| | | |
| | |
| | | </div> |
| | | </template> |
| | | <script setup> |
| | | import { ElImage } from 'element-plus' |
| | | // src="@/assets/images/home/useEventOperate/eventErr.png" |
| | | import { Close } from '@element-plus/icons-vue'; |
| | | import { getEventDetails } from '@/api/home/aggregation'; |
| | | import _ from 'lodash'; |
| | | import { Close } from '@element-plus/icons-vue' |
| | | import { getEventDetails } from '@/api/home/aggregation' |
| | | import _ from 'lodash' |
| | | |
| | | const props = defineProps(['data', 'removeLabel']); |
| | | const loading = ref(true); |
| | | const props = defineProps(['data', 'removeLabel']) |
| | | const loading = ref(true) |
| | | |
| | | const info = ref({ |
| | | event_name: '', |
| | |
| | | latitude: '', |
| | | create_time: '04/01 12:41', |
| | | media_type: 'PHOTO_TYPE', |
| | | }); |
| | | }) |
| | | onMounted(async () => { |
| | | loading.value = true; |
| | | const res = await getEventDetails({ id: props.data.eventId }); |
| | | info.value = res.data.data; |
| | | loading.value = false; |
| | | }); |
| | | loading.value = true |
| | | const res = await getEventDetails({ id: props.data.eventId }) |
| | | info.value = res.data.data |
| | | |
| | | info.value.url = import.meta.env.VITE_APP_AIRLINE_URL + info.value.url |
| | | loading.value = false |
| | | }) |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |