docs: 更新优惠券相关文档- 新增优惠券API集成文档

- 新增优惠券卡片对齐修复文档
- 新增优惠券状态显示调试文档
- 新增优惠券组件警告修复文档- 更新用ShopInfo Hook字段迁移文档
- 更新Arguments关键字修复文档
This commit is contained in:
2025-08-15 01:52:36 +08:00
parent dc87f644c9
commit 1b24a611a8
50 changed files with 6530 additions and 595 deletions

View File

@@ -17,7 +17,7 @@ const GiftCardManage = () => {
const [searchValue, setSearchValue] = useState('')
const [page, setPage] = useState(1)
// const [total, setTotal] = useState(0)
const [activeTab, setActiveTab] = useState('0') // 0-可用 1-已使用 2-已过期
const [activeTab, setActiveTab] = useState<string | number>('0') // 0-可用 1-已使用 2-已过期
const [stats, setStats] = useState({
available: 0,
used: 0,
@@ -34,7 +34,7 @@ const GiftCardManage = () => {
// 获取礼品卡状态过滤条件
const getStatusFilter = () => {
switch (activeTab) {
switch (String(activeTab)) {
case '0': // 可用
return { useStatus: 0 }
case '1': // 已使用
@@ -108,7 +108,7 @@ const GiftCardManage = () => {
}
// Tab切换
const handleTabChange = (value: string) => {
const handleTabChange = (value: string | number) => {
setActiveTab(value)
setPage(1)
setList([])