From 78166f6bd824da863f23a5c522077ad2a4aeba55 Mon Sep 17 00:00:00 2001 From: zhuyiyi <649091362@qq.com> Date: Wed, 19 Mar 2025 16:29:25 +0800 Subject: [PATCH] edit --- src/main/webapp/views/product/antifake.jsp | 4 +- src/main/webapp/views/product/coaster.jsp | 51 ++++++++++++++++++++++ src/main/webapp/views/product/coupon.jsp | 6 +++ src/main/webapp/views/product/cupSet.jsp | 6 +-- src/main/webapp/views/product/poster.jsp | 4 +- 5 files changed, 64 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/views/product/antifake.jsp b/src/main/webapp/views/product/antifake.jsp index fbb03de..6a7d6e3 100644 --- a/src/main/webapp/views/product/antifake.jsp +++ b/src/main/webapp/views/product/antifake.jsp @@ -173,8 +173,8 @@ return false; } - if (size.split("*")[0] < 6 || size.split("*")[1] < 6) { - layer.msg('防伪标最小尺寸6*6cm!', {offset: ['300px', '300px']}, function () { + if (size.split("*")[0] < 0.6 || size.split("*")[1] < 0.6) { + layer.msg('防伪标最小尺寸0.6*0.6cm!', {offset: ['300px', '300px']}, function () { }); return false; } diff --git a/src/main/webapp/views/product/coaster.jsp b/src/main/webapp/views/product/coaster.jsp index f32bc0b..06be819 100644 --- a/src/main/webapp/views/product/coaster.jsp +++ b/src/main/webapp/views/product/coaster.jsp @@ -221,6 +221,7 @@ } form.render(); + getProductImage() }) form.on("radio(switch)", function (data) { @@ -247,6 +248,56 @@ } }); + function getProductImage(craft) { + + $("#carousel").empty(); + $("#remark").empty(); + let data = {proTypeValue: "杯垫"} + let remark = ""; + let html = ""; + let kindValue = $("input[name='kindValue']:checked").val(); + if (!!kindValue) { + if (kindValue == 4 || kindValue == 6) { + kindValue = "铜版纸"; + } + data.kindValue = kindValue; + } + $.ajax({ + url: "${pageContext.request.contextPath}/getImgs", + type: "GET", + data, + //dataType : "json", + success: function (result) { + for (let i = 0; i < result.length; i++) { + // 只留一个remark + remark = ""; + if (result[0].imgWidth < result[0].imgHeight) { + html += '