From a3730c2f44485afd4d8438d53aa7dca20083af8c Mon Sep 17 00:00:00 2001 From: no99 <17663930442@163.com> Date: Thu, 24 Jul 2025 11:18:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BA=86=E5=BD=93=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=A5=96=E5=93=81=E5=B7=B2=E7=BB=8F=E6=8A=BD?= =?UTF-8?q?=E5=AE=8C,=E4=BD=86=E6=98=AF=E6=B2=A1=E6=9C=89=E6=8F=AD?= =?UTF-8?q?=E7=A4=BA=E7=9A=84=E6=97=B6=E5=80=99,=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E6=8F=AD=E7=A4=BA=E7=AC=AC=E4=BA=8C=E4=B8=AA?= =?UTF-8?q?=E5=A5=96=E5=93=81=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/choujiang/hxl-cj/cj.vue | 110 ++++++++++++++++++++++++-------------- 1 file changed, 70 insertions(+), 40 deletions(-) diff --git a/src/views/choujiang/hxl-cj/cj.vue b/src/views/choujiang/hxl-cj/cj.vue index 36ec3ba..a1d93c1 100644 --- a/src/views/choujiang/hxl-cj/cj.vue +++ b/src/views/choujiang/hxl-cj/cj.vue @@ -11,9 +11,17 @@
@@ -50,7 +68,12 @@
- 展开 + 展开
HomilyID
奖项
@@ -265,6 +288,7 @@ const lookPrize = async (item) => { item.isLook = true; } else if ( !isLotting && //未在抽奖状态 + currentPrize.value.isLook && currentPrize.value.leftCount == 0 && //当前奖项已抽完 prizes.value[currentPrizeIndex - 1] == item //点击的奖项是当前奖项的下一个 ) { @@ -354,7 +378,7 @@ const initAll = async () => { prizes.value = prizeList.data; // 用户列表 users.value = userList.data; - prizes.value.forEach((item, index) => { + prizes.value.forEach((item, index) => { item.type = index; item.count = item.amount; item.leftCount = item.remainNum; //剩余次数(用于计算奖品下方的进度条的百分比) @@ -1651,7 +1675,6 @@ a { } @keyframes bounce1 { - 0%, 100% { transform: rotate(180deg) translateY(0); @@ -1663,7 +1686,6 @@ a { } @keyframes bounce2 { - 0%, 100% { transform: translateY(0); @@ -1699,11 +1721,13 @@ a { width: 90%; height: 3px; border-radius: 150%; - background: linear-gradient(to right, - transparent 0%, - #d5291f 45%, - #d5291f 55%, - transparent 100%); + background: linear-gradient( + to right, + transparent 0%, + #d5291f 45%, + #d5291f 55%, + transparent 100% + ); position: absolute; bottom: -10px; } @@ -1841,30 +1865,36 @@ a { } .progress-bar-striped { - background-image: -webkit-linear-gradient(45deg, - rgba(255, 255, 255, 0.15) 25%, - transparent 25%, - transparent 50%, - rgba(255, 255, 255, 0.15) 50%, - rgba(255, 255, 255, 0.15) 75%, - transparent 75%, - transparent); - background-image: -o-linear-gradient(45deg, - rgba(255, 255, 255, 0.15) 25%, - transparent 25%, - transparent 50%, - rgba(255, 255, 255, 0.15) 50%, - rgba(255, 255, 255, 0.15) 75%, - transparent 75%, - transparent); - background-image: linear-gradient(45deg, - rgba(255, 255, 255, 0.15) 25%, - transparent 25%, - transparent 50%, - rgba(255, 255, 255, 0.15) 50%, - rgba(255, 255, 255, 0.15) 75%, - transparent 75%, - transparent); + background-image: -webkit-linear-gradient( + 45deg, + rgba(255, 255, 255, 0.15) 25%, + transparent 25%, + transparent 50%, + rgba(255, 255, 255, 0.15) 50%, + rgba(255, 255, 255, 0.15) 75%, + transparent 75%, + transparent + ); + background-image: -o-linear-gradient( + 45deg, + rgba(255, 255, 255, 0.15) 25%, + transparent 25%, + transparent 50%, + rgba(255, 255, 255, 0.15) 50%, + rgba(255, 255, 255, 0.15) 75%, + transparent 75%, + transparent + ); + background-image: linear-gradient( + 45deg, + rgba(255, 255, 255, 0.15) 25%, + transparent 25%, + transparent 50%, + rgba(255, 255, 255, 0.15) 50%, + rgba(255, 255, 255, 0.15) 75%, + transparent 75%, + transparent + ); -webkit-background-size: 8px 8px; background-size: 8px 8px; }