Authored by weiqingting

品牌调性指数非必选

... ... @@ -7,10 +7,11 @@ var edit=require('../common/edit');
//brandTonality
e.on("validate",function(){
var num=$.trim($("#brandTonality").val());
if(+num>100||+num<1){
return "调性指数(范围:1-100)";
if(num){
if(+num>100||+num<1){
return "调性指数(范围:1-100)";
}
}
return true;
});
e.init();
... ...
... ... @@ -222,7 +222,7 @@
</div>
<div class="form-group">
<label class="col-sm-2 control-label">调性指数<span class="red">*</span></label>
<label class="col-sm-2 control-label">调性指数</label>
<div class="col-sm-2">
<input type="number" id="brandTonality" name="brandTonality" class="form-control" placeholder="调性指数(范围:1-100)" value="{{brandTonality}}">
</div>
... ...