|
|
@@ -63,6 +63,16 @@
|
|
|
<option value="红色">红色</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
+ <div id="skuContainer" style="display: none">
|
|
|
+ <p>
|
|
|
+ 规格
|
|
|
+ </p>
|
|
|
+ <div class="layui-form-item">
|
|
|
+ <input type="radio" name="sku" title="500/箱" value="500/箱" disabled>
|
|
|
+ <input type="radio" name="sku" title="1000/箱" value="1000/箱" checked disabled>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="layui-form-item" style="display: none">
|
|
|
<select id="colorT" name="craft" class="layui-form-select" disabled>
|
|
|
<option value="黑色">黑色</option>
|
|
|
@@ -193,6 +203,9 @@
|
|
|
$("input[name='shen_color'][value='双色']").attr("disabled", false);
|
|
|
$("input[name='shen_color'][value='彩色']").parent().show();
|
|
|
$("input[name='shen_color'][value='彩色']").attr("disabled", false);
|
|
|
+ $("#skuContainer").hide();
|
|
|
+ $("#skuContainer").find(":input").attr("disabled", true);
|
|
|
+
|
|
|
$("#colorT").parent().hide();
|
|
|
$("#colorT").attr("disabled", true)
|
|
|
if (data.value == '23*23') {
|
|
|
@@ -206,6 +219,8 @@
|
|
|
form.on("radio(colorType)", function (data) {
|
|
|
$("#colorT").parent().hide();
|
|
|
$("#colorT").attr("disabled", true)
|
|
|
+ $("#skuContainer").hide();
|
|
|
+ $("#skuContainer").find(":input").attr("disabled", true);
|
|
|
let html = `<option value="黑色">黑色</option>
|
|
|
<option value="咖啡色">咖啡色</option>
|
|
|
<option value="浅绿色">浅绿色</option>
|
|
|
@@ -222,6 +237,8 @@
|
|
|
if (data.value == "彩色") {
|
|
|
html = `<option value="彩色">彩色</option>`;
|
|
|
$("#colorS").empty().append(html);
|
|
|
+ $("#skuContainer").show();
|
|
|
+ $("#skuContainer").find(":input").attr("disabled", false);
|
|
|
}
|
|
|
form.render();
|
|
|
})
|
|
|
@@ -295,7 +312,9 @@
|
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
+ if(colorType == "彩色"){
|
|
|
+ craft.push($("input[name='sku']:checked").val());
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
url: "${path}/getThanSum",
|
|
|
type: "GET",
|