Showing
2 changed files
with
5 additions
and
6 deletions
@@ -133,7 +133,7 @@ | @@ -133,7 +133,7 @@ | ||
133 | </div> | 133 | </div> |
134 | 134 | ||
135 | <div class="form-group"> | 135 | <div class="form-group"> |
136 | - <label class="col-sm-2 control-label">授权方</label> | 136 | + <label class="col-sm-2 control-label">授权方 <span class="red">*</span></label> |
137 | <div class="col-sm-8"> | 137 | <div class="col-sm-8"> |
138 | <label style="cursor: pointer;"><input type="checkbox" name="certParty" value="1"> 品牌授权</label> | 138 | <label style="cursor: pointer;"><input type="checkbox" name="certParty" value="1"> 品牌授权</label> |
139 | <label style="cursor: pointer;"><input type="checkbox" name="certParty" value="2"> 有货授权</label> | 139 | <label style="cursor: pointer;"><input type="checkbox" name="certParty" value="2"> 有货授权</label> |
@@ -18,12 +18,11 @@ var e = new edit("#basicForm", {bucket: "brandLogo"}); | @@ -18,12 +18,11 @@ var e = new edit("#basicForm", {bucket: "brandLogo"}); | ||
18 | 18 | ||
19 | //brandTonality | 19 | //brandTonality |
20 | e.on("validate", function () { | 20 | e.on("validate", function () { |
21 | - var num = $.trim($("#brandTonality").val()); | ||
22 | - if (num) { | ||
23 | - if (+num > 100 || +num < 1) { | ||
24 | - return "调性指数(范围:1-100)"; | ||
25 | - } | 21 | + var certParty_checked=$("input[name='certParty']").is(":checked"); |
22 | + if(certParty_checked.length<1){ | ||
23 | + return "授权方不能为空!" | ||
26 | } | 24 | } |
25 | + | ||
27 | if (authorizeCertList.length < 1){ | 26 | if (authorizeCertList.length < 1){ |
28 | return "品牌授权书不能为空!" | 27 | return "品牌授权书不能为空!" |
29 | } | 28 | } |
-
Please register or login to post a comment