收敛前端金额表单命名
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -11,7 +11,7 @@ import type {
|
||||
SettlementStatus,
|
||||
UserStatus,
|
||||
WalletStatus,
|
||||
} from '@/types/status'
|
||||
} from '@/shared/types/status'
|
||||
|
||||
const listingStatusMap: Record<ListingStatus, string> = {
|
||||
draft: '草稿',
|
||||
|
||||
Reference in New Issue
Block a user