商品列表 [mall/product/spu/data.ts] 与商品选择器 [mall/product/spu/components/spu-select-data.ts] 的「价格」列原先 formatter: 'formatAmount2',只做了小数格式化、漏了「分转元」,导致 19900 直接显示成 19900.00(应为 199.00 元)。同文件的 marketPrice / costPrice 已正确使用 fenToYuan,唯独 price 漏了。 顺手将 spu/data.ts 的 price / marketPrice / costPrice 三列从手写闭包统一切到已注册的 formatFenToYuanAmount formatter,单位「元」从 cell 后缀挪进列标题(如「价格(元)」), 减少 8 处闭包并复用平台统一的 null/NaN 处理。 |
||
|---|---|---|
| .. | ||
| web-antd | ||
| web-antdv-next | ||
| web-ele | ||
| web-naive | ||
| web-tdesign | ||