diff --git a/src/api/api-models.ts b/src/api/api-models.ts index 44f612b..0dc47f2 100644 --- a/src/api/api-models.ts +++ b/src/api/api-models.ts @@ -437,3 +437,24 @@ export interface DanmakuModel { isEmoji: boolean num: number } +export interface ResponseFeedbackModel { + message: string + type: FeedbackType + status: FeedbackStatus + replyMessage?: string + userName?: string + createAt: number +} +export enum FeedbackType { + Opinion, + Bug, + FunctionRequest, + Other, +} +export enum FeedbackStatus { + Padding, + Progressing, + Finish, + Todo, + Reject, +} diff --git a/src/data/constants.ts b/src/data/constants.ts index f15e002..cf34ba9 100644 --- a/src/data/constants.ts +++ b/src/data/constants.ts @@ -27,6 +27,7 @@ export const SONG_REQUEST_API_URL = `${BASE_API}song-request/` export const QUEUE_API_URL = `${BASE_API}queue/` export const EVENT_API_URL = `${BASE_API}event/` export const LIVE_API_URL = `${BASE_API}live/` +export const FEEDBACK_API_URL = `${BASE_API}feedback/` export const ScheduleTemplateMap = { '': { name: '默认', compoent: defineAsyncComponent(() => import('@/views/view/scheduleTemplate/DefaultScheduleTemplate.vue')) }, diff --git a/src/router/index.ts b/src/router/index.ts index 46216a9..f826fc3 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -228,6 +228,14 @@ const routes: Array = [ keepAlive: true, }, }, + { + path: 'feedback', + name: 'manage-feedback', + component: () => import('@/views/FeedbackManage.vue'), + meta: { + title: '反馈', + }, + }, ], }, { diff --git a/src/views/AboutView.vue b/src/views/AboutView.vue index 15871cc..4ef62bd 100644 --- a/src/views/AboutView.vue +++ b/src/views/AboutView.vue @@ -19,6 +19,8 @@ import { NButton, NCard, NDivider, NLayoutContent, NSpace, NText, NTimeline, NTi > 873260337 + 或者 + 反馈页面 邮箱: admin@vtsuru.live diff --git a/src/views/FeedbackManage.vue b/src/views/FeedbackManage.vue new file mode 100644 index 0000000..279da5e --- /dev/null +++ b/src/views/FeedbackManage.vue @@ -0,0 +1,151 @@ + + + diff --git a/src/views/ManageLayout.vue b/src/views/ManageLayout.vue index 5715281..ab2d1b5 100644 --- a/src/views/ManageLayout.vue +++ b/src/views/ManageLayout.vue @@ -22,7 +22,7 @@ import { } from 'naive-ui' import { h, onMounted, ref } from 'vue' import { BrowsersOutline, Chatbox, Moon, MusicalNote, Sunny, AnalyticsSharp } from '@vicons/ionicons5' -import { CalendarClock24Filled, Chat24Filled, Info24Filled, Live24Filled, Lottery24Filled, PeopleQueue24Filled, VehicleShip24Filled, VideoAdd20Filled } from '@vicons/fluent' +import { CalendarClock24Filled, Chat24Filled, Info24Filled, Live24Filled, Lottery24Filled, PeopleQueue24Filled, PersonFeedback24Filled, VehicleShip24Filled, VideoAdd20Filled } from '@vicons/fluent' import { isLoadingAccount, useAccount } from '@/api/account' import RegisterAndLogin from '@/components/RegisterAndLogin.vue' import { RouterLink, useRoute } from 'vue-router' @@ -342,6 +342,16 @@ onMounted(() => { + + + 反馈 + { :collapsed-icon-size="22" :options="menuOptions" /> - - + + 有更多功能建议请 - 反馈 + 反馈 + + + 关于本站 diff --git a/src/views/manage/QuestionBoxManageView.vue b/src/views/manage/QuestionBoxManageView.vue index d2127de..f6ab72b 100644 --- a/src/views/manage/QuestionBoxManageView.vue +++ b/src/views/manage/QuestionBoxManageView.vue @@ -309,13 +309,19 @@ onMounted(() => { @@ -360,9 +366,7 @@ onMounted(() => { {{ item.answer.message }}