Authored by shuaiguo

fix(促销编辑): 每满减

... ... @@ -343,6 +343,18 @@ var operationEdit={
return false;
}
if(reqData["promotionType"] === 'LoopCashReduce') {
if(!(/^[1-9]\d*(\.\d{1})?$/.test(_temp.reduce))) {
common.util.__tip("满减金额为大于0且最多精确到小数点后1位", "warning");
return false;
}
if(!(/^[1-9]\d*(\.{0})$/.test(_temp.maxLoopNumber))) {
common.util.__tip("循环上限填写倍数为大于1的整数", "warning");
return false;
}
}
_actionParam = JSON.stringify(_temp);
reqData["actionParam"]=_actionParam;
}
... ...