inputUp(e) {
if (e.inputType == "deleteContentBackward") {
// 判断是否是删除键
this.$emit("methods_busType_input", this.amount)
return
}
var reg = /^0\.([1-9]|\d[1-9])$|^[1-9]\d{0,8}\.\d{0,2}$|^[1-9]\d{0,8}$/;
if (!reg.test(this.amount)) {
this.amount = this.data_busType.amount
if (e.data == "-" || e.data == "+") {
if (this.data_busType.amount === "") {
// 防止刚开始就输入'+'或者'-'
this.amount = 0
}
}
}
this.$emit("methods_busType_input", this.amount)
}