自动修改

This commit is contained in:
2026-07-12 07:50:27 +08:00
parent b74e4e4fe5
commit d0f0fa09af
18 changed files with 117 additions and 66 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
import { useCallback, useEffect, useRef, useState } from 'react';
import { useNavigate, useSearchParams } from 'react-router-dom';
import { REDEEM_TOKEN_TTL_SECONDS } from '@dukang/shared-types';
import { request } from '../lib/api';
const REDEEM_TOKEN_TTL_SECONDS = 300;
const POLL_INTERVAL_MS = 2500;
type BenefitSummary = {
@@ -236,7 +236,7 @@ export default function RedeemPage() {
type="button"
className="redeem-header-btn"
aria-label="帮助"
onClick={() => window.alert('核销金额不超过可用余额,核销码 5 分钟内有效。')}
onClick={() => window.alert('核销金额不超过可用余额,核销码 3 分钟内有效。')}
>
<span className="material-symbols-outlined">help_outline</span>
</button>
@@ -301,7 +301,7 @@ export default function RedeemPage() {
<div className="redeem-security">
<span className="material-symbols-outlined">shield</span>
<p> 5 </p>
<p> 3 </p>
</div>
</main>