Цей коміт міститься в:
2026-01-06 14:19:18 +08:00
джерело f4319613e4
коміт ba74fd7beb
2 змінених файлів з 15 додано та 6 видалено
+11 -2
Переглянути файл
@@ -1190,6 +1190,15 @@ public class ProductService {
if (craft.contains("配棉绳")) { if (craft.contains("配棉绳")) {
product.setPrice(Math.ceil(product.getPrice() + Math.max(Math.ceil(product.getCount() * 0.015), 15))); product.setPrice(Math.ceil(product.getPrice() + Math.max(Math.ceil(product.getCount() * 0.015), 15)));
} }
if (craft.contains("别针")) {
product.setPrice(Math.ceil(product.getPrice() + Math.max(Math.ceil(product.getCount() * 0.016), 10)));
}
if (craft.contains("流苏")) {
product.setPrice(Math.ceil(product.getPrice() + Math.max(Math.ceil(product.getCount() * 0.015), 30)));
}
if (craft.contains("绳子")) {
product.setPrice(Math.ceil(product.getPrice() + Math.max(Math.ceil(product.getCount() * 0.015), 10)));
}
} }
// 根据款数重新算价格/计算重量 // 根据款数重新算价格/计算重量
for (Product product : priceList) { for (Product product : priceList) {
@@ -5635,13 +5644,13 @@ public class ProductService {
if ("2".equals(dto.getKind())) { if ("2".equals(dto.getKind())) {
max_width = 420; max_width = 420;
max_length = 310; max_length = 310;
base_price = 30; base_price = 35;
min_price = 60; min_price = 60;
} }
if ("3".equals(dto.getKind())) { if ("3".equals(dto.getKind())) {
max_width = 420; max_width = 420;
max_length = 310; max_length = 310;
base_price = 35; base_price = 40;
min_price = 60; min_price = 60;
} }
width = width * 10 + 4; width = width * 10 + 4;
+4 -4
Переглянути файл
@@ -137,8 +137,8 @@
title="穿弹力绳"> title="穿弹力绳">
<div class="layui-inline shengz scolor" style="width: 110px;display: none"> <div class="layui-inline shengz scolor" style="width: 110px;display: none">
<select class="select" name="shen_color"> <select class="select" name="shen_color">
<option value="白色绳子">白色绳子</option> <option value="白色">白色</option>
<option value="黑色绳子">黑色绳子</option> <option value="黑色">黑色</option>
</select> </select>
</div> </div>
</div> </div>
@@ -146,8 +146,8 @@
配件颜色: 配件颜色:
<div class="layui-inline shengz scolor" style="width: 110px;"> <div class="layui-inline shengz scolor" style="width: 110px;">
<select class="select" name="shen_color"> <select class="select" name="shen_color">
<option value="白色绳子">白色绳子</option> <option value="白色">白色</option>
<option value="黑色绳子">黑色绳子</option> <option value="黑色">黑色</option>
</select> </select>
</div> </div>
</div> </div>