新增抠图工艺

This commit is contained in:
2026-06-16 14:34:37 +08:00
parent 86839e0b2b
commit 94a369f4b1
80 changed files with 6053 additions and 3645 deletions
+18
View File
@@ -145,6 +145,12 @@
</div>
</div>
<div class="layui-input-block">
<input type="checkbox" name="craft" lay-filter="ui_craft" value="抠图" title="抠图">
<div class="layui-inline crop" style="display:none;width: 80px">
<input class="layui-input" type="text" name="cropNumber">
</div>
</div>
</form>
<form class="layui-form">
<div class="layui-form-item">
@@ -335,6 +341,10 @@
$("input:checkbox[name='" + name + "']:checked").each(function (i) {
// 没有被禁用的工艺加到arr中
if (!$(this).is(':disabled')) {
if ($(this).val() == "抠图") {
arr.push($(this).val() + $("input[name='cropNumber']").val());
return;
}
craft.push($(this).val());
}
});
@@ -360,6 +370,14 @@
if (craftCount.length > 0) {
$(".ui_guaguasize").show();
}
if (data.value == '抠图') {
$(".crop").hide();
$(".crop").find("input").prop("disabled", true)
if (data.elem.checked) {
$(".crop").show();
$(".crop").find("input").prop("disabled", false)
}
}
form.render();
})