统一前后端代码格式化配置
This commit is contained in:
@@ -42,7 +42,7 @@ export function AffiliateDashClaimPanel({
|
||||
)
|
||||
const bindMismatch = Boolean(
|
||||
affiliateDash.bindMismatch ||
|
||||
(bound && boundAccount && expectedAccount && !boundAccountMatched),
|
||||
(bound && boundAccount && expectedAccount && !boundAccountMatched),
|
||||
)
|
||||
const canSubmit = Boolean(bound && boundAccountMatched && !bindMismatch)
|
||||
const displayBoundAccount = boundAccount || '-'
|
||||
@@ -173,11 +173,7 @@ export function AffiliateDashClaimPanel({
|
||||
)
|
||||
}
|
||||
|
||||
export function AffiliateDashResultStep({
|
||||
snapshot,
|
||||
}: {
|
||||
snapshot: ClaimSnapshot
|
||||
}) {
|
||||
export function AffiliateDashResultStep({ snapshot }: { snapshot: ClaimSnapshot }) {
|
||||
const affiliateDash = snapshot.affiliateDash
|
||||
const success = Boolean(affiliateDash && !snapshot.isRedeemFailed)
|
||||
|
||||
|
||||
@@ -1,14 +1,6 @@
|
||||
import {
|
||||
CheckCircleOutlined,
|
||||
ExclamationCircleOutlined,
|
||||
LinkOutlined,
|
||||
} from '@ant-design/icons'
|
||||
import { CheckCircleOutlined, ExclamationCircleOutlined, LinkOutlined } from '@ant-design/icons'
|
||||
import { Alert, Button, Card, Typography } from 'antd'
|
||||
import type {
|
||||
ClaimKuaishouFeifeiFlowInfo,
|
||||
ClaimOrderInfo,
|
||||
ClaimProductInfo,
|
||||
} from '@/types/claim'
|
||||
import type { ClaimKuaishouFeifeiFlowInfo, ClaimOrderInfo, ClaimProductInfo } from '@/types/claim'
|
||||
import type { ClaimSnapshot } from './claim-snapshot'
|
||||
import { InfoTile, UidEditRow } from './claim-shared'
|
||||
|
||||
@@ -59,11 +51,7 @@ export function FeifeiClaimPanel({
|
||||
<InfoTile label="领取商品" value={product?.title || '-'} />
|
||||
</div>
|
||||
|
||||
<Alert
|
||||
type="info"
|
||||
showIcon
|
||||
message="将携带你填写的 UID 打开领取页,请确认游戏内角色一致。"
|
||||
/>
|
||||
<Alert type="info" showIcon message="将携带你填写的 UID 打开领取页,请确认游戏内角色一致。" />
|
||||
|
||||
<Button
|
||||
type="primary"
|
||||
@@ -91,7 +79,9 @@ export function FeifeiResultStep({ snapshot }: { snapshot: ClaimSnapshot }) {
|
||||
{snapshot.resultVariant === 'warning' ? (
|
||||
<ExclamationCircleOutlined className="claim-large-icon claim-icon-warning" />
|
||||
) : (
|
||||
<CheckCircleOutlined className={`claim-large-icon claim-icon-${snapshot.resultVariant}`} />
|
||||
<CheckCircleOutlined
|
||||
className={`claim-large-icon claim-icon-${snapshot.resultVariant}`}
|
||||
/>
|
||||
)}
|
||||
<div>
|
||||
<Typography.Title level={2}>{snapshot.resultTitle}</Typography.Title>
|
||||
|
||||
@@ -28,7 +28,10 @@ export function ClaimHeaderCard({
|
||||
<div className="claim-step-indicator">
|
||||
<div className="claim-step-dots" aria-label={`当前第 ${currentStep} 步`}>
|
||||
{[1, 2, 3, 4].map((step) => (
|
||||
<span key={step} className={currentStep >= step ? 'claim-step-dot active' : 'claim-step-dot'}>
|
||||
<span
|
||||
key={step}
|
||||
className={currentStep >= step ? 'claim-step-dot active' : 'claim-step-dot'}
|
||||
>
|
||||
{step}
|
||||
</span>
|
||||
))}
|
||||
|
||||
@@ -175,7 +175,12 @@ function ClaimBindingStep({
|
||||
) : null}
|
||||
|
||||
<Space size={12} wrap className="claim-action-row">
|
||||
<Button size="large" icon={<ReloadOutlined />} loading={refreshingRole} onClick={onRefreshRole}>
|
||||
<Button
|
||||
size="large"
|
||||
icon={<ReloadOutlined />}
|
||||
loading={refreshingRole}
|
||||
onClick={onRefreshRole}
|
||||
>
|
||||
刷新角色信息
|
||||
</Button>
|
||||
<Tooltip title="角色绑定错误时,请点击「换绑角色」,然后重新扫码绑定正确的角色">
|
||||
@@ -303,7 +308,9 @@ export function ClaimResultStep({ snapshot }: { snapshot: ClaimSnapshot }) {
|
||||
{snapshot.resultVariant === 'warning' ? (
|
||||
<ExclamationCircleOutlined className="claim-large-icon claim-icon-warning" />
|
||||
) : (
|
||||
<CheckCircleOutlined className={`claim-large-icon claim-icon-${snapshot.resultVariant}`} />
|
||||
<CheckCircleOutlined
|
||||
className={`claim-large-icon claim-icon-${snapshot.resultVariant}`}
|
||||
/>
|
||||
)}
|
||||
<div>
|
||||
<Typography.Title level={2}>{snapshot.resultTitle}</Typography.Title>
|
||||
|
||||
@@ -36,9 +36,7 @@ export function ClaimUidStep({
|
||||
</Button>
|
||||
</Space>
|
||||
|
||||
<p className="claim-uid-warning">
|
||||
游戏编号需与游戏内角色编号一致,填错将导致无法发货。
|
||||
</p>
|
||||
<p className="claim-uid-warning">游戏编号需与游戏内角色编号一致,填错将导致无法发货。</p>
|
||||
|
||||
<div className="claim-uid-guide">
|
||||
<img
|
||||
|
||||
Reference in New Issue
Block a user