feat(mobile): 全面重构移动端首页与详情页布局并统一3*3顶级保险高光视觉
This commit is contained in:
@@ -401,3 +401,10 @@ function formatCompactNumber(value: number) {
|
||||
const rounded = Math.round(value * 10) / 10
|
||||
return Number.isInteger(rounded) ? `${rounded}` : rounded.toFixed(1)
|
||||
}
|
||||
|
||||
export function isTopTierInsurance(value: string | undefined | null): boolean {
|
||||
if (!value) return false
|
||||
const s = String(value).trim().toLowerCase()
|
||||
return s.includes('3*3') || s.includes('3x3') || s.includes('3×3') || s === '9格' || s.includes('9格')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user