浏览代码

feat: 修改

year 1 周之前
父节点
当前提交
fbbe9c6af7
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      src/app/[locale]/(TabBar)/deposit/component/deposit/index.tsx

+ 6 - 3
src/app/[locale]/(TabBar)/deposit/component/deposit/index.tsx

@@ -199,8 +199,12 @@ const Deposit = () => {
             });
             if (!confirmRes) return;
         }
-
-        if (!amount) return Toast.show({ content: t("form.amount") });
+        if (new BigNumber(amount).isLessThan(shopType.condition.min)) {
+            return Toast.show({ content: t("form.amount") });
+        }
+        if (!amount) {
+            return Toast.show({ content: t("form.amount") });
+        }
 
         handleUserRecharge(false);
     };
@@ -315,7 +319,6 @@ const Deposit = () => {
                             <Input
                                 type={"text"}
                                 className={styles.amountInput}
-                                max={shopType?.condition?.max}
                                 onChange={inputChange}
                                 placeholder={`${shopType?.condition?.min}-${shopType?.condition?.max}`}
                             />