Procházet zdrojové kódy

提现状态显示优化

XianCH před 6 měsíci
rodič
revize
6322a06d90

+ 9 - 0
messages/br.json

@@ -1184,5 +1184,14 @@
     "message": "Notification",
     "transactions": "My Transactions",
     "betrecord": "My Bets"
+  },
+  "withdrawStatus":{
+    "0":"Revisão",
+    "2":"Espera",
+    "3":"Éxito",
+    "4":"Pagante",
+    "5":"Falhou",
+    "6":"Pendente",
+    "7":"Indeferido"
   }
 }

+ 9 - 0
messages/en.json

@@ -1168,5 +1168,14 @@
     "message": "Notification",
     "transactions": "My Transactions",
     "betrecord": "My Bets"
+  },
+  "withdrawStatus":{
+    "0":"Reviewing",
+    "2":"Waiting",
+    "3":"Success",
+    "4":"Paying",
+    "5":"Failed",
+    "6":"Pending",
+    "7":"Rejected"
   }
 }

+ 2 - 2
src/app/[locale]/(navbar)/transactions/components/Message.tsx

@@ -5,7 +5,7 @@ import { Toast } from "antd-mobile";
 import { useTranslations } from "next-intl";
 
 type Props = {
-    data: DepositsRep[];
+    data: (DepositsRep & { order_status?: number })[];
 };
 const Message = (props: Props) => {
     const { data = [] } = props;
@@ -38,7 +38,7 @@ const Message = (props: Props) => {
                         </div>
                         <div className={"flex justify-between text-[12px] text-[#acacac]"}>
                             <p>{timeFormat(item.time)}</p>
-                            <p>{item.status}</p>
+                            <p>{t(`withdrawStatus.${item?.order_status}`)}</p>
                         </div>
                     </Box>
                 );