From 4f3834fc52c8a82737f11f2da539e58d19b1f8d2 Mon Sep 17 00:00:00 2001 From: Seven Date: Thu, 22 Jan 2026 22:10:35 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=B9=B6=E5=9C=A8=E5=85=AC=E5=91=8A=E4=B8=AD?= =?UTF-8?q?=E9=9B=86=E6=88=90=E8=A7=86=E9=A2=91=E6=92=AD=E6=94=BE=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/components/video.vue | 120 ++++++++++++++++++++++++++++ src/views/home/index.vue | 27 ++++++- 2 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 src/views/home/components/video.vue diff --git a/src/views/home/components/video.vue b/src/views/home/components/video.vue new file mode 100644 index 0000000..c9d6644 --- /dev/null +++ b/src/views/home/components/video.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/src/views/home/index.vue b/src/views/home/index.vue index fb5433c..ec1a453 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -3,11 +3,13 @@ import type { Treaty } from "@elysiajs/eden"; import type { InfiniteScrollCustomEvent } from "@ionic/vue"; import type { Action } from "./"; import type { TreatyQuery } from "@/api/types"; +import { modalController } from "@ionic/vue"; import { chevronForwardOutline, eyeOutline, megaphoneOutline, timeOutline } from "ionicons/icons"; import { client, safeClient } from "@/api"; import banner2 from "@/assets/images/home-banner2.jpg?url"; import banner1 from "@/assets/images/home-banner.jpg?url"; import { actions } from "./"; +import Video from "./components/video.vue"; type NewsItem = Treaty.Data["data"][number]; type NewsQuery = TreatyQuery; @@ -36,9 +38,32 @@ interface Announcement { const announcements = ref([ { id: 1, + title: "深化改革线上视频大会-18:30分", + onClick: async () => { + const modal = await modalController.create({ + component: Video, + componentProps: { + title: "视频大会", + config: [ + { + title: "深化改革线上视频大会18:30分", + link: "https://www.w3schools.com/html/mov_bbb.mp4", + }, + { + title: "深化改革线上视频大会20:30分", + link: "https://www.w3schools.com/html/mov_bbb.mp4", + }, + ], + }, + }); + await modal.present(); + }, + }, + { + id: 2, title: "欢迎使用我们的服务平台,祝您投资顺利!", onClick: () => { - console.log("点击了第一条公告"); + console.log("公告2点击"); }, }, ]);