sync: soul-admin 页面 | 原因: 前端页面修改
This commit is contained in:
@@ -13,7 +13,9 @@ import {
|
||||
Link2,
|
||||
Eye,
|
||||
Undo2,
|
||||
Settings,
|
||||
} from 'lucide-react'
|
||||
import { ReferralSettingsPage } from '@/pages/referral-settings/ReferralSettingsPage'
|
||||
import { Pagination } from '@/components/ui/Pagination'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Input } from '@/components/ui/input'
|
||||
@@ -119,7 +121,7 @@ interface Order {
|
||||
}
|
||||
|
||||
export function DistributionPage() {
|
||||
const [activeTab, setActiveTab] = useState<'overview' | 'orders' | 'bindings' | 'withdrawals'>(
|
||||
const [activeTab, setActiveTab] = useState<'overview' | 'orders' | 'bindings' | 'withdrawals' | 'settings'>(
|
||||
'overview',
|
||||
)
|
||||
const [orders, setOrders] = useState<Order[]>([])
|
||||
@@ -434,12 +436,13 @@ export function DistributionPage() {
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div className="flex gap-2 mb-6 border-b border-gray-700 pb-4">
|
||||
<div className="flex gap-2 mb-6 border-b border-gray-700 pb-4 flex-wrap">
|
||||
{[
|
||||
{ key: 'overview', label: '数据概览', icon: TrendingUp },
|
||||
{ key: 'orders', label: '订单管理', icon: DollarSign },
|
||||
{ key: 'bindings', label: '绑定管理', icon: Link2 },
|
||||
{ key: 'withdrawals', label: '提现审核', icon: Wallet },
|
||||
{ key: 'settings', label: '推广设置', icon: Settings },
|
||||
].map((tab) => (
|
||||
<button
|
||||
key={tab.key}
|
||||
@@ -1218,6 +1221,13 @@ export function DistributionPage() {
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
|
||||
{/* 推广设置 Tab */}
|
||||
{activeTab === 'settings' && (
|
||||
<div className="-mx-8 -mt-6">
|
||||
<ReferralSettingsPage embedded />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ const DEFAULT: ReferralConfig = {
|
||||
vipOrderShareNonVip: 10,
|
||||
}
|
||||
|
||||
export function ReferralSettingsPage() {
|
||||
export function ReferralSettingsPage({ embedded = false }: { embedded?: boolean }) {
|
||||
const [config, setConfig] = useState<ReferralConfig>(DEFAULT)
|
||||
const [loading, setLoading] = useState(true)
|
||||
const [saving, setSaving] = useState(false)
|
||||
|
||||
Reference in New Issue
Block a user