From c968e5747f412b0c5788a6e2496144994eb75585 Mon Sep 17 00:00:00 2001
From: yezian
Date: Fri, 10 May 2024 17:27:05 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=8E=B0=E9=A1=B5=E9=9D=A2=E5=8A=A0?=
=?UTF-8?q?=E5=85=A57=E6=97=A5=E5=89=8D=E6=95=B0=E6=8D=AE=E5=B1=95?=
=?UTF-8?q?=E7=A4=BA=EF=BC=9B=E7=BB=99=E2=80=9C=E4=BF=9D=E5=AE=88=E7=9A=84?=
=?UTF-8?q?=E5=A6=BB=E5=AD=90=E2=80=9D=E5=BC=80=E5=A7=8B=E5=A4=A7=E9=A2=9D?=
=?UTF-8?q?=E6=8F=90=E7=8E=B0=E9=80=9A=E9=81=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/withdrawal/page.jsx | 42 ++++++++++++++++++++++++++++++++---------
1 file changed, 33 insertions(+), 9 deletions(-)
diff --git a/app/withdrawal/page.jsx b/app/withdrawal/page.jsx
index 1c207b8..c01d00c 100644
--- a/app/withdrawal/page.jsx
+++ b/app/withdrawal/page.jsx
@@ -85,6 +85,9 @@ export default function WithDrawal() {
verificationStatus:
verificationData.data?.realname_authentication_api_vo?.status,
withdrawal_diamond: withdrawalData.data.withdraw_diamonds,
+ day7_total_diamonds: withdrawalData.data.day7_total_diamonds,
+ day7_total_withdraw_diamonds:
+ withdrawalData.data.day7_total_withdraw_diamonds,
});
} catch (error) {
console.error(error);
@@ -114,17 +117,33 @@ export default function WithDrawal() {
//这是提现钻石的数量
const handleChangeWithdrawalNum = (e) => {
+ const mid = getCookie("mid");
let newValue = parseInt(e.target.value, 10);
// 确保输入的值在最小值和最大值范围内
if (
newValue >= 0 &&
- newValue <= Math.min(data?.withdrawal_diamond, 20000)
+ newValue <=
+ Math.min(
+ data?.withdrawal_diamond,
+ parseInt(mid, 10) === 74 ? 200000 : 20000
+ )
) {
setWithdrawalNum(newValue);
} else if (isNaN(newValue)) {
setWithdrawalNum(0);
- } else if (newValue > Math.min(data?.withdrawal_diamond, 20000)) {
- setWithdrawalNum(Math.min(data?.withdrawal_diamond, 20000));
+ } else if (
+ newValue >
+ Math.min(
+ data?.withdrawal_diamond,
+ parseInt(mid, 10) === 74 ? 200000 : 20000
+ )
+ ) {
+ setWithdrawalNum(
+ Math.min(
+ data?.withdrawal_diamond,
+ parseInt(mid, 10) === 74 ? 200000 : 20000
+ )
+ );
}
};
@@ -173,12 +192,6 @@ export default function WithDrawal() {
//点击提交申请按钮
const handleSubmit = async () => {
- //维护中
- // Toast.show({
- // content: "提现功能维护中,预计2月20日开放",
- // });
- // return;
-
if (!withdrawalNum || withdrawalNum < 1000) {
Toast.show({
content: "提现最低金额为100元(即1000钻石)",
@@ -271,6 +284,17 @@ export default function WithDrawal() {
兑换比例:10钻石=1RMB
+
+
7日前(0~24点)数据
+
+
+ 当日钻石收益:{data?.day7_total_diamonds}
+
+
+ 今日此时已结算:{data?.day7_total_withdraw_diamonds}
+
+
+
*提现数量