From bd585bb2a7b26bbe068b513b889e9076d96d8ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Fri, 22 Nov 2024 15:50:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E6=A0=87=E4=BD=8D=E7=BD=AE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/diy/modules/subscript/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/diy/modules/subscript/index.vue b/components/diy/modules/subscript/index.vue index b9ccc81d..eb98c510 100644 --- a/components/diy/modules/subscript/index.vue +++ b/components/diy/modules/subscript/index.vue @@ -67,17 +67,17 @@ const { seckill_subscript_location, top_or_bottom_spacing, left_or_right_spacing } = subscript_style; // 圆角根据图片的圆角来计算 对角线是同样的圆角 if (seckill_subscript_location == 'top-left') { - location += `top: ${ top_or_bottom_spacing }px;left: ${ left_or_right_spacing }px;`; + location += `top: ${ top_or_bottom_spacing * 2 }rpx;left: ${ left_or_right_spacing * 2 }rpx;`; } else if (seckill_subscript_location == 'top-center') { location += 'top: 0;left: 50%;transform: translateX(-50%);'; } else if (seckill_subscript_location == 'top-right') { - location += `top: ${ top_or_bottom_spacing }px;right:${ left_or_right_spacing }px;`; + location += `top: ${ top_or_bottom_spacing * 2 }rpx;right:${ left_or_right_spacing * 2 }rpx;`; } else if (seckill_subscript_location == 'bottom-left') { - location += `bottom: ${ top_or_bottom_spacing }px;left: ${ left_or_right_spacing }px;`; + location += `bottom: ${ top_or_bottom_spacing * 2 }rpx;left: ${ left_or_right_spacing * 2 }rpx;`; } else if (seckill_subscript_location == 'bottom-center') { location += 'bottom: 0;left: 50%;transform: translateX(-50%);'; } else if (seckill_subscript_location == 'bottom-right') { - location += `bottom: ${ top_or_bottom_spacing }px;right: ${ left_or_right_spacing }px;`; + location += `bottom: ${ top_or_bottom_spacing * 2 }rpx;right: ${ left_or_right_spacing * 2 }rpx;`; } return location; },