Authored by xuhongyun

build

... ... @@ -389,21 +389,9 @@ webpackJsonp([3],[
console.log("item.factoryGoodsName",item.factoryGoodsName);
});
$(document).on("change",":checkbox[name=seasons]",function(){
$(document).on("change",":radio[name=seasons]",function(){
var value=$(this).val();
var c=$(":checkbox[name=seasons]");
if($(this).is(":checked")){
if(value=="seasons"){
c.slice(0,3).prop("checked",false);
}else{
c.eq(3).prop("checked",false);
}
}
var arr=[];
$(":checked[name=seasons]").each(function(){
arr.push($(this).val())
});
$("#seasons").val(arr.join('|'));
$("#seasons").val($(this).val());
});
$(document).on("change",".attr_input",function(){
var item=ag.rows[$(this).data("index")];
... ...
... ... @@ -327,7 +327,7 @@ webpackJsonp([7],[
$("#isLimited").val(basicInfo.isLimited);
$("#isOutlets").val(basicInfo.isOutLets);
$(":checkbox[name=seasons]").each(function(){
$(":radio[name=seasons]").each(function(){
if(basicInfo.seasons!=null&&basicInfo.seasons!=undefined&&basicInfo.seasons!=''&&
basicInfo.seasons.indexOf($(this).val())>-1){
$(this).prop("checked",true)
... ... @@ -411,9 +411,9 @@ webpackJsonp([7],[
$('#product-ext').html(common.util.__template2($('#productExtBoTemp').html(), productExtBo));
$(document).on("change",":checkbox[name=seasons]",function(){
$(document).on("change",":radio[name=seasons]",function(){
var value=$(this).val();
var c=$(":checkbox[name=seasons]");
/*var c=$(":checkbox[name=seasons]");
if($(this).is(":checked")){
if(value=="seasons"){
c.slice(0,3).prop("checked",false);
... ... @@ -424,8 +424,8 @@ webpackJsonp([7],[
var arr=[];
$(":checked[name=seasons]").each(function(){
arr.push($(this).val())
});
$("#seasons").val(arr.join(','));
});*/
$("#seasons").val($(this).val());
});
$(document).on("change",":radio[name=isOutLets]",function(){
... ...
... ... @@ -216,16 +216,16 @@
<label class="col-sm-1 control-label">适销季<span class="red">*</span></label>
<div class="col-sm-4">
<label class="radio-inline">
<input type="checkbox" name="seasons" value="spring">春秋</label>
<input type="radio" name="seasons" value="spring">春秋</label>
<label class="radio-inline">
<input type="checkbox" name="seasons" value="summer"></label>
<input type="radio" name="seasons" value="summer"></label>
<!-- <label class="radio-inline">
<input type="checkbox" name="seasons" value="autumn"></label> -->
<label class="radio-inline">
<input type="checkbox" name="seasons" value="winter"></label>
<input type="radio" name="seasons" value="winter"></label>
<label class="radio-inline">
<input type="checkbox" name="seasons" value="seasons">四季</label>
<input type="hidden" id="seasons" name="seasons" value="[[seasons||'seasons']]" for="checkbox" placeholder="年龄层" />
<input type="radio" name="seasons" value="seasons">四季</label>
<input type="hidden" id="seasons" name="seasons" value="[[seasons||'seasons']]" for="radio" placeholder="年龄层" />
</div>
</div>
... ...
... ... @@ -18,8 +18,13 @@
<script type="text/template" id="addInfoTemp">
[[each data as b index]]
[[if b.attributeName != '流行元素']]
<div class="attribute-group form-group">
<label>[[b.attributeName]]</label>
[[if b.attributeName == '制作工艺']]
<label>工艺元素:</label>
[[else]]
<label>[[b.attributeName]]</label>
[[/if]]
[[if b.inputType=='select']]
<div style="display: inline-block;width: 280px;">
<select class="form-control" id="[[b.attributeId]]" value="[[b.selectedValues||'']]">
... ... @@ -39,6 +44,7 @@
[[/if]]
</div>
[[/if]]
[[/each]]
<!-- <div id="brandModelWrap" class="form-group">
<label>品牌款型:</label>
... ...
... ... @@ -91,16 +91,16 @@
<div class="col-sm-3">
<label>适销季<span class="red">*</span>:</label>
<label>
<input type="checkbox" name="seasons" value="spring">春秋</label>
<input type="radio" name="seasons" value="spring">春秋</label>
<label >
<input type="checkbox" name="seasons" value="summer"></label>
<input type="radio" name="seasons" value="summer"></label>
<!-- <label >
<input type="checkbox" name="seasons" value="autumn"></label> -->
<label >
<input type="checkbox" name="seasons" value="winter"></label>
<input type="radio" name="seasons" value="winter"></label>
<label >
<input type="checkbox" name="seasons" value="seasons">四季</label>
<input type="hidden" id="seasons" name="seasons" value="[[seasons||'seasons']]" for="checkbox" placeholder="年龄层" />
<input type="radio" name="seasons" value="seasons">四季</label>
<input type="hidden" id="seasons" name="seasons" value="[[seasons||'seasons']]" for="radio" placeholder="年龄层" />
</div>
<div class="col-sm-3">
... ...