新增抠图工艺
This commit is contained in:
@@ -103,6 +103,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" id="queryCondBtn">计算</button>
|
||||
@@ -302,6 +308,28 @@
|
||||
}
|
||||
form.render();
|
||||
})
|
||||
|
||||
form.on('checkbox(ui_craft)', function (data) {
|
||||
let craft_list = [];
|
||||
let kindValue = $('input[name="kindValue"]:checked').val();
|
||||
craft_list.push($("select[name='craft'] option:selected").val());
|
||||
$("input[name='craft']:checked").each(function () {
|
||||
if (!$(this).is(':disabled')) {
|
||||
craft_list.push($(this).val());
|
||||
}
|
||||
});
|
||||
|
||||
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();
|
||||
})
|
||||
|
||||
// 点击计算,计算价格
|
||||
form.on('submit(acount_btn)', function (data) {
|
||||
var kindValue = $("#kindValue option:checked").text();
|
||||
@@ -324,6 +352,9 @@
|
||||
if (!$(this).is(':disabled')) {
|
||||
if ($(this).val() == "菜品夹") {
|
||||
craft_list.push($("input[name='stickNum']").val() + $(this).val());
|
||||
} else if ($(this).val() == "抠图") {
|
||||
craft_list.push($(this).val() + $("input[name='cropNumber']").val());
|
||||
return;
|
||||
} else {
|
||||
craft_list.push($(this).val());
|
||||
}
|
||||
@@ -396,9 +427,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user