...
|
...
|
@@ -312,22 +312,17 @@ var operationEdit={ |
|
|
}
|
|
|
var _g=this;
|
|
|
var result=true;
|
|
|
var msg;
|
|
|
switch(_reqData["promotionType"]){
|
|
|
case _g.config.Degressdiscount.enName:
|
|
|
var regrex=new RegExp("(\d+:\d+(\.\d+)?)(;\d+:\d+(\.\d+)?)*",'g');
|
|
|
var regrex=new RegExp(/(\d+:\d+(\.\d+)?)(;\d+:\d+(\.\d+)?)*/,'g');
|
|
|
var degress_discount_list=_reqData["data"]["degress_discount_list"];
|
|
|
result = regrex.test(degress_discount_list);
|
|
|
if(!result){
|
|
|
msg="";
|
|
|
}
|
|
|
break;
|
|
|
case _g.config.SpecifiedAmount.enName:
|
|
|
var regrex=new RegExp("\d+:\d+(\.\d+)?",'g');
|
|
|
var regrex=new RegExp(/^\d+:\d+(\.\d+)?$/,'g');
|
|
|
var specified_amount_list=_reqData["data"]["specified_amount_list"];
|
|
|
result = regrex.test(specified_amount_list);
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
return result;
|
|
|
}
|
...
|
...
|
|