From 02b08694a7ab42d1a0f2bc8423d5a1820fdee491 Mon Sep 17 00:00:00 2001 From: "ex_zhangwenlei@exiot.cmcc" <15196725410@139.com> Date: Fri, 19 Jan 2024 22:08:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=87=8F=E5=B0=8F=E9=AB=98=E4=BA=AE?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E9=80=8F=E6=98=8E=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 高亮图案对比效果更明显 --- src/hooks/useElement.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useElement.ts b/src/hooks/useElement.ts index 33803e5..35c92d5 100644 --- a/src/hooks/useElement.ts +++ b/src/hooks/useElement.ts @@ -3,7 +3,7 @@ import { IPersonConfig } from '@/types/storeType' export const useElementStyle = (element: any, person: IPersonConfig, index: number, patternList: number[], patternColor: string, cardColor: string, cardSize: { width: number, height: number }, textSize: number, mod: 'default' | 'lucky'|'sphere' = 'default') => { if (patternList.includes(index+1)&&mod=='default') { - element.style.backgroundColor = rgba(patternColor, Math.random() * 0.5 + 0.5) + element.style.backgroundColor = rgba(patternColor, Math.random() * 0.2 + 0.8) } else if(mod=='sphere'||mod=='default') { element.style.backgroundColor = rgba(cardColor, Math.random() * 0.5 + 0.25)