新增抠图工艺

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
+22 -3
View File
@@ -113,6 +113,12 @@
</span>
</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>
<hr>
<div class="layui-form-item">
<button class="layui-btn" lay-submit="" lay-filter="acount_btn">计算</button>
@@ -229,6 +235,16 @@
form.render();
return false;
}
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();
return false;
}
})
form.on('checkbox(peijian)', function (data) {
@@ -276,6 +292,9 @@
if ($(this).val() == '织带绳') {
craft.push($(this).val());
craft.push($("select[name='s_color'] option:selected").val() + $(this).val());
} else if ($(this).val() == "抠图") {
craft.push($(this).val() + $("input[name='cropNumber']").val());
return;
} else {
craft.push($(this).val());
}
@@ -335,9 +354,9 @@
}
span_result += '包邮,免费设计呢~(偏远地区需补邮费)'
if(window.parent.system_isGai){
span_result +="\n\n亲 现在下单可以参加淘宝活动8.5折折扣哦!"
}
if (window.parent.system_isGai) {
span_result += "\n\n亲 现在下单可以参加淘宝活动8.5折折扣哦!"
}
addLog(span_result);
$("#span_result").val(span_result);