فهرست منبع

1、【bcwin网站】定时送免费币活动,极速连点开始按钮,旋转完后会提示错误,转盘显示9999
2、【bcwin网站】个人中心 / 交易记录 - 提现记录显示金额格式 为 - {n}

zcj03 7 ماه پیش
والد
کامیت
423721c4e0
2فایلهای تغییر یافته به همراه8 افزوده شده و 2 حذف شده
  1. 7 1
      src/app/[locale]/(navbar)/transactions/Bets.tsx
  2. 1 1
      src/components/ModalPopup/SlotsModal/index.tsx

+ 7 - 1
src/app/[locale]/(navbar)/transactions/Bets.tsx

@@ -25,7 +25,13 @@ const Bets = () => {
 
     const getDepositsData = async () => {
         return getWithdrawsApi(params.current).then((res) => {
-            setSourceData((value) => ({ page: res.page, list: [...value.list, ...res.data] }));
+            const newData = (res.data || []).map((item) => {
+                return {
+                    ...item,
+                    amount: -item.amount
+                };
+            });
+            setSourceData((value) => ({ page: res.page, list: [...value.list, ...newData] }));
             return res;
         });
     };

+ 1 - 1
src/components/ModalPopup/SlotsModal/index.tsx

@@ -234,7 +234,7 @@ const SlotsClient: FC<SlotsClientProps> = (props) => {
     }, 300);
     // 结束旋转
     const endHandler = (prize: any) => {
-        rotating.current = false;
+        // rotating.current = false;
 
         onRotateAfter && onRotateAfter();
     };