Browse Source

fix: 更新提现文本

Ansoni 5 months ago
parent
commit
b2ef9b10fd
3 changed files with 26 additions and 26 deletions
  1. 2 2
      messages/br.json
  2. 1 1
      messages/en.json
  3. 23 23
      src/app/[locale]/(navbar)/withdraw/WithdrawWidget.tsx

+ 2 - 2
messages/br.json

@@ -189,8 +189,8 @@
     "keyTips": "A chave Pix deve pertencer ao CPF, preencha com um CPF inválido e você não receberá o valor do saque.",
     "Tipo": "Tipo de chave PIX",
     "Vincule": "Vincule conta Pix mais usada, será verificação necessária em adicionar nova conta Pix depois.",
-    "Montante": "Montante",
-    "SaqueDisponivel": "Saque Disponivel",
+    "Montante": "Quantia(BRL)",
+    "SaqueDisponivel": "SALDO DISPONIVEL",
     "Valor": "Valor total de resgate",
     "Para": "Para aumentar seu saldo disponível",
     "Aposte": "Aposte Agora",

+ 1 - 1
messages/en.json

@@ -189,7 +189,7 @@
     "Tipo": "Tipo de chave PIX",
     "Vincule": "Vincule conta Pix mais usada, será verificação necessária em adicionar nova conta Pix depois.",
     "Montante": "Montante",
-    "SaqueDisponivel": "Saque Disponivel",
+    "SaqueDisponivel": "SALDO DISPONIVEL",
     "Valor": "Valor total de resgate",
     "Para": "Para aumentar seu saldo disponível",
     "Aposte": "Aposte Agora",

+ 23 - 23
src/app/[locale]/(navbar)/withdraw/WithdrawWidget.tsx

@@ -390,8 +390,28 @@ const WithdrawWidget: FC<Props> = (props) => {
                             </Form.Item>
                         )}
 
-                        <h1>{t("WithdrawPage.Vincule")}</h1>
-                        <p className={"my-[0.1rem]"}>{t("WithdrawPage.Montante")} (BRL):</p>
+                        {/*<h1>{t("WithdrawPage.Vincule")}</h1>*/}
+                        <div className={"mb-[0.08rem]"}>
+                            {t("WithdrawPage.SaqueDisponivel")}{" "}
+                            <span className="ml-[.05rem] text-[.12rem] text-[#fcde26]">
+                                {/* 如果当前现金打码量等于当前目标打码量 则 可以提现,  如果当前打码量=== 100% 则可以提现 */}
+                                {flatPoint(
+                                    wallet.target_score_rollover - wallet.current_score_rollover
+                                ) === 0 ||
+                                percentage(
+                                    wallet.current_score_rollover,
+                                    wallet.target_score_rollover
+                                ) >= 100
+                                    ? wallet.score
+                                    : 0}
+                                BRL
+                            </span>
+                            <span
+                                className="iconfont icon-iconhelp ml-[0.05rem] text-[.18rem]"
+                                onClick={() => scoreRef.current?.onOpen()}
+                            ></span>
+                        </div>
+                        {/*<p className={"my-[0.1rem]"}>{t("WithdrawPage.Montante")} (BRL):</p>*/}
                         <Form.Item
                             name="amount"
                             label=""
@@ -404,32 +424,12 @@ const WithdrawWidget: FC<Props> = (props) => {
                             ]}
                         >
                             <Input
-                                placeholder={`Mín. ${activeWallet.min_amount || 0}`}
+                                placeholder={t("WithdrawPage.Montante")}
                                 type={"number"}
                                 min={activeWallet.min_amount}
                             />
                         </Form.Item>
                         <ul className="ul-box">
-                            <li>
-                                {t("WithdrawPage.SaqueDisponivel")}{" "}
-                                <span className="tip">
-                                    {/* 如果当前现金打码量等于当前目标打码量 则 可以提现,  如果当前打码量=== 100% 则可以提现 */}
-                                    {flatPoint(
-                                        wallet.target_score_rollover - wallet.current_score_rollover
-                                    ) === 0 ||
-                                    percentage(
-                                        wallet.current_score_rollover,
-                                        wallet.target_score_rollover
-                                    ) >= 100
-                                        ? wallet.score
-                                        : 0}
-                                    BRL
-                                </span>
-                                <span
-                                    className="iconfont icon-iconhelp"
-                                    onClick={() => scoreRef.current?.onOpen()}
-                                ></span>
-                            </li>
                             <li>
                                 {t("WithdrawPage.Valor")}
                                 <span className="tip">