feat(worker-platform): add worker withdrawal blacklist and admin actions
This commit is contained in:
@@ -61,6 +61,11 @@ export function WorkerProfileDesktopIdentity({
|
||||
>
|
||||
{formatWorkerStatus(worker.status)}
|
||||
</Tag>
|
||||
{worker.isWithdrawalBlacklisted ? (
|
||||
<Tag color="red" className="worker-profile-status-tag">
|
||||
提现黑名单
|
||||
</Tag>
|
||||
) : null}
|
||||
{worker.level?.name ? (
|
||||
<span className="worker-profile-level-badge">{worker.level.name}</span>
|
||||
) : null}
|
||||
|
||||
@@ -95,6 +95,11 @@ export function WorkerProfileMobileView({
|
||||
<Tag className="worker-profile-mobile-tag">
|
||||
{worker.workerType === 'internal' ? '内部打手' : '外部打手'}
|
||||
</Tag>
|
||||
{worker.isWithdrawalBlacklisted ? (
|
||||
<Tag color="red" className="worker-profile-mobile-tag">
|
||||
提现黑名单
|
||||
</Tag>
|
||||
) : null}
|
||||
</div>
|
||||
<div className="worker-profile-mobile-account-text">
|
||||
账号: {worker.username} {worker.phone ? `· ${worker.phone}` : ''}
|
||||
@@ -156,6 +161,18 @@ export function WorkerProfileMobileView({
|
||||
/>
|
||||
) : null}
|
||||
|
||||
{worker.isWithdrawalBlacklisted ? (
|
||||
<Alert
|
||||
showIcon
|
||||
type="error"
|
||||
message={
|
||||
worker.withdrawalBlacklistReason
|
||||
? `提现受限:当前账号已被列入提现黑名单(原因:${worker.withdrawalBlacklistReason}),无法发起提现。如有疑问请联系客服。`
|
||||
: '提现受限:当前账号已被列入提现黑名单,无法发起提现。如有疑问请联系客服。'
|
||||
}
|
||||
/>
|
||||
) : null}
|
||||
|
||||
<div className="worker-profile-mobile-wallet-card">
|
||||
<div className="worker-profile-mobile-wallet-top">
|
||||
<div className="worker-profile-mobile-wallet-main">
|
||||
|
||||
@@ -220,6 +220,14 @@ export default function WorkerProfilePage() {
|
||||
message.warning('当前账号尚未通过审核,暂时不能发起提现申请')
|
||||
return
|
||||
}
|
||||
if (worker?.isWithdrawalBlacklisted) {
|
||||
message.error(
|
||||
worker.withdrawalBlacklistReason?.trim()
|
||||
? `您当前已被限制提现(原因:${worker.withdrawalBlacklistReason.trim()}),如有疑问请联系客服`
|
||||
: '您当前已被限制提现,如有疑问请联系客服',
|
||||
)
|
||||
return
|
||||
}
|
||||
if (financeConfig?.withdraw.enabled === false) {
|
||||
message.warning('当前提现入口暂未开放,请联系管理员')
|
||||
return
|
||||
@@ -510,6 +518,18 @@ export default function WorkerProfilePage() {
|
||||
/>
|
||||
) : null}
|
||||
|
||||
{worker.isWithdrawalBlacklisted ? (
|
||||
<Alert
|
||||
showIcon
|
||||
type="error"
|
||||
message={
|
||||
worker.withdrawalBlacklistReason
|
||||
? `提现受限:当前账号已被列入提现黑名单(原因:${worker.withdrawalBlacklistReason}),无法发起提现。如有疑问请联系平台客服。`
|
||||
: '提现受限:当前账号已被列入提现黑名单,无法发起提现。如有疑问请联系平台客服。'
|
||||
}
|
||||
/>
|
||||
) : null}
|
||||
|
||||
<WorkerProfileDesktopIdentity
|
||||
worker={worker}
|
||||
summary={summary}
|
||||
|
||||
Reference in New Issue
Block a user