Authored by weiqingting

webpack整体修改

... ... @@ -39,7 +39,7 @@ var ftpConfig = {
gulp.task('default',["sass","js"]);
gulp.task('start',["default-watch","server"]);
gulp.task('start',["default","default-watch","server"]);
gulp.task('build',["buildjs","assets","static-config"]);
... ...
... ... @@ -6,7 +6,7 @@ var edit=require('../common/edit');
e.on("validate",function(){
var num=+$("#brandTonality").val();
if(!!num){
if(!(num<100&&num>1)){
if(!(num<100&&num>0)){
return "调性指数(范围:1-100)";
}
}
... ...
... ... @@ -196,7 +196,7 @@ edit.prototype={
.add("textarea",that.el)
.each(function() {
var id = $(this).attr("id");
var value =$.trim($(this).val());
var value =$.trim($(this).attr("value")||$(this).val());
var name=$(this).attr("placeholder")&&!(/^\d+$/.test($(this).attr("placeholder")))?$(this).attr("placeholder").replace(/请填写/g,''):$(this).parents(".form-group").find("label").text().replace(/\*/g,'');
var rule = [];
... ...
... ... @@ -30,3 +30,5 @@ $('.leftpanel .nav .parent>a').click(function() {
}
return false;
});
... ...
... ... @@ -92,12 +92,12 @@ require('../util/jquery.gritter');
if (res.data.code == "200") {
history.go(-1);
} else {
e.$tip("提交失败");
e.$tip(res.data.message);
}
return false;
},
option.error = function(res) {
e.$tip("提交失败");
e.$tip(res.data.message);
}
callback && callback(option.data);
});
... ... @@ -111,12 +111,12 @@ require('../util/jquery.gritter');
if (res.data.code == "200") {
history.go(-1);
} else {
e.$tip("提交失败");
e.$tip(res.data.message);
}
return false;
},
option.error = function(res) {
e.$tip("提交失败");
e.$tip(res.data.message);
}
callback && callback(option.data);
});
... ...
... ... @@ -150,7 +150,7 @@
<div class="form-group">
<label for="name" class="col-sm-2 control-label">指定商品</label>
<div class="col-sm-2">
<input type="text" id="limitSkn" placeholder="SKN/SKU/SKC" class="form-control" value="{{limitSkn}}">
<input type="number" id="limitSkn" placeholder="SKN/SKU/SKC" class="form-control" value="{{limitSkn}}">
</div>
</div>
... ...