新增防水布
This commit is contained in:
@@ -5284,7 +5284,7 @@ public class ProductService {
|
|||||||
if ("黑胶涤纶布".equals(dto.getKindValue())) {
|
if ("黑胶涤纶布".equals(dto.getKindValue())) {
|
||||||
basePrice = basePrice + 1;
|
basePrice = basePrice + 1;
|
||||||
}
|
}
|
||||||
price = Math.ceil(basePrice * area * count * number);
|
price = Math.ceil(Math.max(basePrice * area * count, 50) * number);
|
||||||
}
|
}
|
||||||
|
|
||||||
pro.setPrice(Math.ceil(price));
|
pro.setPrice(Math.ceil(price));
|
||||||
@@ -5297,6 +5297,9 @@ public class ProductService {
|
|||||||
if (craft_list.contains("防风绳")) {
|
if (craft_list.contains("防风绳")) {
|
||||||
product.setPrice(Math.floor(product.getPrice() + dto.getPcount() * 2));
|
product.setPrice(Math.floor(product.getPrice() + dto.getPcount() * 2));
|
||||||
}
|
}
|
||||||
|
if (craft_list.contains("圆盘")) {
|
||||||
|
product.setPrice(Math.floor(product.getPrice() + dto.getStickNum() * 8));
|
||||||
|
}
|
||||||
product.setWeight(String.valueOf(area * count * number * 0.08 + dto.getShuliang() * 3.3));
|
product.setWeight(String.valueOf(area * count * number * 0.08 + dto.getShuliang() * 3.3));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
<option value=""></option>
|
<option value=""></option>
|
||||||
<option value="银胶涤纶布">银胶涤纶布</option>
|
<option value="银胶涤纶布">银胶涤纶布</option>
|
||||||
<option value="黑胶涤纶布">黑胶涤纶布</option>
|
<option value="黑胶涤纶布">黑胶涤纶布</option>
|
||||||
|
<option value="防水布">防水布</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" name="proTypeValue" class="layui-input" value="天幕">
|
<input type="hidden" name="proTypeValue" class="layui-input" value="天幕">
|
||||||
@@ -76,6 +77,11 @@
|
|||||||
<input type="text" name="shuliang" value="0" placeholder="请输入整数" class="layui-input" autocomplete="off"><span
|
<input type="text" name="shuliang" value="0" placeholder="请输入整数" class="layui-input" autocomplete="off"><span
|
||||||
style="flex-shrink: 0">套</span>
|
style="flex-shrink: 0">套</span>
|
||||||
</span>
|
</span>
|
||||||
|
<input type="checkbox" name="craft" lay-filter="switch" value="圆盘" title="圆盘">
|
||||||
|
<span class="layui-inline" id="yuanpan" style="display: none;width: 100px;align-items: center">
|
||||||
|
<input type="text" name="stickNum" value="0" placeholder="请输入整数" class="layui-input" autocomplete="off"><span
|
||||||
|
style="flex-shrink: 0">套</span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<%-- <p>--%>
|
<%-- <p>--%>
|
||||||
<%-- 印刷<span--%>
|
<%-- 印刷<span--%>
|
||||||
@@ -230,6 +236,15 @@
|
|||||||
$("#shuliang").hide()
|
$("#shuliang").hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
if (data.value == '圆盘') {
|
||||||
|
if (data.elem.checked) {
|
||||||
|
$("#yuanpan").css("display", "flex");
|
||||||
|
} else {
|
||||||
|
$("input[name='stickNum']").val(0)
|
||||||
|
$("#yuanpan").hide()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (data.value == '防风绳') {
|
if (data.value == '防风绳') {
|
||||||
if (data.elem.checked) {
|
if (data.elem.checked) {
|
||||||
@@ -324,12 +339,15 @@
|
|||||||
let number = $("#number").val();
|
let number = $("#number").val();
|
||||||
let shuliang = $("input[name='shuliang']").val() || 0;
|
let shuliang = $("input[name='shuliang']").val() || 0;
|
||||||
let pcount = $("input[name='pcount']").val() || 0;
|
let pcount = $("input[name='pcount']").val() || 0;
|
||||||
|
let stickNum = $("input[name='stickNum']").val() || 0;
|
||||||
$("input[name='craft']:checked").each(function () {
|
$("input[name='craft']:checked").each(function () {
|
||||||
if (!$(this).is("disabled")) {
|
if (!$(this).is("disabled")) {
|
||||||
if ($(this).val() == "安装包") {
|
if ($(this).val() == "安装包") {
|
||||||
arr.push($(this).val() + shuliang)
|
arr.push($(this).val() + shuliang)
|
||||||
} else if ($(this).val() == "防风绳") {
|
} else if ($(this).val() == "防风绳") {
|
||||||
arr.push($(this).val() + pcount)
|
arr.push($(this).val() + pcount)
|
||||||
|
} else if ($(this).val() == "圆盘") {
|
||||||
|
arr.push($(this).val() + stickNum)
|
||||||
} else {
|
} else {
|
||||||
arr.push($(this).val())
|
arr.push($(this).val())
|
||||||
}
|
}
|
||||||
@@ -350,9 +368,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
span_result += '包邮,免费设计呢~(偏远地区需补邮费)'
|
span_result += '包邮,免费设计呢~(偏远地区需补邮费)'
|
||||||
if(window.parent.system_isGai){
|
if (window.parent.system_isGai) {
|
||||||
span_result +="\n\n亲 现在下单可以参加淘宝活动8.5折折扣哦!"
|
span_result += "\n\n亲 现在下单可以参加淘宝活动8.5折折扣哦!"
|
||||||
}
|
}
|
||||||
addLog(span_result);
|
addLog(span_result);
|
||||||
$("#span_result").val(span_result);
|
$("#span_result").val(span_result);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user