year 1 день тому
батько
коміт
42711d28ea

+ 4 - 2
src/app/[locale]/(TabBar)/[[...share]]/_home/HomePrize.tsx

@@ -28,12 +28,12 @@ const HomePrize: FC<Props> = (props) => {
             let bigWin: string[] = [];
             data.forEach((item) => {
                 bigWin.push(
-                    `${item.phone ? item.phone.slice(0, 1) + "*****" + item.phone.slice(-3) : ""} acabou de retirar {prize.amount} R$`
+                    `${item.phone ? item.phone.slice(0, 1) + "*****" + item.phone.slice(-3) : ""} acabou de retirar ${item.amount} R$`
                 );
             });
             result.push({
                 dataType: "bigWin",
-                data: bigWin,
+                data: bigWin.join("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"),
             });
         }
         if (!!notices?.length) {
@@ -48,6 +48,7 @@ const HomePrize: FC<Props> = (props) => {
         return result;
     }, [data, notices, type]);
 
+    console.log(renderData);
     const noticeEnd = (idx: number) => {
         if (noticeSwiperRef.current) {
             const toIndex = idx + 1 >= renderData.length ? 0 : idx + 1;
@@ -79,6 +80,7 @@ const HomePrize: FC<Props> = (props) => {
                     onSwiper={(swiper) => {
                         noticeSwiperRef.current = swiper;
                     }}
+                    style={{ height: "24px" }}
                 >
                     {renderData.map((item: any, index: number) => (
                         <SwiperSlide key={index}>

+ 1 - 1
src/components/Card/SwiperGroup.tsx

@@ -155,7 +155,7 @@ const HomeSwiper: FC<PropsWithChildren<SwiperGroupProps>> = (props) => {
                                             styles.btn
                                         )}
                                     >
-                                        Malas &gt;
+                                        Mais &gt;
                                     </div>
                                     {/* <div className={styles.marginRightCount}>
                                         <span>{group.to_tal}</span>

+ 3 - 0
src/components/NoticeBox/index.module.scss

@@ -7,4 +7,7 @@
 }
 .content {
     white-space: nowrap;
+    font-size: 0.12rem;
+    color: var(-textColor1);
+    font-weight: normal;
 }