let money = e.detail.value
if (money.length == 1 && money[0] == '.') {
money = '0.' // 首位 . 补0
} else if (money.length > 1 && money[0] == 0 && money[1] != '.') {
money = money.slice(1) // 删除首位0
}
money = money.match(/^\d*(\.?\d{0,2})/g)[0] || null // 限制一个小数点,两位小数
this.setData({
money: money,
otherInput: money
})