|
@@ -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(" "),
|
|
|
});
|
|
|
}
|
|
|
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}>
|