Commit bfd36a9c authored by jiangjiantao's avatar jiangjiantao

bugfixed

parent 05ecc8f7
......@@ -12,7 +12,6 @@ Component({
scene: 1,
//错误提示
errMsg:''
},
didMount() { },
didUpdate() { },
......@@ -73,7 +72,7 @@ Component({
var priceReg = /(^[1-9]\d*(\.\d{1,2})?$)|(^0(\.\d{1,2})?$)/;
if (!priceReg.test(this.data.result)) {
//错误提示
this.setData({errMsg:"金额格式有误"})
return
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment