修改单面凹凸
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
margin-top: 3px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#color_type .layui-form-select .layui-edge {
|
||||
right: 20px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div class="big_box">
|
||||
@@ -96,10 +100,18 @@
|
||||
title="双面覆哑膜" checked/>
|
||||
</span>
|
||||
|
|
||||
<input type="radio" name="kind2Value" value="无" title="无" checked>
|
||||
<input type="radio" name="kind2Value" value="单面烫黄金" title="单面烫黄金">
|
||||
<input type="radio" name="kind2Value" value="单面凹凸" title="单面凹凸">
|
||||
<input type="radio" name="kind2Value" value="单面烫黄金+凹凸" title="单面烫黄金+凹凸">
|
||||
<input type="radio" name="kind2Value" lay-filter="kind2Value" value="无" title="无" checked>
|
||||
<input type="radio" name="kind2Value" lay-filter="kind2Value" value="单面烫黄金" title="单面烫黄金">
|
||||
<input type="radio" name="kind2Value" lay-filter="kind2Value" value="击凸" title="击凸">
|
||||
<input type="radio" name="kind2Value" lay-filter="kind2Value" value="压凹" title="压凹">
|
||||
<span id="color_type" class="layui-inline" style="display: none;width: 100px">
|
||||
<select name="craft" class="select" disabled>
|
||||
<option value="无色" selected>无色</option>
|
||||
<option value="有色">有色</option>
|
||||
<option value="有色加凹凸">有色加激凸/有色加压凹</option>
|
||||
</select>
|
||||
</span>
|
||||
<%-- <input type="radio" name="kind2Value" value="单面烫黄金+凹凸" title="单面烫黄金+凹凸">--%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item fixcount" id="fixcount" style="display: none">
|
||||
@@ -247,6 +259,27 @@
|
||||
return false;
|
||||
}
|
||||
});
|
||||
form.on('radio(kind2Value)', function (data) {
|
||||
let at = data.value;
|
||||
if (at == '击凸' || at == '压凹') {
|
||||
if (at.indexOf("击凸") > -1) {
|
||||
$("#color_type select").empty().append(` <option value="无色" selected>无色</option>
|
||||
<option value="有色">有色</option>
|
||||
<option value="有色加激凸">有色加激凸</option>`)
|
||||
}
|
||||
if (at.indexOf("压凹") > -1) {
|
||||
$("#color_type select").empty().append(` <option value="无色" selected>无色</option>
|
||||
<option value="有色">有色</option>
|
||||
<option value="有色加压凹">有色加压凹</option>`)
|
||||
}
|
||||
$("#color_type").show();
|
||||
$("#color_type").find("select").attr("disabled", false);
|
||||
} else {
|
||||
$("#color_type").hide();
|
||||
$("#color_type").find("select").attr("disabled", true);
|
||||
}
|
||||
form.render();
|
||||
})
|
||||
|
||||
function getProductImage(craft) {
|
||||
|
||||
@@ -303,6 +336,7 @@
|
||||
|
||||
// 选中‘自定义数量’
|
||||
var kindValue = $('input[name="kindValue"]:checked').val();
|
||||
var kind2Value = $('input[name="kind2Value"]:checked').val();
|
||||
var craftQie = $('input[name="craftQie"]:checked').val();
|
||||
var craftMo = $('input[name="craftMo"]:checked').val();
|
||||
var size = $("#size").val();
|
||||
@@ -372,7 +406,12 @@
|
||||
return false;
|
||||
}
|
||||
var data = result.data.proList;
|
||||
|
||||
if ("无" != kind2Value) {
|
||||
arr.push(kind2Value)
|
||||
if (kind2Value == "击凸" || kind2Value == "压凹") {
|
||||
arr.push($("select[name='craft'] option:selected").val())
|
||||
}
|
||||
}
|
||||
var span_result = '杯垫 - ' + kindValueData[kindValue] + ' - ' + size + '厘米\n'
|
||||
if (kindValue == "3" || kindValue == "4" || kindValue == "6") {
|
||||
span_result += "工艺: " + craftQie + ', ' + arr + "\n";
|
||||
|
||||
Reference in New Issue
Block a user