From 1bf230b2460b69e55bb0640161128847cbb57d03 Mon Sep 17 00:00:00 2001 From: fuji <541359373@qq.com> Date: Tue, 2 Jun 2020 10:14:54 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E3=80=90=E6=B7=BB=E5=8A=A0=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=8F=8D=E9=A6=88=E9=A1=B5=E9=9D=A2=E3=80=91-?= =?UTF-8?q?=E6=9C=AA=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/vue2-forntend/src/api/user.js | 9 ++++ backend/vue2-forntend/src/router/index.js | 14 +++++ .../src/views/Feedback/index.vue | 54 +++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 backend/vue2-forntend/src/views/Feedback/index.vue diff --git a/backend/vue2-forntend/src/api/user.js b/backend/vue2-forntend/src/api/user.js index 0e39361..87c82b1 100644 --- a/backend/vue2-forntend/src/api/user.js +++ b/backend/vue2-forntend/src/api/user.js @@ -104,3 +104,12 @@ export function resetPWD(uid,data){ data, }) } + +// 用户反馈 +export function feedback(uid, data) { + return request({ + url: `/api/user/${uid}/feedback/new`,//没确定 + method: 'post', + data, + }) +} \ No newline at end of file diff --git a/backend/vue2-forntend/src/router/index.js b/backend/vue2-forntend/src/router/index.js index 9870559..12f8787 100644 --- a/backend/vue2-forntend/src/router/index.js +++ b/backend/vue2-forntend/src/router/index.js @@ -134,6 +134,19 @@ export const constantRoutes = [ ] }, + { + path: '/Feedback', + component: Layout, + children: [ + { + path: 'index', + name: 'Feedback', + component: () => import('@/views/Feedback/index'), + meta: { title: '用户反馈', icon: 'eye' } + } + ] + }, + { path: '/About', component: Layout, @@ -147,6 +160,7 @@ export const constantRoutes = [ ] }, + // 404 page must be placed at the end !!! { path: '*', redirect: '/404', hidden: true } ] diff --git a/backend/vue2-forntend/src/views/Feedback/index.vue b/backend/vue2-forntend/src/views/Feedback/index.vue new file mode 100644 index 0000000..8d9f434 --- /dev/null +++ b/backend/vue2-forntend/src/views/Feedback/index.vue @@ -0,0 +1,54 @@ + + + + -- Gitee From dcbc67388f0f3c274ba5df5983e9c00abccc503d Mon Sep 17 00:00:00 2001 From: fuji <541359373@qq.com> Date: Tue, 2 Jun 2020 17:09:02 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E3=80=90BUG=E5=8F=8D=E9=A6=88=E3=80=91?= =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/vue2-forntend/src/router/index.js | 2 +- backend/vue2-forntend/src/views/Feedback/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/vue2-forntend/src/router/index.js b/backend/vue2-forntend/src/router/index.js index 12f8787..609c415 100644 --- a/backend/vue2-forntend/src/router/index.js +++ b/backend/vue2-forntend/src/router/index.js @@ -142,7 +142,7 @@ export const constantRoutes = [ path: 'index', name: 'Feedback', component: () => import('@/views/Feedback/index'), - meta: { title: '用户反馈', icon: 'eye' } + meta: { title: '用户反馈', icon: 'link' } } ] }, diff --git a/backend/vue2-forntend/src/views/Feedback/index.vue b/backend/vue2-forntend/src/views/Feedback/index.vue index 8d9f434..c2df263 100644 --- a/backend/vue2-forntend/src/views/Feedback/index.vue +++ b/backend/vue2-forntend/src/views/Feedback/index.vue @@ -14,7 +14,7 @@ no-resize >