diff --git a/components/diy/float-window.vue b/components/diy/float-window.vue index ca508fcd..6be9a6b3 100644 --- a/components/diy/float-window.vue +++ b/components/diy/float-window.vue @@ -74,7 +74,7 @@ const { windowWidth, windowHeight } = uni.getSystemInfoSync(); let x = display_location == 'left' ? 10 : windowWidth - 60; // 计算出距离顶部的距离 - const y = Math.ceil(windowHeight * (1 - Number(offset_number_percentage))); + const y = Math.ceil(windowHeight * (1 - Number(offset_number_percentage)) - 20); this.setData({ content_style: float_style == 'shadow' ? `box-shadow: 0 0 40rpx ${float_style_color};border-radius: 50%;` : `background-color: ${float_style_color};border-radius: 50%;`, x: x, diff --git a/components/diy/rich-text.vue b/components/diy/rich-text.vue index 99042c87..0b96d741 100644 --- a/components/diy/rich-text.vue +++ b/components/diy/rich-text.vue @@ -56,7 +56,7 @@ * { max-width: 100%; } - [id^=v] { + [id^='v'] { width: 100%; } }