Authored by chenchao

required

... ... @@ -133,7 +133,7 @@
</div>
<div class="form-group">
<label class="col-sm-2 control-label">授权方</label>
<label class="col-sm-2 control-label">授权方 <span class="red">*</span></label>
<div class="col-sm-8">
<label style="cursor: pointer;"><input type="checkbox" name="certParty" value="1"> 品牌授权</label>&nbsp;&nbsp;
<label style="cursor: pointer;"><input type="checkbox" name="certParty" value="2"> 有货授权</label>&nbsp;&nbsp;
... ...
... ... @@ -18,12 +18,11 @@ var e = new edit("#basicForm", {bucket: "brandLogo"});
//brandTonality
e.on("validate", function () {
var num = $.trim($("#brandTonality").val());
if (num) {
if (+num > 100 || +num < 1) {
return "调性指数(范围:1-100)";
}
var certParty_checked=$("input[name='certParty']").is(":checked");
if(certParty_checked.length<1){
return "授权方不能为空!"
}
if (authorizeCertList.length < 1){
return "品牌授权书不能为空!"
}
... ...