From 94a369f4b150deafebbf5322f84bc7525328b7e3 Mon Sep 17 00:00:00 2001
From: zhuyiyi <649091362@qq.com>
Date: Tue, 16 Jun 2026 14:34:37 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8A=A0=E5=9B=BE=E5=B7=A5?=
=?UTF-8?q?=E8=89=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../java/lingtao/net/util/PriceUtils.java | 50 +-
src/main/webapp/views/product/acidTags.jsp | 410 ++++----
src/main/webapp/views/product/angingCloth.jsp | 30 +
src/main/webapp/views/product/antifake.jsp | 30 +
.../webapp/views/product/aromatherapyCard.jsp | 25 +-
src/main/webapp/views/product/badge.jsp | 18 +
src/main/webapp/views/product/banqi.jsp | 38 +-
src/main/webapp/views/product/blackCard.jsp | 30 +
src/main/webapp/views/product/canopy.jsp | 31 +
src/main/webapp/views/product/canvas.jsp | 36 +-
src/main/webapp/views/product/canvasBag.jsp | 25 +-
src/main/webapp/views/product/card.jsp | 48 +-
src/main/webapp/views/product/chaqi.jsp | 18 +
src/main/webapp/views/product/chetie.jsp | 27 +-
src/main/webapp/views/product/chuanqi.jsp | 31 +-
src/main/webapp/views/product/clothes.jsp | 29 +
src/main/webapp/views/product/coaster.jsp | 28 +-
.../webapp/views/product/colorEnvelope.jsp | 34 +-
src/main/webapp/views/product/copyPaper.jsp | 576 +++++------
src/main/webapp/views/product/credentials.jsp | 58 +-
src/main/webapp/views/product/cupHolder.jsp | 47 +-
src/main/webapp/views/product/cupSet.jsp | 46 +-
src/main/webapp/views/product/deckChair.jsp | 27 +-
src/main/webapp/views/product/deskSticker.jsp | 54 +-
src/main/webapp/views/product/diploma.jsp | 377 ++++----
src/main/webapp/views/product/disu.jsp | 85 +-
src/main/webapp/views/product/envelope.jsp | 642 +++++++------
src/main/webapp/views/product/fan.jsp | 49 +-
src/main/webapp/views/product/fgq.jsp | 489 +++++-----
src/main/webapp/views/product/fileCover.jsp | 562 ++++++-----
src/main/webapp/views/product/flags.jsp | 683 ++++++-------
src/main/webapp/views/product/flyer.jsp | 31 +-
src/main/webapp/views/product/freehand.jsp | 51 +-
src/main/webapp/views/product/handBag.jsp | 39 +-
.../views/product/handkerchiefPaper.jsp | 41 +-
src/main/webapp/views/product/hykkt.jsp | 51 +-
src/main/webapp/views/product/insertCard.jsp | 55 +-
src/main/webapp/views/product/katie.jsp | 36 +-
src/main/webapp/views/product/kzt.jsp | 386 ++++----
src/main/webapp/views/product/landa.jsp | 20 +
src/main/webapp/views/product/leiTag.jsp | 25 +-
src/main/webapp/views/product/light.jsp | 22 +-
src/main/webapp/views/product/lingmo.jsp | 29 +-
src/main/webapp/views/product/lsz.jsp | 56 +-
src/main/webapp/views/product/medal.jsp | 30 +
src/main/webapp/views/product/mousePad.jsp | 18 +
src/main/webapp/views/product/msd.jsp | 53 +-
src/main/webapp/views/product/notePaper.jsp | 35 +-
src/main/webapp/views/product/orders.jsp | 37 +-
src/main/webapp/views/product/packingBox.jsp | 511 +++++-----
src/main/webapp/views/product/paperBowl.jsp | 20 +-
src/main/webapp/views/product/paperCup.jsp | 396 ++++----
src/main/webapp/views/product/pet.jsp | 25 +-
.../webapp/views/product/pictureAlbum.jsp | 832 ++++++++--------
src/main/webapp/views/product/placeMat.jsp | 35 +-
.../webapp/views/product/plasticHandbag.jsp | 25 +-
src/main/webapp/views/product/poster.jsp | 101 +-
.../webapp/views/product/printedAcrylic.jsp | 23 +-
src/main/webapp/views/product/programCard.jsp | 33 +-
src/main/webapp/views/product/pvcCard.jsp | 53 +-
src/main/webapp/views/product/pvcfigure.jsp | 37 +-
src/main/webapp/views/product/rollLabel.jsp | 19 +-
src/main/webapp/views/product/roomCard.jsp | 32 +
src/main/webapp/views/product/slq.jsp | 45 +-
.../webapp/views/product/specialCard2.jsp | 31 +-
src/main/webapp/views/product/tablecolth.jsp | 46 +-
src/main/webapp/views/product/tagClothes.jsp | 43 +-
src/main/webapp/views/product/tags.jsp | 895 +++++++++---------
src/main/webapp/views/product/takeoutBox.jsp | 46 +-
src/main/webapp/views/product/tape.jsp | 26 +-
src/main/webapp/views/product/tearingJoy.jsp | 18 +
.../webapp/views/product/wallPainting.jsp | 19 +-
src/main/webapp/views/product/warmSticker.jsp | 32 +
src/main/webapp/views/product/waterGauge.jsp | 20 +-
src/main/webapp/views/product/weddingCard.jsp | 48 +-
src/main/webapp/views/product/wireTape.jsp | 27 +-
.../webapp/views/product/wrappingPaper.jsp | 27 +-
src/main/webapp/views/product/wristBand.jsp | 19 +
src/main/webapp/views/product/yafen.jsp | 22 +-
src/main/webapp/views/product/ykl.jsp | 544 ++++++-----
80 files changed, 6053 insertions(+), 3645 deletions(-)
diff --git a/src/main/java/lingtao/net/util/PriceUtils.java b/src/main/java/lingtao/net/util/PriceUtils.java
index 6417bfe..7cb7751 100644
--- a/src/main/java/lingtao/net/util/PriceUtils.java
+++ b/src/main/java/lingtao/net/util/PriceUtils.java
@@ -40,18 +40,37 @@ public class PriceUtils {
if ("10*2".equals(dto.getSize())) {
prices = new double[]{220, 300, 337, 412, 600, 680, 1200, 1980};
}
- for (int i = 0; i < counts.length; i++) {
- if (counts[i] < dto.getCount()) {
- continue;
+ double lastPrice = 0;
+ int lastCount = 0;
+ double price = 0;
+ int countItem = count;
+ do {
+ if (countItem > counts[counts.length - 1]) {
+ price += prices[prices.length - 1];
+ countItem = countItem - counts[counts.length - 1];
+ } else {
+ for (int i = 0; i < counts.length; i++) {
+ if (counts[i] < countItem) {
+ lastCount = counts[i];
+ lastPrice = prices[i];
+ continue;
+ }
+
+ if (lastPrice == 0 && lastCount == 0) {
+ price += prices[i];
+ } else {
+ price += lastPrice + (countItem - lastCount) * (prices[i] - lastPrice) / (counts[i] - lastCount);
+ }
+ break;
+ }
+ countItem = 0;
}
- if (list.size() > 2) {
- break;
- }
- pro = new Product();
- pro.setCount(counts[i]);
- pro.setPrice(prices[i] );
- list.add(pro);
- }
+ } while (countItem != 0);
+
+ pro = new Product();
+ pro.setCount(count);
+ pro.setPrice(Math.ceil(price));
+ list.add(pro);
return list;
}
// 最低收费
@@ -2179,7 +2198,12 @@ public class PriceUtils {
// 第一张大纸价格
double price = 80;
if (craft.size() > 0) {//工艺起步价120
- price = 120;
+ if (!craft.contains("内部模切")) {
+ price = 120;
+ }
+ if (craft.contains("内部模切") && craft.size() > 1) {
+ price = 120;
+ }
}
// 换成毫米每边+3
length = length * 10 + 2 * 1.5;
@@ -2200,7 +2224,7 @@ public class PriceUtils {
price = num * 25;
}
price += 10 * craft.size() * num;
- if (dto.getN_mq_num() > 0) {
+ if (craft.contains("内部模切") && dto.getN_mq_num() > 0) {
price += 10 * dto.getN_mq_num();
}
price = Math.ceil(price + (number - 1) * 5);
diff --git a/src/main/webapp/views/product/acidTags.jsp b/src/main/webapp/views/product/acidTags.jsp
index c9419a3..414a563 100644
--- a/src/main/webapp/views/product/acidTags.jsp
+++ b/src/main/webapp/views/product/acidTags.jsp
@@ -1,187 +1,231 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
-<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
+ pageEncoding="UTF-8" %>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
-
-Insert title here
-<%@include file="/views/common.jsp"%>
+
+ Insert title here
+ <%@include file="/views/common.jsp" %>
-
+
+
+
硫酸纸吊牌
+
+
+
+
+
+
-<%@include file="/views/copyResult.jsp"%>
+<%@include file="/views/copyResult.jsp" %>
\ No newline at end of file
diff --git a/src/main/webapp/views/product/angingCloth.jsp b/src/main/webapp/views/product/angingCloth.jsp
index 8f0fa4b..1b97be5 100644
--- a/src/main/webapp/views/product/angingCloth.jsp
+++ b/src/main/webapp/views/product/angingCloth.jsp
@@ -64,6 +64,12 @@
+
+
@@ -273,6 +279,16 @@
form.render();
return false;
}
+ 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();
+ return false;
+ }
})
form.on('checkbox(peijian)', function (data) {
let craft_list = [];
@@ -334,6 +350,9 @@
if (!$(this).is(':disabled')) {
if (carft_list4.indexOf($(this).val()) > -1) {
craft.push($(this).val() + $("#peijian_ui select[name='shen_color'] option:selected").val());
+ } else if ($(this).val() == "抠图") {
+ craft.push($(this).val() + $("input[name='cropNumber']").val());
+ return;
} else {
craft.push($(this).val());
}
@@ -387,9 +406,9 @@
}
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);
diff --git a/src/main/webapp/views/product/badge.jsp b/src/main/webapp/views/product/badge.jsp
index d8eb96b..1837d0a 100644
--- a/src/main/webapp/views/product/badge.jsp
+++ b/src/main/webapp/views/product/badge.jsp
@@ -107,6 +107,12 @@
title="磁铁">
+
@@ -279,6 +285,14 @@
if (craft_list.includes("PET印刷") > 0) {
$("#size").val("3*3")
}
+ if (data.value == '抠图') {
+ $(".crop").hide();
+ $(".crop").find("input").prop("disabled", true)
+ if (data.elem.checked) {
+ $(".crop").show();
+ $(".crop").find("input").prop("disabled", false)
+ }
+ }
getImages();
form.render();
// changeRemark()
@@ -313,6 +327,10 @@
$("input:checkbox[name='craft']:checked").each(function (i) {
// 没有被禁用的工艺加到arr中
if (!$(this).is(':disabled')) {
+ if ($(this).val() == "抠图") {
+ craft.push($(this).val() + $("input[name='cropNumber']").val());
+ return;
+ }
craft.push($(this).val());
}
});
diff --git a/src/main/webapp/views/product/banqi.jsp b/src/main/webapp/views/product/banqi.jsp
index ea9b673..855d91d 100644
--- a/src/main/webapp/views/product/banqi.jsp
+++ b/src/main/webapp/views/product/banqi.jsp
@@ -80,6 +80,12 @@
<%-- --%>
+
@@ -165,7 +171,7 @@
craft.push($(this).val());
}
});
- if(craft.indexOf("旗杆") > -1 && craft.indexOf("伸缩旗杆") > -1){
+ if (craft.indexOf("旗杆") > -1 && craft.indexOf("伸缩旗杆") > -1) {
$(data.elem).next().attr("class", "layui-unselect layui-form-checkbox");
$(data.elem).prop("checked", false);
layer.msg('旗杆 - 伸缩旗杆只能选择一种!', {offset: ['300px', '300px']}, {icon: 5});
@@ -188,6 +194,27 @@
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('submit(acount_btn)', function (data) {
var number = $("#number").val();
@@ -201,6 +228,9 @@
if (!$(this).is(':disabled')) {
if ($(this).val() == "伸缩旗杆") {
craft.push($(this).val() + $(".qigan input").val());
+ } else if ($(this).val() == "抠图") {
+ craft.push($(this).val() + $("input[name='cropNumber']").val());
+ return;
} else {
craft.push($(this).val());
}
@@ -241,9 +271,9 @@
}
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);
diff --git a/src/main/webapp/views/product/blackCard.jsp b/src/main/webapp/views/product/blackCard.jsp
index b0b2542..9726308 100644
--- a/src/main/webapp/views/product/blackCard.jsp
+++ b/src/main/webapp/views/product/blackCard.jsp
@@ -94,6 +94,12 @@
+
@@ -199,6 +205,26 @@
form.on('checkbox(switch)', function (data) {
getProductImage()
})
+ 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('submit(acount_btn)', function (data) {
var kind2Data = {
@@ -213,6 +239,10 @@
$("input:checkbox[name='craft']:checked").each(function (i) {
// 没有被禁用的工艺加到arr中
if (!$(this).is(':disabled')) {
+ if ($(this).val() == "抠图") {
+ arr.push($(this).val() + $("input[name='cropNumber']").val());
+ return;
+ }
arr.push($(this).val());
}
});
diff --git a/src/main/webapp/views/product/canopy.jsp b/src/main/webapp/views/product/canopy.jsp
index 860a6ca..43155d5 100644
--- a/src/main/webapp/views/product/canopy.jsp
+++ b/src/main/webapp/views/product/canopy.jsp
@@ -92,6 +92,12 @@
+
@@ -238,6 +244,27 @@
getProductImage(data.elem.checked ? data.value : '');
})
+ 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('submit(acount_btn)', function (data) {
@@ -246,6 +273,10 @@
let craft_list = [];
$("input[name='craft']:checked").each(function () {
if (!$(this).is("disabled")) {
+ if ($(this).val() == "抠图") {
+ craft_list.push($(this).val() + $("input[name='cropNumber']").val());
+ return;
+ }
craft_list.push($(this).val())
}
})
diff --git a/src/main/webapp/views/product/canvas.jsp b/src/main/webapp/views/product/canvas.jsp
index 9b440b0..618eabe 100644
--- a/src/main/webapp/views/product/canvas.jsp
+++ b/src/main/webapp/views/product/canvas.jsp
@@ -95,6 +95,12 @@
+
@@ -226,6 +232,27 @@
form.render('radio');
});
+ 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('submit(acount_btn)', function (data) {
var number = $("#number").val();
@@ -251,6 +278,9 @@
if (!$(this).is(':disabled')) {
if ($(this).val() == "伸缩杆70-120CM") {
craft.push($("input[name='pcount']").val() + "个" + $(this).val())
+ } else if ($(this).val() == "抠图") {
+ craft.push($(this).val() + $("input[name='cropNumber']").val());
+ return;
} else {
craft.push($(this).val())
}
@@ -306,9 +336,9 @@
}
}
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);
diff --git a/src/main/webapp/views/product/canvasBag.jsp b/src/main/webapp/views/product/canvasBag.jsp
index 42567ea..14927f2 100644
--- a/src/main/webapp/views/product/canvasBag.jsp
+++ b/src/main/webapp/views/product/canvasBag.jsp
@@ -113,6 +113,12 @@
+
@@ -229,6 +235,16 @@
form.render();
return false;
}
+ 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();
+ return false;
+ }
})
form.on('checkbox(peijian)', function (data) {
@@ -276,6 +292,9 @@
if ($(this).val() == '织带绳') {
craft.push($(this).val());
craft.push($("select[name='s_color'] option:selected").val() + $(this).val());
+ } else if ($(this).val() == "抠图") {
+ craft.push($(this).val() + $("input[name='cropNumber']").val());
+ return;
} else {
craft.push($(this).val());
}
@@ -335,9 +354,9 @@
}
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);
diff --git a/src/main/webapp/views/product/card.jsp b/src/main/webapp/views/product/card.jsp
index c821ae4..e06e601 100644
--- a/src/main/webapp/views/product/card.jsp
+++ b/src/main/webapp/views/product/card.jsp
@@ -98,6 +98,12 @@
+
@@ -309,6 +315,26 @@
}
getProductImage(data.elem.checked ? data.value : "")
});
+ 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('submit(acount_btn)', function (data) {
var proTypeValue = $('input[name="kind"]:checked').val();
@@ -337,7 +363,7 @@
}
var kind2Value = $("#kind2Value option:checked").text();
var craftMo = [$('input[name="craftMo"]:checked').val()];
- var craftJiao = [$('input[name="craftJiao"]:checked').val()];
+ var craftJiao = [$('input[name="craftJiao"]:checked:not(:disabled)').val()];
var number = $("#number").val();
var count = $("select[name='count'] option:selected").text();
var proTypeValueData = {
@@ -354,8 +380,20 @@
});
return false;
}
+ let arr = []
+ $("input[name='craft']:checked").each(function () {
+ if (!$(this).is("disabled")) {
+ if ($(this).val() == "抠图") {
+ arr.push($(this).val() + $("input[name='cropNumber']").val());
+ return;
+ }
+ }
+ })
+ arr.push(craftMo)
+ arr.push(craftJiao)
var data = result.data.proList;
- var span_result = proTypeValueData[proTypeValue] + ' - ' + kindValue + ' - ' + kind2Value + ' - ' + craftMo + ' - ' + craftJiao + ' -(同款内容)\n';
+ var span_result = proTypeValueData[proTypeValue] + ' - ' + kindValue + ' - ' + kind2Value + ' -(同款内容)\n';
+ span_result += "工艺 :" + arr.join(",") + "\n";
if (number > 1) {
for (let i = 0; i < data.length; i++) {
span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + '\n'
@@ -368,9 +406,9 @@
}
}
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);
diff --git a/src/main/webapp/views/product/chaqi.jsp b/src/main/webapp/views/product/chaqi.jsp
index f57dfad..7b61774 100644
--- a/src/main/webapp/views/product/chaqi.jsp
+++ b/src/main/webapp/views/product/chaqi.jsp
@@ -145,6 +145,12 @@
+