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 @@