|
@@ -0,0 +1,381 @@
|
|
|
+<!DOCTYPE HTML>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta name="renderer" content="webkit|ie-comp|ie-stand">
|
|
|
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
+ <meta name="viewport"
|
|
|
+ content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
|
|
|
+ <meta http-equiv="Cache-Control" content="no-siteapp"/>
|
|
|
+<#include "/base/add_base.ftl">
|
|
|
+
|
|
|
+ <style>
|
|
|
+ .tit{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
|
|
|
+ .tit:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
|
|
|
+ .tit-2{position: relative;text-align: left;font-size: 16px;padding-left: 10px;color: #50a2ea;}
|
|
|
+ .tit-2:after{content: '';position: absolute;left: 0;top: 50%;height: 6px;width: 6px;border-radius: 6px;margin-top: -3px; background-color: #32a3d8;}
|
|
|
+ #province select{margin-right:10px; width:100px;height: 31px;-webkit-appearance:none !important;appearance:none;background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;padding-left:3px;padding-right: 25px;}
|
|
|
+ .ac_results li a {white-space: nowrap;text-decoration:none;display:block;color:#05a;padding:1px 3px}
|
|
|
+ .ac_results li {border:1px solid #fff}
|
|
|
+ .ac_results li a span {float:right}
|
|
|
+ .select-box{background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;}
|
|
|
+ .select-box select{-webkit-appearance:none !important;background-color: transparent; appearance:none;padding-right: 15px;}
|
|
|
+ .dalog-ask{position: absolute;left:60%;top:0;-webkit-transform: translateY(-30%);transform: translateY(-30%);display: none;background-color: #fff;z-index: 10;}
|
|
|
+ .tag{ width:300px; min-height:300px; border:1px solid #32a3d8; position:relative;background-color: #fff;line-height: 1.5;padding: 10px 12px;}
|
|
|
+ .tag em{display:block; border-width:15px; position:absolute; top:30%; left:-30px;border-style:solid dashed dashed; border-color:transparent #32a3d8 transparent transparent;font-size:0; line-height:0;}
|
|
|
+ .time-line-list{list-style: none;width: 100%;margin-left: -20px;}
|
|
|
+ .time-line-list>li{position: relative;float: left; text-align: center;width: 100px;overflow: hidden;white-space: nowrap;word-break: break-all;padding: 2px 0;}
|
|
|
+ .time-line-list .number{display: inline-block; padding: 2px; background: #32a3d8;border: 2px solid #fff;box-shadow:0 0 0 1px #32a3d8;width: 20px;height: 20px;color: #fff;line-height: 20px;border-radius: 50%;}
|
|
|
+ .time-line-list>li:before{content:'';position: absolute;height: 1px;width: 30%;right:0;top: 15px; background-color: #32a3d8;}
|
|
|
+ .time-line-list>li:after{content: '';position: absolute;height: 1px;width: 30%;left: 0;top: 15px;background:#32a3d8;}
|
|
|
+ .time-line-list>li:first-child:after,.time-line-list>li:last-child:before{display: none;}
|
|
|
+ .time-line-list .arrow{border-width:7px; position:absolute; left:25%; top:9px;border-style:solid dashed dashed; border-color:transparent transparent transparent #32a3d8;font-size:0; line-height:0;}
|
|
|
+ .time-line-list>li:first-child .arrow{display: none;}
|
|
|
+ .table-bg th{background-color: #e2f6ff;}
|
|
|
+ .update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
|
|
|
+ .msg-phone{height: 35px;line-height: 35px;}
|
|
|
+ .col-sm-1{width: 10%;}
|
|
|
+ .all_down{text-decoration: underline;color: #00c;}
|
|
|
+ </style>
|
|
|
+ <title>添加产品 - 产品管理 - RST</title>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<nav class="breadcrumb"><i class="Hui-iconfont"></i> 首页
|
|
|
+ <span class="c-gray en">/</span> 产品管理
|
|
|
+ <span class="c-gray en">/</span> 添加产品
|
|
|
+ <a class="btn radius r"
|
|
|
+ href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a>
|
|
|
+ <a class="btn radius r"
|
|
|
+ href="javascript:history.back(-1);" title="后退"><i class="Hui-iconfont"></i></a>
|
|
|
+</nav>
|
|
|
+<article class="page-container" style="padding: 10px;">
|
|
|
+ <div class="pd-20 cl">
|
|
|
+ <form action="${path}/admin/product/update_product" method="post" class="form form-horizontal" id="form-order-add" onkeydown="if(event.keyCode==13)return false;">
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-3">
|
|
|
+ <div class="tit-2">产品基本信息</div>
|
|
|
+ </label>
|
|
|
+ <div class="formControls col-9">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <input type="hidden" id="productId" name="productId" value="${product.productId!''}">
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>产品名称:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input type="text" class="input-text" value="${product.productName!''}" placeholder="填写产品名称" id="productName" name="productName" datatype="*1-32" errormsg="产品名称格式只支持1-32个字符!" >
|
|
|
+ </div>
|
|
|
+ <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>产品简称:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input type="text" class="input-text" value="${product.productAbbreviation!''}" placeholder="填写产品简称" id="productAbbreviation" name="productAbbreviation" datatype="*1-17" errormsg="产品简称格式只支持1-17个字符!">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>产品类型:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2" style="">
|
|
|
+ <span class="select-box">
|
|
|
+ <select class="select" id="productType" name="productType" >
|
|
|
+ <#if productTypeList??>
|
|
|
+ <#list productTypeList as productType>
|
|
|
+ <option value="${productType.typeId}" <#if product.productType == productType.typeId>selected</#if>>${productType.typeName}</option>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <label class="form-label col-1 col-sm-1">产品型号:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input type="text" class="input-text" value="${product.productAbbreviation!''}" placeholder="填写产品型号" id="productNumber" name="productNumber" datatype="*0-15" errormsg="产品型号格式不正确!">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <#-- <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>可批发:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2 skin-minimal">
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" id="productWholesale-1" name="productWholesale" value="1" <#if product.productWholesale ==1 >checked</#if>>
|
|
|
+ <label for="productWholesale-1">可批发</label>
|
|
|
+ </div>
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" id="productWholesale-2" name="productWholesale" value="2" <#if product.productWholesale ==2 >checked</#if>>
|
|
|
+ <label for="productWholesale-2">不可批发</label>
|
|
|
+ </div>
|
|
|
+ </div>-->
|
|
|
+
|
|
|
+ <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>售后检测:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2 skin-minimal">
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" id="productIsDetection-1" name="productIsDetection" value="1" <#if product.productIsDetection ==1 >checked</#if>>
|
|
|
+ <label for="productIsDetection-1">需要</label>
|
|
|
+ </div>
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" id="productIsDetection-2" name="productIsDetection" value="2" <#if product.productIsDetection ==2 >checked</#if>>
|
|
|
+ <label for="productIsDetection-2">不需要</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>使用区域:</label>
|
|
|
+ <div class="formControls col-9 col-sm-9 skin-minimal" >
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="checkbox" class="all_checkbox" id="productAreaRela-x" name="productAreaRela" value="0" >
|
|
|
+ <label for="productAreaRela-x">全部</label>
|
|
|
+ </div>
|
|
|
+ <#if productAreaList??>
|
|
|
+ <#list productAreaList as productArea>
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="checkbox" class="son_checkbox" id="productAreaRela-${productArea_index}" name="productAreaRela" value="${productArea.productAreaId}" <#if productArea.isUse == 1>checked</#if> >
|
|
|
+ <label for="productAreaRela-${productArea_index}">${productArea.productAreaName}</label>
|
|
|
+ </div>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-1 col-sm-1">产品备注:</label>
|
|
|
+ <div class="formControls col-9 col-sm-9" style="">
|
|
|
+ <textarea id="productRemark" name="productRemark" style="width: 100%;">${product.productRemark!''}</textarea>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl">
|
|
|
+ <label class="form-label col-3">
|
|
|
+ <div class="tit-2">产品颜色信息</div>
|
|
|
+ </label>
|
|
|
+ <div class="formControls col-9">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="margin-left: 25px;">
|
|
|
+ <div class="formControls col-11 col-sm-11">
|
|
|
+ <input type="button" class="btn btn-primary" onclick="show_add_color()" value="添加颜色" >
|
|
|
+
|
|
|
+ <table class="table table-border table-bg table-bordered" style="margin-top: 10px;" id="all_add_product">
|
|
|
+ <thead>
|
|
|
+ <tr class="text-c" id="table1">
|
|
|
+ <th width="30" ><span class="c-red">*</span>颜色名称</th>
|
|
|
+ <th width="30" ><span class="c-red">*</span>颜色简称</th>
|
|
|
+ <th width="10">售价</th>
|
|
|
+ <th width="10">原价</th>
|
|
|
+ <th width="30"><span class="c-red">*</span>69码</th>
|
|
|
+ <th width="30">京东SKU</th>
|
|
|
+ <th width="10"><span class="c-red">*</span>重量(g)</th>
|
|
|
+ <th width="10">型号</th>
|
|
|
+ <th width="10"><span class="c-red">*</span>是否为水机</th>
|
|
|
+ <th width="10"><span class="c-red">*</span>状态</th>
|
|
|
+ <th width="20">图片</th>
|
|
|
+ <th width="5">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="add_color_id">
|
|
|
+ <#if productColorList?? && (productColorList?size > 0) >
|
|
|
+ <#list productColorList as productColor>
|
|
|
+ <tr class="text-c">
|
|
|
+ <input type="hidden" class="colorId" value="${productColor.colorId!''}">
|
|
|
+ <input type="hidden" class="isUpdate" value="2">
|
|
|
+ <td width="30" class="colorName">${productColor.colorName!''}</td>
|
|
|
+ <td width="30" class="colorAbbreviation">${productColor.colorAbbreviation!''}</td>
|
|
|
+ <td width="10" class="colorDiscount">${productColor.colorDiscount!''}</td>
|
|
|
+ <td width="10" class="colorPrice">${productColor.colorPrice!''}</td>
|
|
|
+ <td width="30" class="colorBar">${productColor.colorBar!''}</td>
|
|
|
+ <td width="30" class="colorJdProductId">${productColor.colorJdProductId!''}</td>
|
|
|
+ <td width="10" class="colorIsWeight">${productColor.colorIsWeight!''}</td>
|
|
|
+ <td width="10" class="colorMode">${productColor.colorMode!''}</td>
|
|
|
+ <td width="10">
|
|
|
+ <span class="colorIsMachineMsg"><#if productColor.colorIsMachine==1>水机产品</#if><#if productColor.colorIsMachine==2>其他产品</#if></span>
|
|
|
+ <input type="hidden" class="colorIsMachine" value="${productColor.colorIsMachine!''}">
|
|
|
+ </td>
|
|
|
+ <td width="10" >
|
|
|
+ <span class="colorStatusMsg"><#if productColor.colorStatus==1>使用</#if><#if productColor.colorStatus==2>禁用</#if></span>
|
|
|
+ <input type="hidden" class="colorStatus" value="${productColor.colorStatus!''}">
|
|
|
+ </td>
|
|
|
+ <td width="20" >
|
|
|
+ <img style="width: 40px;" src="<#if productColor.colorPicture?? && productColor.colorPicture?length gt 0 >${path}/${productColor.colorPicture}</#if>" class="colorPictureMsg" >
|
|
|
+ <input type="hidden" class="colorPicture" value="${productColor.colorPicture}">
|
|
|
+ </td>
|
|
|
+ <td width="5">
|
|
|
+ <a href="javascript:void(0)" class="del_product all_down" onclick="updTr($(this))" >修改</a>
|
|
|
+ <a href="javascript:void(0)" class="del_product all_down" onclick="delTr($(this))" >删除</a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </#list>
|
|
|
+ </#if>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div id="addColorHtml" style="display: none">
|
|
|
+ <input type="hidden" class="colorId" value="">
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>颜色名称:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input type="text" class="input-text add_color str colorName" value="" placeholder="填写颜色名称" id="" name="" myMinlength="1" myMaxlength="32" errormsg="颜色名称必填,只能填写1-32个字符!" >
|
|
|
+ </div>
|
|
|
+ <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>产品简称:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input type="text" class="input-text add_color str colorAbbreviation" value="" placeholder="填写颜色简称" id="" name="" myMinlength="1" myMaxlength="15" errormsg="颜色简称必填,只能填写1-15个字符!">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1">售价:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input type="text" class="input-text add_color num colorDiscount" value="0" placeholder="售价" id="" name="" onkeyup="keyFun($(this),9999,1)" onpaste="keyFun($(this),9999,1)">
|
|
|
+ </div>
|
|
|
+ <label class="form-label col-1 col-sm-1">市场价:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input type="text" class="input-text add_color num colorPrice" value="0" placeholder="市场价" id="" name="" onkeyup="keyFun($(this),9999,1)" onpaste="keyFun($(this),9999,1)">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>69码:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input type="text" class="input-text add_color str colorBar" value="" placeholder="69码" id="" name="" myMinlength="1" myMaxlength="20" errormsg="69码必填,只能填写1-20个字符!" >
|
|
|
+ </div>
|
|
|
+ <label class="form-label col-1 col-sm-1">京东SKU:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input type="text" class="input-text add_color str colorJdProductId" value="" placeholder="京东SKU" id="" name="" myMaxlength="20" errormsg="京东SKU非必填,可填写1-20个字符!">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>重量:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input type="text" class="input-text add_color num colorIsWeight" value="0" placeholder="重量" id="" name="" onkeyup="keyFun($(this),9999,1)" onpaste="keyFun($(this),9999,1)" >
|
|
|
+ </div>
|
|
|
+ <label class="form-label col-1 col-sm-1">型号:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input type="text" class="input-text add_color str colorMode" value="" placeholder="型号" id="" name="" myMaxlength="30" errormsg="型号非必填,可填写1-30个字符!">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1">介绍图:</label>
|
|
|
+ <div class="formControls col-2 col-sm-2 upload_color_class">
|
|
|
+ <input type="file" class="color_file" name="file" id="upload_color_img" style="display: none">
|
|
|
+ <div class="download_file"><a href="javascript:void(0)" class="del_product all_down" onclick="fileOnclick(this)">上传图片</a></div>
|
|
|
+ <input type="hidden" class="add_color str colorPicture " name="" id="" value="" >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>是否为水机:</label>
|
|
|
+ <div class="formControls col-5 col-sm-5 skin-minimal">
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" class="colorIsMachine" id="colorIsMachine-1" name="colorIsMachine" value="1" >
|
|
|
+ <label for="colorIsMachine-1">水机产品</label>
|
|
|
+ </div>
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" class="colorNoMachine" id="colorIsMachine-2" name="colorIsMachine" value="2" checked>
|
|
|
+ <label for="colorIsMachine-2">其他产品</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1"><span class="c-red">*</span>状态:</label>
|
|
|
+ <div class="formControls col-5 col-sm-5 skin-minimal">
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" class="colorIsStatus" id="colorStatus-1" name="colorStatus" value="1" checked>
|
|
|
+ <label for="colorStatus-1">使用</label>
|
|
|
+ </div>
|
|
|
+ <div class="radio-box">
|
|
|
+ <input type="radio" class="colorNoStatus" id="colorStatus-2" name="colorStatus" value="2" >
|
|
|
+ <label for="colorStatus-2">停用</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row cl" id="" style="">
|
|
|
+ <label class="form-label col-1 col-sm-1"></label>
|
|
|
+ <div class="formControls col-2 col-sm-2">
|
|
|
+ <input type="button" class="btn btn-primary add-color-button" onclick="add_color()" value="添加" >
|
|
|
+ <input style="margin-left: 10px;" type="button" class="btn btn-default cancel-color-button" onclick="cancel_color()" value="取消" >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <input type="hidden" id="colorListJson" name="colorListJson" value="" >
|
|
|
+ <input type="hidden" id="productAreaRelaStr" name="productAreaRelaStr" value="" >
|
|
|
+
|
|
|
+ <div class="row cl" style="margin-bottom: 20px">
|
|
|
+ <div class="col-2 col-sm-2 col-offset-3">
|
|
|
+ <button class="btn btn-block btn-primary size-XL" type="submit">确认修改</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+</article>
|
|
|
+
|
|
|
+<script type="text/javascript">
|
|
|
+ var url_path = "${path}";
|
|
|
+</script>
|
|
|
+<#--时间控件-->
|
|
|
+<script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
|
|
|
+<script type="text/javascript" src="${path}/common/lib/jquery/1.9.1/ajaxfileupload.js"></script>
|
|
|
+
|
|
|
+<script type="text/javascript">
|
|
|
+ $('.skin-minimal input').iCheck({
|
|
|
+ checkboxClass: 'icheckbox-blue',
|
|
|
+ radioClass: 'iradio-blue',
|
|
|
+ increaseArea: '20%'
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ var isSonCh = false;
|
|
|
+ //选中
|
|
|
+ $('.all_checkbox').on('ifChecked', function(event){
|
|
|
+ isSonCh = false;
|
|
|
+ $(".son_checkbox").iCheck('check');
|
|
|
+ });
|
|
|
+ //取消
|
|
|
+ $('.all_checkbox').on('ifUnchecked', function (event) {
|
|
|
+ if(!isSonCh){
|
|
|
+ $(".son_checkbox").iCheck('uncheck');
|
|
|
+ }else{
|
|
|
+ isSonCh = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ //选中
|
|
|
+ $('.son_checkbox').on('ifChecked', function(event){
|
|
|
+ var allCheck = true;
|
|
|
+ $(".son_checkbox").each(function () {
|
|
|
+ if(!$(this).is(':checked')){
|
|
|
+ allCheck = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if(allCheck){
|
|
|
+ $(".all_checkbox").iCheck('check');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ //取消
|
|
|
+ $('.son_checkbox').on('ifUnchecked', function (event) {
|
|
|
+ isSonCh = true;
|
|
|
+ $(".all_checkbox").iCheck('uncheck');
|
|
|
+ });
|
|
|
+
|
|
|
+ $(function () {
|
|
|
+ var allCheck = true;
|
|
|
+ $(".son_checkbox").each(function () {
|
|
|
+ if(!$(this).is(':checked')){
|
|
|
+ allCheck = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ if(allCheck){
|
|
|
+ $(".all_checkbox").iCheck('check');
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ var isHaveColorList = 1; //是否已经有颜色 2没有 1 含有
|
|
|
+</script>
|
|
|
+
|
|
|
+<script type="text/javascript" charset="utf-8" src="${path}/common/js/product/product.js"></script>
|
|
|
+
|
|
|
+</body>
|
|
|
+</html>
|