新增抠图工艺
This commit is contained in:
@@ -96,7 +96,7 @@
|
||||
<option value="黑色">黑色</option>
|
||||
<option value="大红色">大红色</option>
|
||||
<option value="深蓝色">深蓝色</option>
|
||||
<%-- <option value="浅蓝色">浅蓝色</option>--%>
|
||||
<%-- <option value="浅蓝色">浅蓝色</option>--%>
|
||||
<option value="黄色">黄色</option>
|
||||
</select>
|
||||
</div>
|
||||
@@ -133,6 +133,12 @@
|
||||
</select>
|
||||
</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>
|
||||
@@ -400,6 +406,26 @@
|
||||
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('checkbox(diyCount)', function (data) {
|
||||
//判断当前多选框是选中还是取消选中
|
||||
@@ -598,6 +624,11 @@
|
||||
if ($(this).val() == "烫金") {
|
||||
arr.push($("#tang_type select option:selected").val() + $(this).val());
|
||||
}
|
||||
if ($(this).val() == "抠图") {
|
||||
arr.push($(this).val() + $("input[name='cropNumber']").val());
|
||||
return;
|
||||
}
|
||||
arr.push($(this).val());
|
||||
}
|
||||
});
|
||||
var data = result.data.proList;
|
||||
@@ -725,11 +756,11 @@
|
||||
}
|
||||
}
|
||||
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);
|
||||
$("#span_result").val(span_result);
|
||||
|
||||
var size = "";
|
||||
if (level == 0) {
|
||||
|
||||
Reference in New Issue
Block a user