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} +

+
+

*提现数量