Commit bfd36a9c authored by jiangjiantao's avatar jiangjiantao

bugfixed

parent 05ecc8f7
...@@ -12,7 +12,6 @@ Component({ ...@@ -12,7 +12,6 @@ Component({
scene: 1, scene: 1,
//错误提示 //错误提示
errMsg:'' errMsg:''
}, },
didMount() { }, didMount() { },
didUpdate() { }, didUpdate() { },
...@@ -73,7 +72,7 @@ Component({ ...@@ -73,7 +72,7 @@ Component({
var priceReg = /(^[1-9]\d*(\.\d{1,2})?$)|(^0(\.\d{1,2})?$)/; var priceReg = /(^[1-9]\d*(\.\d{1,2})?$)|(^0(\.\d{1,2})?$)/;
if (!priceReg.test(this.data.result)) { if (!priceReg.test(this.data.result)) {
//错误提示 //错误提示
this.setData({errMsg:"金额格式有误"})
return 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