Pārlūkot izejas kodu

修改吊牌工艺价格

zhuyiyi 4 nedēļas atpakaļ
vecāks
revīzija
ba74fd7beb

+ 11 - 2
src/main/java/lingtao/net/service/ProductService.java

@@ -1190,6 +1190,15 @@ public class ProductService {
                             if (craft.contains("配棉绳")) {
                                 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) {
@@ -5635,13 +5644,13 @@ public class ProductService {
         if ("2".equals(dto.getKind())) {
             max_width = 420;
             max_length = 310;
-            base_price = 30;
+            base_price = 35;
             min_price = 60;
         }
         if ("3".equals(dto.getKind())) {
             max_width = 420;
             max_length = 310;
-            base_price = 35;
+            base_price = 40;
             min_price = 60;
         }
         width = width * 10 + 4;

+ 4 - 4
src/main/webapp/views/product/aromatherapyCard.jsp

@@ -137,8 +137,8 @@
                            title="穿弹力绳">
                     <div class="layui-inline shengz scolor" style="width: 110px;display: none">
                         <select class="select" name="shen_color">
-                            <option value="白色绳子">白色绳子</option>
-                            <option value="黑色绳子">黑色绳子</option>
+                            <option value="白色">白色</option>
+                            <option value="黑色">黑色</option>
                         </select>
                     </div>
                 </div>
@@ -146,8 +146,8 @@
                     配件颜色:
                     <div class="layui-inline shengz scolor" style="width: 110px;">
                         <select class="select" name="shen_color">
-                            <option value="白色绳子">白色绳子</option>
-                            <option value="黑色绳子">黑色绳子</option>
+                            <option value="白色">白色</option>
+                            <option value="黑色">黑色</option>
                         </select>
                     </div>
                 </div>