新增抠图工艺

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
@@ -85,6 +85,12 @@
<input type="checkbox" name="craft" lay-filter="ui_craft" value="装opp袋" title="装opp袋" checked>
</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>
@@ -194,6 +200,15 @@
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();
})
// 点击计算,计算价格
@@ -221,6 +236,10 @@
$("input:checkbox[name='craft']:checked").each(function (i) {
// 没有被禁用的工艺加到arr中
if (!$(this).is(':disabled')) {
if ($(this).val() == "抠图") {
craft.push($(this).val() + $("input[name='cropNumber']").val());
return;
}
craft.push($(this).val());
}
});
@@ -261,9 +280,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);