Showing
1 changed file
with
5 additions
and
3 deletions
1 | var $ = require('jquery'), | 1 | var $ = require('jquery'), |
2 | - common = require('../../../../common/common'); | 2 | + common = require('../../../../common/common'); |
3 | var edit = require('../../../../common/edit'); | 3 | var edit = require('../../../../common/edit'); |
4 | var jsonUtils=require('./jsonUtils'); | 4 | var jsonUtils=require('./jsonUtils'); |
5 | var promotionInfoRefresh=require('./promotionInfoRefresh'); | 5 | var promotionInfoRefresh=require('./promotionInfoRefresh'); |
6 | console.log("operationEdit in"); | 6 | console.log("operationEdit in"); |
7 | var regrex_special_prds = new RegExp(/^\d{1,9}(,\d{1,9})*$/); | 7 | var regrex_special_prds = new RegExp(/^\d{1,9}(,\d{1,9})*$/); |
8 | +//skn数量控制,20 | ||
9 | +var regrex_special_prds_20 = new RegExp(/^\d{1,9}(,\d{1,9}){0,19}$/); | ||
8 | var regrex_double =new RegExp(/\d+(\.\d+)?/); | 10 | var regrex_double =new RegExp(/\d+(\.\d+)?/); |
9 | var regrex_small_digit =new RegExp(/[0]\.\d{1,2}/); | 11 | var regrex_small_digit =new RegExp(/[0]\.\d{1,2}/); |
10 | var operationEdit={ | 12 | var operationEdit={ |
@@ -95,7 +97,7 @@ var operationEdit={ | @@ -95,7 +97,7 @@ var operationEdit={ | ||
95 | display_name : '商品列表', | 97 | display_name : '商品列表', |
96 | type : 'textarea', | 98 | type : 'textarea', |
97 | default_value : '', | 99 | default_value : '', |
98 | - remark:"多个使用英文逗号(,)分割,例如:\"50017804,50019370\"" | 100 | + remark:"多个使用英文逗号(,)分割,最多20个,例如:\"50017804,50019370\"" |
99 | }, | 101 | }, |
100 | { | 102 | { |
101 | name:'num' , | 103 | name:'num' , |
@@ -380,7 +382,7 @@ var operationEdit={ | @@ -380,7 +382,7 @@ var operationEdit={ | ||
380 | case _g.config.Needpaygift.enName: | 382 | case _g.config.Needpaygift.enName: |
381 | var goods_list = _reqData["data"]["goods_list"]; | 383 | var goods_list = _reqData["data"]["goods_list"]; |
382 | var add_cost = _reqData["data"]["add_cost"]; | 384 | var add_cost = _reqData["data"]["add_cost"]; |
383 | - result = regrex_double.test(add_cost) && regrex_special_prds.test(goods_list); | 385 | + result = regrex_double.test(add_cost) && regrex_special_prds_20.test(goods_list); |
384 | break; | 386 | break; |
385 | //满X免1 | 387 | //满X免1 |
386 | case _g.config.Cheapestfree.enName: | 388 | case _g.config.Cheapestfree.enName: |
-
Please register or login to post a comment