Authored by chenchao

support max is 5

var $ = require('jquery'),
common = require('../../../../common/common');
common = require('../../../../common/common');
var edit = require('../../../../common/edit');
var jsonUtils=require('./jsonUtils');
var promotionInfoRefresh=require('./promotionInfoRefresh');
console.log("operationEdit in");
var regrex_special_prds = new RegExp(/^\d{1,9}(,\d{1,9})*$/);
//skn数量控制,20
var regrex_special_prds_20 = new RegExp(/^\d{1,9}(,\d{1,9}){0,19}$/);
var regrex_double =new RegExp(/\d+(\.\d+)?/);
var regrex_small_digit =new RegExp(/[0]\.\d{1,2}/);
var operationEdit={
... ... @@ -95,7 +97,7 @@ var operationEdit={
display_name : '商品列表',
type : 'textarea',
default_value : '',
remark:"多个使用英文逗号(,)分割,例如:\"50017804,50019370\""
remark:"多个使用英文逗号(,)分割,最多20个,例如:\"50017804,50019370\""
},
{
name:'num' ,
... ... @@ -380,7 +382,7 @@ var operationEdit={
case _g.config.Needpaygift.enName:
var goods_list = _reqData["data"]["goods_list"];
var add_cost = _reqData["data"]["add_cost"];
result = regrex_double.test(add_cost) && regrex_special_prds.test(goods_list);
result = regrex_double.test(add_cost) && regrex_special_prds_20.test(goods_list);
break;
//满X免1
case _g.config.Cheapestfree.enName:
... ...