Showing
5 changed files
with
24 additions
and
30 deletions
@@ -216,16 +216,16 @@ | @@ -216,16 +216,16 @@ | ||
216 | <label class="col-sm-1 control-label">适销季<span class="red">*</span></label> | 216 | <label class="col-sm-1 control-label">适销季<span class="red">*</span></label> |
217 | <div class="col-sm-4"> | 217 | <div class="col-sm-4"> |
218 | <label class="radio-inline"> | 218 | <label class="radio-inline"> |
219 | - <input type="checkbox" name="seasons" value="spring">春秋</label> | 219 | + <input type="radio" name="seasons" value="spring">春秋</label> |
220 | <label class="radio-inline"> | 220 | <label class="radio-inline"> |
221 | - <input type="checkbox" name="seasons" value="summer">夏</label> | 221 | + <input type="radio" name="seasons" value="summer">夏</label> |
222 | <!-- <label class="radio-inline"> | 222 | <!-- <label class="radio-inline"> |
223 | <input type="checkbox" name="seasons" value="autumn">秋</label> --> | 223 | <input type="checkbox" name="seasons" value="autumn">秋</label> --> |
224 | <label class="radio-inline"> | 224 | <label class="radio-inline"> |
225 | - <input type="checkbox" name="seasons" value="winter">冬</label> | 225 | + <input type="radio" name="seasons" value="winter">冬</label> |
226 | <label class="radio-inline"> | 226 | <label class="radio-inline"> |
227 | - <input type="checkbox" name="seasons" value="seasons">四季</label> | ||
228 | - <input type="hidden" id="seasons" name="seasons" value="[[seasons||'seasons']]" for="checkbox" placeholder="年龄层" /> | 227 | + <input type="radio" name="seasons" value="seasons">四季</label> |
228 | + <input type="hidden" id="seasons" name="seasons" value="[[seasons||'seasons']]" for="radio" placeholder="年龄层" /> | ||
229 | </div> | 229 | </div> |
230 | 230 | ||
231 | </div> | 231 | </div> |
@@ -18,8 +18,13 @@ | @@ -18,8 +18,13 @@ | ||
18 | 18 | ||
19 | <script type="text/template" id="addInfoTemp"> | 19 | <script type="text/template" id="addInfoTemp"> |
20 | [[each data as b index]] | 20 | [[each data as b index]] |
21 | + [[if b.attributeName != '流行元素']] | ||
21 | <div class="attribute-group form-group"> | 22 | <div class="attribute-group form-group"> |
22 | - <label>[[b.attributeName]]:</label> | 23 | + [[if b.attributeName == '制作工艺']] |
24 | + <label>工艺元素:</label> | ||
25 | + [[else]] | ||
26 | + <label>[[b.attributeName]]:</label> | ||
27 | + [[/if]] | ||
23 | [[if b.inputType=='select']] | 28 | [[if b.inputType=='select']] |
24 | <div style="display: inline-block;width: 280px;"> | 29 | <div style="display: inline-block;width: 280px;"> |
25 | <select class="form-control" id="[[b.attributeId]]" value="[[b.selectedValues||'']]"> | 30 | <select class="form-control" id="[[b.attributeId]]" value="[[b.selectedValues||'']]"> |
@@ -39,6 +44,7 @@ | @@ -39,6 +44,7 @@ | ||
39 | [[/if]] | 44 | [[/if]] |
40 | 45 | ||
41 | </div> | 46 | </div> |
47 | + [[/if]] | ||
42 | [[/each]] | 48 | [[/each]] |
43 | <!-- <div id="brandModelWrap" class="form-group"> | 49 | <!-- <div id="brandModelWrap" class="form-group"> |
44 | <label>品牌款型:</label> | 50 | <label>品牌款型:</label> |
@@ -91,16 +91,16 @@ | @@ -91,16 +91,16 @@ | ||
91 | <div class="col-sm-3"> | 91 | <div class="col-sm-3"> |
92 | <label>适销季<span class="red">*</span>:</label> | 92 | <label>适销季<span class="red">*</span>:</label> |
93 | <label> | 93 | <label> |
94 | - <input type="checkbox" name="seasons" value="spring">春秋</label> | 94 | + <input type="radio" name="seasons" value="spring">春秋</label> |
95 | <label > | 95 | <label > |
96 | - <input type="checkbox" name="seasons" value="summer">夏</label> | 96 | + <input type="radio" name="seasons" value="summer">夏</label> |
97 | <!-- <label > | 97 | <!-- <label > |
98 | <input type="checkbox" name="seasons" value="autumn">秋</label> --> | 98 | <input type="checkbox" name="seasons" value="autumn">秋</label> --> |
99 | <label > | 99 | <label > |
100 | - <input type="checkbox" name="seasons" value="winter">冬</label> | 100 | + <input type="radio" name="seasons" value="winter">冬</label> |
101 | <label > | 101 | <label > |
102 | - <input type="checkbox" name="seasons" value="seasons">四季</label> | ||
103 | - <input type="hidden" id="seasons" name="seasons" value="[[seasons||'seasons']]" for="checkbox" placeholder="年龄层" /> | 102 | + <input type="radio" name="seasons" value="seasons">四季</label> |
103 | + <input type="hidden" id="seasons" name="seasons" value="[[seasons||'seasons']]" for="radio" placeholder="年龄层" /> | ||
104 | </div> | 104 | </div> |
105 | 105 | ||
106 | <div class="col-sm-3"> | 106 | <div class="col-sm-3"> |
@@ -385,21 +385,9 @@ $(document).on("change",".w-goods-text",function(){ | @@ -385,21 +385,9 @@ $(document).on("change",".w-goods-text",function(){ | ||
385 | console.log("item.factoryGoodsName",item.factoryGoodsName); | 385 | console.log("item.factoryGoodsName",item.factoryGoodsName); |
386 | }); | 386 | }); |
387 | 387 | ||
388 | -$(document).on("change",":checkbox[name=seasons]",function(){ | 388 | +$(document).on("change",":radio[name=seasons]",function(){ |
389 | var value=$(this).val(); | 389 | var value=$(this).val(); |
390 | - var c=$(":checkbox[name=seasons]"); | ||
391 | - if($(this).is(":checked")){ | ||
392 | - if(value=="seasons"){ | ||
393 | - c.slice(0,3).prop("checked",false); | ||
394 | - }else{ | ||
395 | - c.eq(3).prop("checked",false); | ||
396 | - } | ||
397 | - } | ||
398 | - var arr=[]; | ||
399 | - $(":checked[name=seasons]").each(function(){ | ||
400 | - arr.push($(this).val()) | ||
401 | - }); | ||
402 | - $("#seasons").val(arr.join('|')); | 390 | + $("#seasons").val($(this).val()); |
403 | }); | 391 | }); |
404 | $(document).on("change",".attr_input",function(){ | 392 | $(document).on("change",".attr_input",function(){ |
405 | var item=ag.rows[$(this).data("index")]; | 393 | var item=ag.rows[$(this).data("index")]; |
@@ -123,7 +123,7 @@ function initInfo(basicInfo) { | @@ -123,7 +123,7 @@ function initInfo(basicInfo) { | ||
123 | $("#isLimited").val(basicInfo.isLimited); | 123 | $("#isLimited").val(basicInfo.isLimited); |
124 | $("#isOutlets").val(basicInfo.isOutLets); | 124 | $("#isOutlets").val(basicInfo.isOutLets); |
125 | 125 | ||
126 | - $(":checkbox[name=seasons]").each(function(){ | 126 | + $(":radio[name=seasons]").each(function(){ |
127 | if(basicInfo.seasons!=null&&basicInfo.seasons!=undefined&&basicInfo.seasons!=''&& | 127 | if(basicInfo.seasons!=null&&basicInfo.seasons!=undefined&&basicInfo.seasons!=''&& |
128 | basicInfo.seasons.indexOf($(this).val())>-1){ | 128 | basicInfo.seasons.indexOf($(this).val())>-1){ |
129 | $(this).prop("checked",true) | 129 | $(this).prop("checked",true) |
@@ -207,9 +207,9 @@ common.util.__ajax({ | @@ -207,9 +207,9 @@ common.util.__ajax({ | ||
207 | $('#product-ext').html(common.util.__template2($('#productExtBoTemp').html(), productExtBo)); | 207 | $('#product-ext').html(common.util.__template2($('#productExtBoTemp').html(), productExtBo)); |
208 | 208 | ||
209 | 209 | ||
210 | -$(document).on("change",":checkbox[name=seasons]",function(){ | 210 | +$(document).on("change",":radio[name=seasons]",function(){ |
211 | var value=$(this).val(); | 211 | var value=$(this).val(); |
212 | - var c=$(":checkbox[name=seasons]"); | 212 | + /*var c=$(":checkbox[name=seasons]"); |
213 | if($(this).is(":checked")){ | 213 | if($(this).is(":checked")){ |
214 | if(value=="seasons"){ | 214 | if(value=="seasons"){ |
215 | c.slice(0,3).prop("checked",false); | 215 | c.slice(0,3).prop("checked",false); |
@@ -220,8 +220,8 @@ $(document).on("change",":checkbox[name=seasons]",function(){ | @@ -220,8 +220,8 @@ $(document).on("change",":checkbox[name=seasons]",function(){ | ||
220 | var arr=[]; | 220 | var arr=[]; |
221 | $(":checked[name=seasons]").each(function(){ | 221 | $(":checked[name=seasons]").each(function(){ |
222 | arr.push($(this).val()) | 222 | arr.push($(this).val()) |
223 | - }); | ||
224 | - $("#seasons").val(arr.join(',')); | 223 | + });*/ |
224 | + $("#seasons").val($(this).val()); | ||
225 | }); | 225 | }); |
226 | 226 | ||
227 | $(document).on("change",":radio[name=isOutLets]",function(){ | 227 | $(document).on("change",":radio[name=isOutLets]",function(){ |
-
Please register or login to post a comment