diff --git a/src/views/subscribe/FullCalendarView.vue b/src/views/subscribe/FullCalendarView.vue index ce09dab1..7de73d6d 100644 --- a/src/views/subscribe/FullCalendarView.vue +++ b/src/views/subscribe/FullCalendarView.vue @@ -9,6 +9,7 @@ import FullCalendar from "@fullcalendar/vue3"; // 日历属性 const calendarOptions = ref({ + height: "auto", locale: "zh-cn", themeSystem: "standard", buttonText: { @@ -26,9 +27,9 @@ const calendarOptions = ref({ initialView: "dayGridMonth", weekends: false, headerToolbar: { - left: "prev,next", + left: "prev", center: "title", - right: "", + right: "next", }, views: { week: { @@ -55,6 +56,7 @@ const getSubscribes = async () => { start: parseDate(movie.release_date || ""), allDay: false, posterPath: subscribe.poster, + mediaType: subscribe.type, }; } else { // 调用API查询集信息 @@ -67,6 +69,7 @@ const getSubscribes = async () => { start: parseDate(episode.air_date || ""), allDay: false, posterPath: subscribe.poster, + mediaType: subscribe.type, }; }); } @@ -78,6 +81,17 @@ const getSubscribes = async () => { } }; +// 根据 type 返回不同的图标 +const getIcon = (type: string) => { + if (type === "电影") { + return "mdi-movie-roll"; + } else if (type === "电视剧") { + return "mdi-television-box"; + } else { + return "mdi-help-circle"; + } +}; + // 页面加载时调用API查询所有订阅 onMounted(() => { getSubscribes(); @@ -85,12 +99,13 @@ onMounted(() => {