From 20a086cfb5cc78f7953dfbc63bed333206691c8c Mon Sep 17 00:00:00 2001 From: Megghy <1061179310@qq.com> Date: Thu, 19 Oct 2023 11:48:52 +0800 Subject: [PATCH] 1019 --- src/api/api-models.ts | 12 +- src/components/ScheduleList.vue | 32 +++++ src/data/constants.ts | 1 + src/views/manage/ScheduleManageView.vue | 168 +++++++++++++++++++++++- 4 files changed, 210 insertions(+), 3 deletions(-) create mode 100644 src/components/ScheduleList.vue diff --git a/src/api/api-models.ts b/src/api/api-models.ts index 0945a99..b78d91e 100644 --- a/src/api/api-models.ts +++ b/src/api/api-models.ts @@ -124,8 +124,18 @@ export interface LotteryUserCardInfo { isGuard: boolean isCharge: boolean } +export interface ScheduleWeekInfo { + year: number + week: number + days: ScheduleDayInfo[] +} +export interface ScheduleDayInfo { + title: string + tag: string + time: number +} export enum ThemeType { Auto = 'auto', Light = 'light', Dark = 'dark', -} \ No newline at end of file +} diff --git a/src/components/ScheduleList.vue b/src/components/ScheduleList.vue new file mode 100644 index 0000000..2d9d4a4 --- /dev/null +++ b/src/components/ScheduleList.vue @@ -0,0 +1,32 @@ + + + diff --git a/src/data/constants.ts b/src/data/constants.ts index 6380043..b3ce046 100644 --- a/src/data/constants.ts +++ b/src/data/constants.ts @@ -19,3 +19,4 @@ export const NOTIFACTION_API_URL = `${BASE_API}notifaction/` export const QUESTION_API_URL = `${BASE_API}qa/` export const LOTTERY_API_URL = `${BASE_API}lottery/` export const HISTORY_API_URL = `${BASE_API}history/` +export const SCHEDULE_API_URL = `${BASE_API}schedule/` diff --git a/src/views/manage/ScheduleManageView.vue b/src/views/manage/ScheduleManageView.vue index c3685af..21d6b33 100644 --- a/src/views/manage/ScheduleManageView.vue +++ b/src/views/manage/ScheduleManageView.vue @@ -1,6 +1,170 @@ \ No newline at end of file + 添加日程 + + + + + 添加 + + + + + + + +