From 5358b6c734562c61a28caefcb3bbaf286388ebef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Wed, 16 Oct 2024 10:34:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/float-window.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,