收敛前端金额表单命名

This commit is contained in:
yml
2026-06-09 20:59:50 +08:00
parent 60324765c5
commit 9cc959afc4
19 changed files with 103 additions and 232 deletions
@@ -7,7 +7,7 @@ import type {
QuantityKey,
ScreenshotKey,
} from '@/features/listings/api/listingOptions'
import type { PublishForm } from '@/types/publish'
import type { PublishForm } from '@/shared/types/publish'
import {
buildDepositBreakdownItems,
calculateConsumablePrice,
+1 -1
View File
@@ -17,7 +17,7 @@ export type PublishForm = {
online_end: string
ban_record: string
common_regions: string[]
deposit_amount: number | ''
depositAmountYuan: number | ''
remark: string
}
-7
View File
@@ -48,13 +48,6 @@ export function centToDisplayYuan(cent: number | undefined | null): number {
return roundMoney(centToYuan(cent))
}
/**
* @deprecated 使用 centToDisplayYuan。保留导出避免旧导入立刻失效。
*/
export function centToJiao(cent: number | undefined | null): number {
return centToDisplayYuan(cent)
}
/**
* 格式化分为角字符串(保留1位小数)
* @example formatCent(12345) -> "123.5"
+5 -1
View File
@@ -7,7 +7,11 @@ import type {
PublishRatioConfig,
PublishSalePriceConfig,
} from '@/features/listings/api/listingOptions'
import type { DepositBreakdownItem, PublishForm, PublishPlatformPricing } from '@/types/publish'
import type {
DepositBreakdownItem,
PublishForm,
PublishPlatformPricing,
} from '@/shared/types/publish'
export const dailyLossOptions = [10, 20, 30, 40, 50]
export const commonOnlineTimes = [
+1 -1
View File
@@ -11,7 +11,7 @@ import type {
SettlementStatus,
UserStatus,
WalletStatus,
} from '@/types/status'
} from '@/shared/types/status'
const listingStatusMap: Record<ListingStatus, string> = {
draft: '草稿',