Merge branch 'develop' of git.dev.yoho.cn:platform/yohobuy-portal-fe into develop
Showing
5 changed files
with
7 additions
and
8 deletions
@@ -32,7 +32,7 @@ var dist_dir = { | @@ -32,7 +32,7 @@ var dist_dir = { | ||
32 | }; | 32 | }; |
33 | 33 | ||
34 | var cdn_domain = 'http://cdn.yoho.cn/'; | 34 | var cdn_domain = 'http://cdn.yoho.cn/'; |
35 | -var md5=crypto.createHash('md5').update(new Date().toString()).digest('hex');; | 35 | +var md5="-"+crypto.createHash('md5').update(new Date().toString()).digest('hex');; |
36 | 36 | ||
37 | var ftpConfig = { | 37 | var ftpConfig = { |
38 | host: '218.94.75.58', | 38 | host: '218.94.75.58', |
@@ -4,10 +4,11 @@ var edit=require('../common/edit'); | @@ -4,10 +4,11 @@ var edit=require('../common/edit'); | ||
4 | var e=new edit("#basicForm"); | 4 | var e=new edit("#basicForm"); |
5 | //brandTonality | 5 | //brandTonality |
6 | e.on("validate",function(){ | 6 | e.on("validate",function(){ |
7 | - var num=+$("#brandTonality").val(); | ||
8 | - if(num>100||num<1){ | 7 | + var num=$.trim($("#brandTonality").val()); |
8 | + if(+num>100||+num<1){ | ||
9 | return "调性指数(范围:1-100)"; | 9 | return "调性指数(范围:1-100)"; |
10 | } | 10 | } |
11 | + | ||
11 | return true; | 12 | return true; |
12 | }); | 13 | }); |
13 | e.init(); | 14 | e.init(); |
@@ -26,7 +26,6 @@ for (key in config.spm.dependencies) { | @@ -26,7 +26,6 @@ for (key in config.spm.dependencies) { | ||
26 | } | 26 | } |
27 | var entry={index:[],libs:[]}; | 27 | var entry={index:[],libs:[]}; |
28 | 28 | ||
29 | -console.log(commons); | ||
30 | entry.libs=commons; | 29 | entry.libs=commons; |
31 | 30 | ||
32 | 31 | ||
@@ -38,7 +37,6 @@ var readfile=function(dir,callback){ | @@ -38,7 +37,6 @@ var readfile=function(dir,callback){ | ||
38 | if (fs.statSync(filePath).isFile() && /.*\.js$/i.test(file)) { | 37 | if (fs.statSync(filePath).isFile() && /.*\.js$/i.test(file)) { |
39 | callback && callback(filePath); | 38 | callback && callback(filePath); |
40 | }else{ | 39 | }else{ |
41 | - console.log(file+"***********************"); | ||
42 | if(file!="common"&&file!="util"){ | 40 | if(file!="common"&&file!="util"){ |
43 | readfile(filePath,callback); | 41 | readfile(filePath,callback); |
44 | } | 42 | } |
1 | -exports.staticDir = {"test":{"path":"/dist"},"preview":{"path":"http://cdn.yoho.cn/yohobuy-portal/0.1.0"},"production":{"path":"http://cdn.yoho.cn/yohobuy-portal/0.1.0"}} | ||
1 | +exports.staticDir = {"test":{"path":"/dist"},"preview":{"path":"http://cdn.yoho.cn/yohobuy-portal/0.1.0","md5":"-26113ff46bc61c952a8a18344e61b2c5"},"production":{"path":"http://cdn.yoho.cn/yohobuy-portal/0.1.0","md5":"-26113ff46bc61c952a8a18344e61b2c5"}} |
@@ -208,9 +208,9 @@ | @@ -208,9 +208,9 @@ | ||
208 | </div> | 208 | </div> |
209 | 209 | ||
210 | <div class="form-group"> | 210 | <div class="form-group"> |
211 | - <label class="col-sm-2 control-label">调性指数</label> | 211 | + <label class="col-sm-2 control-label">调性指数<span class="red">*</span></label> |
212 | <div class="col-sm-2"> | 212 | <div class="col-sm-2"> |
213 | - <input type="number" id="brandTonality" name="brandTonality" class="form-control" pattern="^[0-100]$" placeholder="调性指数(范围:1-100)" value="{{brandTonality}}"> | 213 | + <input type="number" id="brandTonality" name="brandTonality" class="form-control" placeholder="调性指数(范围:1-100)" value="{{brandTonality}}"> |
214 | </div> | 214 | </div> |
215 | </div> | 215 | </div> |
216 | 216 |
-
Please register or login to post a comment