Explorar o código

Merge branch 'feature-year0423' of bcwin/site_front into v1.4

year hai 3 meses
pai
achega
f829fea734

+ 16 - 0
src/app/[locale]/(doings)/continuous/page.module.scss

@@ -105,6 +105,22 @@
         background-size: 100% 100%;
         position: relative;
         z-index: 1;
+        &.active {
+            &::after {
+                content: "";
+                position: absolute;
+                left: 0;
+                top: 0;
+                right: 0;
+                bottom: 0;
+                background-image: url("/continuous/gou.png");
+                display: flex;
+                align-items: center;
+                justify-content: center;
+                background-repeat: no-repeat;
+                background-position: center center;
+            }
+        }
     }
     .boxItemTop {
         height: 0.29rem;

+ 4 - 2
src/app/[locale]/(doings)/continuous/page.tsx

@@ -172,7 +172,7 @@ const Page = () => {
                 return {
                     ...item,
                     ...cfg1[item.id],
-                    footer2: item.target_num ? `${item.target_num}R` : "",
+                    footer2: item.diff_num ? `${item.diff_num}R` : "",
                 };
             })
             .sort((a: ContinuousStageItem, b: ContinuousStageItem) => a.id - b.id);
@@ -311,7 +311,9 @@ const Page = () => {
                                                 return (
                                                     <div
                                                         key={item.id}
-                                                        className={styles.boxItem}
+                                                        className={clsx(styles.boxItem, {
+                                                            [styles.active]: item.is_sign === 1,
+                                                        })}
                                                         style={{
                                                             backgroundImage: `url('/continuous/v${item.id}.png')`,
                                                         }}