From 46c81a2e730c9cce3601fbc90985e0cc64348d1b Mon Sep 17 00:00:00 2001 From: Huangzhe Date: Thu, 6 Mar 2025 11:06:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E9=97=AE=E5=8D=B7=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 最新问卷组件样式更新 - 内容调整 - 增加 hooks 内容支持 --- src/views/Home/Index.vue | 1 - .../CreateSurvey/Hooks/useRequestHooks.ts | 62 ++++++++-------- .../Home/components/CreateSurvey/Index.vue | 20 ++--- src/views/Home/components/Suvrey/Index.vue | 74 +++++++++++++++---- .../Suvrey/hooks/useLastSurveyHooks.ts | 22 ++++++ 5 files changed, 122 insertions(+), 57 deletions(-) create mode 100644 src/views/Home/components/Suvrey/hooks/useLastSurveyHooks.ts diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index 3995ec5..e380497 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -41,7 +41,6 @@ import CreateSurvey from './components/CreateSurvey/Index.vue'; padding: 20px 10px; } - } } diff --git a/src/views/Home/components/CreateSurvey/Hooks/useRequestHooks.ts b/src/views/Home/components/CreateSurvey/Hooks/useRequestHooks.ts index 5cd60b6..c76addb 100644 --- a/src/views/Home/components/CreateSurvey/Hooks/useRequestHooks.ts +++ b/src/views/Home/components/CreateSurvey/Hooks/useRequestHooks.ts @@ -1,31 +1,31 @@ -export const surveys = [ - { - title: '报名签到', - icon: 'https://files.axshare.com/gsc/DR6075/de/a0/49/dea049d6ad3e4c2c80af44258c6c76d6/images/%E9%A6%96%E9%A1%B5_1/u48.png?pageId=74b3e5b2-848e-4258-8a34-9e220127c8a6' - }, - { - title: '满意度调研', - icon: 'https://files.axshare.com/gsc/DR6075/63/4d/77/634d77293a4d41d1b3d145974a8fb6a7/images/%E9%A6%96%E9%A1%B5_1/u27.png?pageId=5cc10b9f-56eb-48dc-943a-bfe7afb18a64' - }, - { - title: '快速投票', - icon: 'https://files.axshare.com/gsc/DR6075/63/4d/77/634d77293a4d41d1b3d145974a8fb6a7/images/首页_1/u29.png?pageId=5cc10b9f-56eb-48dc-943a-bfe7afb18a64' - }, - { - title: '打分评估', - icon: 'https://files.axshare.com/gsc/DR6075/63/4d/77/634d77293a4d41d1b3d145974a8fb6a7/images/首页_1/u31.png?pageId=5cc10b9f-56eb-48dc-943a-bfe7afb18a64' - }, - { - title: 'NPS调研', - icon: 'https://files.axshare.com/gsc/DR6075/63/4d/77/634d77293a4d41d1b3d145974a8fb6a7/images/首页_1/u22.png?pageId=5cc10b9f-56eb-48dc-943a-bfe7afb18a64' - },{ - title: '考评测试', - icon: 'https://files.axshare.com/gsc/DR6075/63/4d/77/634d77293a4d41d1b3d145974a8fb6a7/images/首页_1/u24.png?pageId=5cc10b9f-56eb-48dc-943a-bfe7afb18a64' - },{ - title: '表单收集', - icon: 'https://files.axshare.com/gsc/DR6075/63/4d/77/634d77293a4d41d1b3d145974a8fb6a7/images/首页_1/u16.png?pageId=5cc10b9f-56eb-48dc-943a-bfe7afb18a64' - },{ - title: '消费者测试', - icon: 'https://files.axshare.com/gsc/DR6075/63/4d/77/634d77293a4d41d1b3d145974a8fb6a7/images/首页_1/u18.png?pageId=5cc10b9f-56eb-48dc-943a-bfe7afb18a64' - } - ]; \ No newline at end of file +export const surveys = [ + { + title: '报名签到', + icon: 'https://files.axshare.com/gsc/DR6075/de/a0/49/dea049d6ad3e4c2c80af44258c6c76d6/images/%E9%A6%96%E9%A1%B5_1/u48.png?pageId=74b3e5b2-848e-4258-8a34-9e220127c8a6' + }, + { + title: '满意度调研', + icon: 'https://files.axshare.com/gsc/DR6075/63/4d/77/634d77293a4d41d1b3d145974a8fb6a7/images/%E9%A6%96%E9%A1%B5_1/u27.png?pageId=5cc10b9f-56eb-48dc-943a-bfe7afb18a64' + }, + { + title: '快速投票', + icon: 'https://files.axshare.com/gsc/DR6075/63/4d/77/634d77293a4d41d1b3d145974a8fb6a7/images/首页_1/u29.png?pageId=5cc10b9f-56eb-48dc-943a-bfe7afb18a64' + }, + { + title: '打分评估', + icon: 'https://files.axshare.com/gsc/DR6075/63/4d/77/634d77293a4d41d1b3d145974a8fb6a7/images/首页_1/u31.png?pageId=5cc10b9f-56eb-48dc-943a-bfe7afb18a64' + }, + { + title: 'NPS调研', + icon: 'https://files.axshare.com/gsc/DR6075/63/4d/77/634d77293a4d41d1b3d145974a8fb6a7/images/首页_1/u22.png?pageId=5cc10b9f-56eb-48dc-943a-bfe7afb18a64' + }, { + title: '考评测试', + icon: 'https://files.axshare.com/gsc/DR6075/63/4d/77/634d77293a4d41d1b3d145974a8fb6a7/images/首页_1/u24.png?pageId=5cc10b9f-56eb-48dc-943a-bfe7afb18a64' + }, { + title: '表单收集', + icon: 'https://files.axshare.com/gsc/DR6075/63/4d/77/634d77293a4d41d1b3d145974a8fb6a7/images/首页_1/u16.png?pageId=5cc10b9f-56eb-48dc-943a-bfe7afb18a64' + }, { + title: '消费者测试', + icon: 'https://files.axshare.com/gsc/DR6075/63/4d/77/634d77293a4d41d1b3d145974a8fb6a7/images/首页_1/u18.png?pageId=5cc10b9f-56eb-48dc-943a-bfe7afb18a64' + } +]; \ No newline at end of file diff --git a/src/views/Home/components/CreateSurvey/Index.vue b/src/views/Home/components/CreateSurvey/Index.vue index ade4f25..1261ede 100644 --- a/src/views/Home/components/CreateSurvey/Index.vue +++ b/src/views/Home/components/CreateSurvey/Index.vue @@ -1,18 +1,18 @@ diff --git a/src/views/Home/components/Suvrey/hooks/useLastSurveyHooks.ts b/src/views/Home/components/Suvrey/hooks/useLastSurveyHooks.ts new file mode 100644 index 0000000..0b91b86 --- /dev/null +++ b/src/views/Home/components/Suvrey/hooks/useLastSurveyHooks.ts @@ -0,0 +1,22 @@ + +export const lastSurveys = [ + { + status: '已结束', + platform: '移动端', + createTime: '2025-03-04', + title: '签到报名问卷标题', + describe: '问卷描述' + }, { + status: '已结束', + platform: '移动端', + createTime: '2025-03-04', + title: '签到报名问卷标题', + describe: '问卷描述' + }, { + status: '已结束', + platform: '移动端', + createTime: '2025-03-04', + title: '签到报名问卷标题', + describe: '问卷描述' + } +]; \ No newline at end of file