From 032a2b458334a92f854ec9eec04b7f9fd493866e 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, 23 May 2025 15:09:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/diy/components/diy/header.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/diy/components/diy/header.vue b/pages/diy/components/diy/header.vue index 71d512c4..9897ab15 100644 --- a/pages/diy/components/diy/header.vue +++ b/pages/diy/components/diy/header.vue @@ -331,8 +331,8 @@ }, // 封装公共逻辑函数 get_up_slide_style(defaultColor, customColor, opacityValue) { - const opacityStr = opacityValue > 0 ? `opacity: ${opacityValue};` : ''; - const color = customColor === '' ? defaultColor : opacityValue <= 0 ? defaultColor : customColor; + const opacityStr = customColor === '' ? '' : opacityValue > 0 ? `opacity: ${opacityValue};` : ''; + const color = (customColor === '' || opacityValue <= 0) ? defaultColor : customColor; return `color: ${color};${opacityStr}`; }, // 定位设置