From f4ffd912145c4a7f2b92602caa908789f7367428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=89=E6=96=8C?= Date: Thu, 15 Aug 2019 19:58:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=84=8F=E8=A7=81=E5=8F=8D=E9=A6=88=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E9=A1=B5=E9=9D=A2=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 + src/layout/Layout.vue | 29 ++++++++- src/layout/feedback.vue | 139 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 169 insertions(+), 1 deletion(-) create mode 100644 src/layout/feedback.vue diff --git a/package.json b/package.json index 22e1eff..7fd73a7 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "echarts": "4.1.0", "element-ui": "2.4.6", "file-saver": "1.3.8", + "html2canvas": "^1.0.0-rc.3", "js-cookie": "2.2.0", "jsencrypt": "^3.0.0-rc.1", "jszip": "3.1.5", @@ -33,6 +34,7 @@ "nprogress": "0.2.0", "path-to-regexp": "2.4.0", "screenfull": "3.3.3", + "simple-drawing-board": "^2.0.1", "vue": "2.5.17", "vue-count-to": "1.0.13", "vue-router": "3.0.2", diff --git a/src/layout/Layout.vue b/src/layout/Layout.vue index b286304..4f5e39f 100644 --- a/src/layout/Layout.vue +++ b/src/layout/Layout.vue @@ -5,6 +5,13 @@
+
@@ -12,6 +19,7 @@
+ @@ -20,6 +28,7 @@ import RightPanel from '@/components/RightPanel' import { AppMain, Navbar, Settings, Sidebar, TagsView } from './components' import ResizeMixin from './mixin/ResizeHandler' import { mapState } from 'vuex' +import feedback from './feedback.vue' export default { name: 'Layout', @@ -29,7 +38,13 @@ export default { Settings, Sidebar, TagsView, - RightPanel + RightPanel, + feedback + }, + data() { + return { + feedbackShow: false + } }, mixins: [ResizeMixin], computed: { @@ -51,6 +66,10 @@ export default { methods: { handleClickOutside() { this.$store.dispatch('closeSideBar', { withoutAnimation: false }) + }, + doFeedback() { + console.log(111) + this.feedbackShow = true } } } @@ -99,4 +118,12 @@ export default { .mobile .fixed-header { width: 100%; } + + .feedback { + position: fixed; + z-index: 999999; + right: 10px; + bottom: 60px; + } + diff --git a/src/layout/feedback.vue b/src/layout/feedback.vue new file mode 100644 index 0000000..e8be2c6 --- /dev/null +++ b/src/layout/feedback.vue @@ -0,0 +1,139 @@ + + + + +