Files
李琦 27202c0740 1. 优化了一些交互,中药药品编辑交互
2. dev和生产环境统一鉴别
2026-05-30 13:53:14 +08:00

8 lines
250 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** 金额展示(WXML 模板用 methods 调用) */
export function formatMoney(v) {
if (v === null || v === undefined || v === '' || v === '-') return '-'
const n = Number(v)
if (Number.isNaN(n)) return String(v)
return '¥' + n.toFixed(2)
}