From 1725ee69ced5cc0ca3cb4c3d230c10f2797bbcb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Mon, 9 Sep 2024 15:48:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=82=AC=E6=B5=AE=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/diy.vue | 3 +++ components/diy/float-window.vue | 34 ++++++++++++------------------ pages/diy/init_data.js | 37 +++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+), 21 deletions(-) diff --git a/components/diy/diy.vue b/components/diy/diy.vue index cd117e4e..fc3fcd39 100644 --- a/components/diy/diy.vue +++ b/components/diy/diy.vue @@ -5,6 +5,7 @@ + @@ -16,6 +17,7 @@ import componentDiyFooter from '@/components/diy/footer'; import componentDiySearch from '@/components/diy/search'; import componentDiyAuxiliaryLine from '@/components/diy/auxiliary-line'; + import componentFloatWindow from '@/components/diy/float-window'; export default { name: 'diy', props: { @@ -29,6 +31,7 @@ componentDiyFooter, componentDiySearch, componentDiyAuxiliaryLine, + componentFloatWindow, }, data() { return {}; diff --git a/components/diy/float-window.vue b/components/diy/float-window.vue index 1b3dc522..76757edf 100644 --- a/components/diy/float-window.vue +++ b/components/diy/float-window.vue @@ -2,12 +2,11 @@ - {{ new_style.float_style }} - - + + - + @@ -34,8 +33,8 @@ created() { this.form = this.value.content; this.new_style = this.value.style; - const { float_style_color, display_location, offset_number } = this.value.style; - this.color = float_style_color; + const { float_style, float_style_color, display_location, offset_number } = this.value.style; + this.color = float_style == 'shadow' ? `box-shadow: 0 5px 20px ${ float_style_color }` : float_style_color; let location = `right: 10px;`; if (display_location == 'left') { location = `left: 10px;`; @@ -49,17 +48,10 @@