新增抠图工艺

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
+19 -3
View File
@@ -123,6 +123,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>
<hr>
<div class="layui-form-item">
<button class="layui-btn" lay-submit="" lay-filter="acount_btn">计算</button>
@@ -258,6 +264,8 @@
$(".yhselect").hide();
$(".ydxselect").hide();
$(".zyselect").hide();
$(".crop").hide();
$(".crop").find("input").prop("disabled", true)
if (craft_list.includes("压痕")) {
$(".yhselect").show();
}
@@ -267,6 +275,11 @@
if (craft_list.includes("折页")) {
$(".zyselect").show();
}
if (craft_list.includes("抠图")) {
$(".crop").show();
$(".crop").find("input").prop("disabled", false)
}
form.render();
})
// 点击计算,计算价格
@@ -294,6 +307,9 @@
} else if ($(this).val() == "折页") {
craft.push($(this).val());
craft.push($(".zyselect select option:selected").val());
} else if ($(this).val() == "抠图") {
craft.push($(this).val() + $("input[name='cropNumber']").val());
return;
} else {
craft.push($(this).val());
}
@@ -356,9 +372,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);