Esse commit está contido em:
2025-05-08 17:15:55 +08:00
commit 7650802c30
12 arquivos alterados com 1094 adições e 950 exclusões
@@ -399,7 +399,7 @@ public class ProductService {
// 选择少数量/打印不干胶按钮 // 选择少数量/打印不干胶按钮
if ("少数量".contentEquals(dto.getStickerKind()) || "专版打印".contentEquals(dto.getStickerKind())) { if ("少数量".contentEquals(dto.getStickerKind()) || "专版打印".contentEquals(dto.getStickerKind())) {
stickersList = lessSticker(dto, kind, number, width, length, count, stickersList); stickersList = lessSticker(dto, kind, number, width, length, count, stickersList, role);
if (stickersList.get(0) == null) { if (stickersList.get(0) == null) {
return null; return null;
@@ -1364,6 +1364,21 @@ public class ProductService {
//第二款开始的设计费按照式设计内容 //第二款开始的设计费按照式设计内容
if (number > 1) { if (number > 1) {
double desFee = 0; double desFee = 0;
if (role.indexOf("1045") == -1) {
if (number == 2) {
desFee = 5.5;
}
if (number == 3) {
desFee = 5.5 + 3.5;
}
if (number > 3) {
desFee = 5.5 + 3.5 + 2.5 * (number - 3);
}
for (Product product : priceList) {
product.setPrice(Math.ceil(product.getPrice() + desFee));
}
} else {
if (dto.getP() == 1) { if (dto.getP() == 1) {
desFee = 0.6; desFee = 0.6;
} else if (dto.getP() == 2 || dto.getP() == 3) { } else if (dto.getP() == 2 || dto.getP() == 3) {
@@ -1379,6 +1394,8 @@ public class ProductService {
product.setPrice(Math.floor(product.getPrice() + desFee * (number - 1))); product.setPrice(Math.floor(product.getPrice() + desFee * (number - 1)));
} }
} }
}
return priceList; return priceList;
} else { } else {
// 产品位数 // 产品位数
@@ -2320,7 +2337,6 @@ public class ProductService {
} else { } else {
priceList = new PriceUtils().UVStickerPrice(length, width, count, number, dto.getCraftMo(), dto.getCraft()); priceList = new PriceUtils().UVStickerPrice(length, width, count, number, dto.getCraftMo(), dto.getCraft());
} }
if (priceList.get(0).getCount() != count) { if (priceList.get(0).getCount() != count) {
priceList.get(0).setCount(count); priceList.get(0).setCount(count);
} }
@@ -2655,6 +2671,37 @@ public class ProductService {
} }
} }
} }
if (role.indexOf("1045") == -1) {
if (number > 1) {
double designFee = 0;
if (!dto.getProTypeLabel().equals("婚礼报纸") && !dto.getProTypeLabel().equals("菜单")) {
if (number == 2) {
designFee = 5.5;
}
if (number == 3) {
designFee = 5.5 + 3.5;
}
if (number > 3) {
designFee = 5.5 + 3.5 + 2.5 * (number - 3);
}
}
if (dto.getProTypeLabel().equals("菜单") || dto.getProTypeLabel().equals("婚礼报纸")) {
if (number == 2) {
designFee = 17;
}
if (number == 3) {
designFee = 17 + 17;
}
if (number > 3) {
designFee = 17 + 17 + 12 * (number - 3);
}
}
for (Product product : priceList) {
product.setPrice(Math.ceil(product.getPrice() + designFee));
}
}
} else {
//第二款开始的设计费按照式设计内容 //第二款开始的设计费按照式设计内容
if (!dto.getProTypeLabel().equals("婚礼报纸") && !dto.getProTypeLabel().equals("菜单") && number > 1) { if (!dto.getProTypeLabel().equals("婚礼报纸") && !dto.getProTypeLabel().equals("菜单") && number > 1) {
@@ -2688,6 +2735,7 @@ public class ProductService {
product.setPrice(Math.floor(product.getPrice() + desFee * (number - 1))); product.setPrice(Math.floor(product.getPrice() + desFee * (number - 1)));
} }
} }
}
return priceList; return priceList;
// 便签本/联单 // 便签本/联单
@@ -3101,6 +3149,20 @@ public class ProductService {
if (("0".equals(kind) && "0".equals(kind2)) || ("1".equals(kind) && ("1".equals(kind2) || "3".equals(kind2) || "8".equals(kind2) || "15".equals(kind2))) || "2".equals(kind)) { if (("0".equals(kind) && "0".equals(kind2)) || ("1".equals(kind) && ("1".equals(kind2) || "3".equals(kind2) || "8".equals(kind2) || "15".equals(kind2))) || "2".equals(kind)) {
double desFee = 0; double desFee = 0;
if (role.indexOf("1045") == -1) {
if (number == 2) {
desFee = 11;
}
if (number == 3) {
desFee = 11 + 11;
}
if (number > 3) {
desFee = 11 + 11 + 11 * (number - 3);
}
for (Product product : priceList) {
product.setPrice(Math.ceil(product.getPrice() + desFee));
}
} else {
if (dto.getP() == 1 || dto.getP() == 2 || dto.getP() == 3) { if (dto.getP() == 1 || dto.getP() == 2 || dto.getP() == 3) {
desFee = 3; desFee = 3;
} else if (dto.getP() == 4) { } else if (dto.getP() == 4) {
@@ -3114,6 +3176,8 @@ public class ProductService {
for (Product product : priceList) { for (Product product : priceList) {
product.setPrice(Math.floor(product.getPrice() + desFee * (number - 1))); product.setPrice(Math.floor(product.getPrice() + desFee * (number - 1)));
} }
}
} }
} }
@@ -3319,7 +3383,7 @@ public class ProductService {
* if (priceList.size() >= 4) { priceList = priceList.subList(0, 4); } * if (priceList.size() >= 4) { priceList = priceList.subList(0, 4); }
*/ */
String[] ztCraft = {"背胶"}; String[] ztCraft = {"背胶"};
priceList = ZsPrice.getSmPrice(count, length, width, priceList, number, ztCraft, dto); priceList = ZsPrice.getSmPrice(count, length, width, priceList, number, ztCraft, dto, role);
for (Product product : priceList) { for (Product product : priceList) {
if (dto.getKindValue().equals("0") || dto.getKindValue().equals("10")) { if (dto.getKindValue().equals("0") || dto.getKindValue().equals("10")) {
wei = 0.38; wei = 0.38;
@@ -3792,7 +3856,7 @@ public class ProductService {
product.setPrice(Math.floor(product.getPrice() * number)); product.setPrice(Math.floor(product.getPrice() * number));
} }
} else {// 打印的价格和pvc不干胶打印价格一样--23.8.17更新后取消这个 } else {// 打印的价格和pvc不干胶打印价格一样--23.8.17更新后取消这个
priceList = lessSticker(dto, proType, number, width, length, count, priceList); priceList = lessSticker(dto, proType, number, width, length, count, priceList, role);
return priceList; return priceList;
} }
// 重量 // 重量
@@ -3932,7 +3996,7 @@ public class ProductService {
return priceList; return priceList;
case "数码PVC": case "数码PVC":
// 价格按照大纸裁 // 价格按照大纸裁
priceList = ZsPrice.getSmPrice(count, length, width, priceList, number, dto.getCraft(), dto); priceList = ZsPrice.getSmPrice(count, length, width, priceList, number, dto.getCraft(), dto, role);
for (Product product : priceList) { for (Product product : priceList) {
if (dto.getKindValue().equals("1") || dto.getKindValue().equals("2") || dto.getKindValue().equals("3")) { if (dto.getKindValue().equals("1") || dto.getKindValue().equals("2") || dto.getKindValue().equals("3")) {
wei = 0.38; wei = 0.38;
@@ -4348,7 +4412,7 @@ public class ProductService {
} }
private List<Product> lessSticker(Product dto, String kind, Integer number, Double width, Double length, private List<Product> lessSticker(Product dto, String kind, Integer number, Double width, Double length,
int count, List<Product> stickersList) { int count, List<Product> stickersList, String role) {
double price = 0.0; double price = 0.0;
// 一张大纸收费 // 一张大纸收费
double addPrice = 0.0; double addPrice = 0.0;
@@ -4418,6 +4482,17 @@ public class ProductService {
} }
if (number > 1) { if (number > 1) {
double desFee = 0; double desFee = 0;
if (role.indexOf("1045") == -1) {
if (number == 2) {
desFee = 3.5;
}
if (number == 3) {
desFee = 3.5 + 2.5;
}
if (number > 3) {
desFee = 3.5 + 2.5 + 1.5 * (number - 3);
}
} else {
if (dto.getP() == 1) { if (dto.getP() == 1) {
desFee = 0.6; desFee = 0.6;
} else if (dto.getP() == 2 || dto.getP() == 3) { } else if (dto.getP() == 2 || dto.getP() == 3) {
@@ -4429,11 +4504,14 @@ public class ProductService {
} else { } else {
desFee = 5; desFee = 5;
} }
desFee = desFee * number;
}
for (Product product : stickersList) { for (Product product : stickersList) {
if ("0".equals(kind) && "纯烫金".equals(dto.getCraftTang())) { if ("0".equals(kind) && "纯烫金".equals(dto.getCraftTang())) {
product.setPrice(product.getPrice() * number); product.setPrice(product.getPrice() * number);
} else { } else {
product.setPrice(Math.floor(product.getPrice() + desFee * number)); product.setPrice(Math.ceil(product.getPrice() + desFee));
} }
} }
+16 -1
Ver Arquivo
@@ -36,7 +36,7 @@ public class ZsPrice {
return list; return list;
} }
public static List<Product> getSmPrice(int count, Double length, Double width, List<Product> list, Integer number, String[] craft, Product dto) { public static List<Product> getSmPrice(int count, Double length, Double width, List<Product> list, Integer number, String[] craft, Product dto, String role) {
double price = 60; double price = 60;
double l = 438.0; double l = 438.0;
double w = 304.0; double w = 304.0;
@@ -68,6 +68,19 @@ public class ZsPrice {
if (number > 1) { if (number > 1) {
double desFee = 0; double desFee = 0;
if (role.indexOf("1045") == -1) {
if (number == 2) {
desFee = 5.75;
}
if (number == 3) {
desFee = 5.75 + 3.75;
}
if (number > 3) {
desFee = 5.75 + 3.75 + 2.75 * (number - 3);
}
price += desFee;
} else {
if (dto.getP() == 1 || dto.getP() == 2 || dto.getP() == 3) { if (dto.getP() == 1 || dto.getP() == 2 || dto.getP() == 3) {
desFee = 3; desFee = 3;
} else if (dto.getP() == 4) { } else if (dto.getP() == 4) {
@@ -79,6 +92,8 @@ public class ZsPrice {
} }
price += desFee * (number - 1); price += desFee * (number - 1);
} }
}
Product pro = new Product(); Product pro = new Product();
pro.setPrice(Math.ceil(price)); pro.setPrice(Math.ceil(price));
+289 -248
Ver Arquivo
@@ -1,183 +1,193 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" <%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%> pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>领淘报价网</title> <title>领淘报价网</title>
<link href="${pageContext.request.contextPath}/static/layui/css/layui.css" rel="stylesheet"> <link href="${pageContext.request.contextPath}/static/layui/css/layui.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/static/css/jquery-ui.min.css" rel="stylesheet"/> <link href="${pageContext.request.contextPath}/static/css/jquery-ui.min.css" rel="stylesheet"/>
<script src="${pageContext.request.contextPath}/static/layui/layui.js"></script> <script src="${pageContext.request.contextPath}/static/layui/layui.js"></script>
<script src="${pageContext.request.contextPath}/static/js/jquery.min.js"></script> <script src="${pageContext.request.contextPath}/static/js/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/jquery-ui.min.js"></script> <script src="${pageContext.request.contextPath}/static/js/jquery-ui.min.js"></script>
<style> <style>
/* 搜索框位置 */ /* 搜索框位置 */
.search { .search {
position: absolute; position: absolute;
right: 205px; right: 205px;
top: -45px; top: -45px;
} }
.layui-input-block{
min-height:0px;
}
.ui-menu { .layui-input-block {
min-height: 0px;
}
.ui-menu {
z-index: 999; z-index: 999;
} }
.layui-tab-card>.layui-tab-title {
background-color: #009688;
}
.layui-tab-content{
padding:0px;
}
.layui-show{
height:100%;
}
.layui-tab-title li .layui-tab-close{
margin-left:30px;
}
a.site-demo-active{
cursor: pointer;
}
p { .layui-tab-card > .layui-tab-title {
background-color: #009688;
}
.layui-tab-content {
padding: 0px;
}
.layui-show {
height: 100%;
}
.layui-tab-title li .layui-tab-close {
margin-left: 30px;
}
a.site-demo-active {
cursor: pointer;
}
p {
font-size: 16px; font-size: 16px;
line-height: 30px; line-height: 30px;
} }
.middle {
.middle {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
text-align: center; text-align: center;
user-select: none; user-select: none;
} }
.label {
.label {
font-size: 2.2rem; font-size: 2.2rem;
} }
.time {
.time {
color: #d99c3b; color: #d99c3b;
text-transform: uppercase; text-transform: uppercase;
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.happiness { .happiness {
font-family: 'fangsong'; font-family: 'fangsong';
} }
.happiness img{ .happiness img {
height:30px; height: 30px;
} }
.happiness>p { .happiness > p {
color: black; color: black;
font-weight: both; font-weight: both;
font-size: 28px; font-size: 28px;
background-image: -webkit-linear-gradient(left, red, yellow,#147B96, #E6D205 25%, #147B96 50%, #E6D205 75%, #147B96); background-image: -webkit-linear-gradient(left, red, yellow, #147B96, #E6D205 25%, #147B96 50%, #E6D205 75%, #147B96);
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-background-size: 200% 100%; -webkit-background-size: 200% 100%;
/* -webkit-animation: maskedAnimation 4s infinite linear; */ /* -webkit-animation: maskedAnimation 4s infinite linear; */
animation: san 3s linear,happiness2 3s linear,maskedAnimation 4s infinite linear; animation: san 3s linear, happiness2 3s linear, maskedAnimation 4s infinite linear;
/* animation-iteration-count:1 */ /* animation-iteration-count:1 */
} }
.happiness>p:nth-child(1){ .happiness > p:nth-child(1) {
/* background: rgba(222,20,58,0.7); /* background: rgba(222,20,58,0.7);
box-shadow: inset 10px 10px 10px rgba(222,20,58,0.7); */ box-shadow: inset 10px 10px 10px rgba(222,20,58,0.7); */
animation-delay: 1s; animation-delay: 1s;
} }
.happiness>p:nth-child(2) { .happiness > p:nth-child(2) {
/* background: rgba(242,112,45,0.7); /* background: rgba(242,112,45,0.7);
box-shadow: inset 10px 10px 10px rgba(222,85,14,0.7); */ box-shadow: inset 10px 10px 10px rgba(222,85,14,0.7); */
animation-delay: 1.2s; animation-delay: 1.2s;
} }
.happiness>p:nth-child(3) { .happiness > p:nth-child(3) {
/* background: rgba(242,194,58,0.7); /* background: rgba(242,194,58,0.7);
box-shadow: inset 10px 10px 10px rgba(234,177,15,0.7); */ box-shadow: inset 10px 10px 10px rgba(234,177,15,0.7); */
animation-delay: 1.4s; animation-delay: 1.4s;
} }
.happiness>p:nth-child(4) { .happiness > p:nth-child(4) {
/* background: rgba(102,252,85,0.7); /* background: rgba(102,252,85,0.7);
box-shadow: inset 10px 10px 10px rgba(102,252,85,0.7); */ box-shadow: inset 10px 10px 10px rgba(102,252,85,0.7); */
animation-delay: 1.6s; animation-delay: 1.6s;
} }
.happiness>p:nth-child(5) { .happiness > p:nth-child(5) {
/* background: rgba(0,255,255,0.7); /* background: rgba(0,255,255,0.7);
box-shadow: inset 10px 10px 10px rgba(0,255,255,0.7); */ box-shadow: inset 10px 10px 10px rgba(0,255,255,0.7); */
animation-delay: 1.8s; animation-delay: 1.8s;
} }
.happiness>p:nth-child(6) { .happiness > p:nth-child(6) {
/* background: rgba(30,144,255,0.7); /* background: rgba(30,144,255,0.7);
box-shadow: inset 10px 10px 10px rgba(30,144,255,0.7); */ box-shadow: inset 10px 10px 10px rgba(30,144,255,0.7); */
animation-delay: 2s; animation-delay: 2s;
} }
.happiness>p:nth-child(7) { .happiness > p:nth-child(7) {
/* background: rgba(148,0,211,0.7); /* background: rgba(148,0,211,0.7);
box-shadow: inset 10px 10px 10px rgba(148,0,211,0.7); */ box-shadow: inset 10px 10px 10px rgba(148,0,211,0.7); */
animation-delay: 2.2s; animation-delay: 2.2s;
} }
.happiness>p:nth-child(8) { .happiness > p:nth-child(8) {
/* background: rgba(255, 130, 171,0.7); /* background: rgba(255, 130, 171,0.7);
box-shadow: inset 10px 10px 10px rgba(255, 130, 171,0.7); */ box-shadow: inset 10px 10px 10px rgba(255, 130, 171,0.7); */
animation-delay: 2.4s; animation-delay: 2.4s;
} }
.happiness>p:nth-child(9) { .happiness > p:nth-child(9) {
/* background: rgba(144, 238, 144,0.7); /* background: rgba(144, 238, 144,0.7);
box-shadow: inset 10px 10px 10px rgba(144, 238, 144,0.7); */ box-shadow: inset 10px 10px 10px rgba(144, 238, 144,0.7); */
animation-delay: 2.6s; animation-delay: 2.6s;
} }
.happiness>p:nth-child(10) { .happiness > p:nth-child(10) {
/* background: rgba(255, 246, 143,0.7); /* background: rgba(255, 246, 143,0.7);
box-shadow: inset 10px 10px 10px rgba(255, 246, 143,0.7); */ box-shadow: inset 10px 10px 10px rgba(255, 246, 143,0.7); */
animation-delay: 2.8s; animation-delay: 2.8s;
} }
@keyframes san{ @keyframes san {
0%,100%{ 0%, 100% {
color: rgb(1, 231, 247); color: rgb(1, 231, 247);
text-shadow: 0 0 500px rgb(1, 231, 247); text-shadow: 0 0 500px rgb(1, 231, 247);
} }
20%,80%{ 20%, 80% {
background: transparent; background: transparent;
color: transparent; color: transparent;
box-shadow: none; box-shadow: none;
text-shadow: none; text-shadow: none;
} }
}
@keyframes happiness2{
100%{
transform: rotate(360deg) translate(0,0);
} }
}
/* 气球样式 */ @keyframes happiness2 {
:root { 100% {
transform: rotate(360deg) translate(0, 0);
}
}
/* 气球样式 */
:root {
--w: 140px; --w: 140px;
--half: calc(var(--w) / 2); --half: calc(var(--w) / 2);
} }
#wrap {
#wrap {
height: 100vh; height: 100vh;
display: flex; display: flex;
justify-content: center; justify-content: center;
padding-top: 20px; padding-top: 20px;
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
} }
.balloon { .balloon {
width: var(--w); width: var(--w);
height: var(--w); height: var(--w);
background: green; background: green;
@@ -189,15 +199,15 @@ p {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.balloon h2 { .balloon h2 {
color: #fff; color: #fff;
font-size: 50px; font-size: 50px;
transform: rotate(-45deg); transform: rotate(-45deg);
} }
.balloon:before { .balloon:before {
content: ''; content: '';
width: 0; width: 0;
height: 0; height: 0;
@@ -208,129 +218,142 @@ p {
border: 20px solid; border: 20px solid;
border-color: transparent #000 transparent transparent; border-color: transparent #000 transparent transparent;
} }
.balloon:nth-child(1){
.balloon:nth-child(1) {
background: rgba(182, 15, 97, 0.5); background: rgba(182, 15, 97, 0.5);
box-shadow: inset 10px 10px 10px rgba(135,11,72,0.5); box-shadow: inset 10px 10px 10px rgba(135, 11, 72, 0.5);
/* animation-fill-mode: forwards; */ /* animation-fill-mode: forwards; */
animation: rise 2s forwards,fly1 6s 4s ease-in-out infinite; animation: rise 2s forwards, fly1 6s 4s ease-in-out infinite;
}
.balloon:nth-child(1):before{
border-color: transparent rgba(182, 15, 97, 0.7) transparent transparent;
}
.balloon:nth-child(2){
background: rgba(45,181,167,0.7);
box-shadow: inset 10px 10px 10px rgba(35,140,129,0.7);
animation: rise 3s forwards,fly4 6s 3s ease-in-out infinite;
}
.balloon:nth-child(2):before{
border-color: transparent rgba(45,181,167,0.7) transparent transparent;
}
.balloon:nth-child(3){
background: rgba(190,61,244,0.7);
box-shadow: inset 10px 10px 10px rgba(173,14,240,0.7);
animation: rise 3.5s forwards,fly1 3s 3s ease-in-out infinite;
}
.balloon:nth-child(3):before{
border-color: transparent rgba(190,61,244,0.7) transparent transparent;
}
.balloon:nth-child(4){
background: rgba(180,224,67,0.7);
box-shadow: inset 10px 10px 10px rgba(158,206,34,0.7);
animation: rise 5s forwards,fly3 5s 5s ease-in-out infinite;
}
.balloon:nth-child(4):before{
border-color: transparent rgba(180,224,67,0.7) transparent transparent;
}
.balloon:nth-child(5){
background: rgba(242,194,58,0.7);
box-shadow: inset 10px 10px 10px rgba(234,177,15,0.7);
animation: rise 4s forwards,fly2 4s 4s ease-in-out infinite;
}
.balloon:nth-child(5):before{
border-color: transparent rgba(242,194,58,0.7) transparent transparent;
}
.balloon:nth-child(6){
background: rgba(242,112,45,0.7);
box-shadow: inset 10px 10px 10px rgba(222,85,14,0.7);
animation: rise 3s forwards,fly2 6s 5s ease-in-out infinite;
}
.balloon:nth-child(6):before{
border-color: transparent rgba(242,112,45,0.7) transparent transparent;
}
/* 气球上升 */
@keyframes rise{
100%{
transform: rotate(45deg) translate(0,0);
} }
}
/* 气球运动轨迹,4种 */ .balloon:nth-child(1):before {
@keyframes fly1{ border-color: transparent rgba(182, 15, 97, 0.7) transparent transparent;
0%,100%{ }
.balloon:nth-child(2) {
background: rgba(45, 181, 167, 0.7);
box-shadow: inset 10px 10px 10px rgba(35, 140, 129, 0.7);
animation: rise 3s forwards, fly4 6s 3s ease-in-out infinite;
}
.balloon:nth-child(2):before {
border-color: transparent rgba(45, 181, 167, 0.7) transparent transparent;
}
.balloon:nth-child(3) {
background: rgba(190, 61, 244, 0.7);
box-shadow: inset 10px 10px 10px rgba(173, 14, 240, 0.7);
animation: rise 3.5s forwards, fly1 3s 3s ease-in-out infinite;
}
.balloon:nth-child(3):before {
border-color: transparent rgba(190, 61, 244, 0.7) transparent transparent;
}
.balloon:nth-child(4) {
background: rgba(180, 224, 67, 0.7);
box-shadow: inset 10px 10px 10px rgba(158, 206, 34, 0.7);
animation: rise 5s forwards, fly3 5s 5s ease-in-out infinite;
}
.balloon:nth-child(4):before {
border-color: transparent rgba(180, 224, 67, 0.7) transparent transparent;
}
.balloon:nth-child(5) {
background: rgba(242, 194, 58, 0.7);
box-shadow: inset 10px 10px 10px rgba(234, 177, 15, 0.7);
animation: rise 4s forwards, fly2 4s 4s ease-in-out infinite;
}
.balloon:nth-child(5):before {
border-color: transparent rgba(242, 194, 58, 0.7) transparent transparent;
}
.balloon:nth-child(6) {
background: rgba(242, 112, 45, 0.7);
box-shadow: inset 10px 10px 10px rgba(222, 85, 14, 0.7);
animation: rise 3s forwards, fly2 6s 5s ease-in-out infinite;
}
.balloon:nth-child(6):before {
border-color: transparent rgba(242, 112, 45, 0.7) transparent transparent;
}
/* 气球上升 */
@keyframes rise {
100% {
transform: rotate(45deg) translate(0, 0);
}
}
/* 气球运动轨迹,4种 */
@keyframes fly1 {
0%, 100% {
transform: rotate(45deg) translateY(0); transform: rotate(45deg) translateY(0);
} }
50%{ 50% {
transform: rotate(53deg) translateY(-20px); transform: rotate(53deg) translateY(-20px);
} }
} }
@keyframes fly2{ @keyframes fly2 {
0%,100%{ 0%, 100% {
transform: rotate(45deg) translateY(0); transform: rotate(45deg) translateY(0);
} }
50%{ 50% {
transform: rotate(37deg) translateY(-30px); transform: rotate(37deg) translateY(-30px);
} }
} }
@keyframes fly3{ @keyframes fly3 {
0%,100%{ 0%, 100% {
transform: rotate(45deg) translateY(0); transform: rotate(45deg) translateY(0);
} }
50%{ 50% {
transform: rotate(37deg) translate(-20px,-30px); transform: rotate(37deg) translate(-20px, -30px);
}
} }
}
@keyframes fly4{ @keyframes fly4 {
0%,100%{ 0%, 100% {
transform: rotate(45deg) translateY(0); transform: rotate(45deg) translateY(0);
} }
50%{ 50% {
transform: rotate(55deg) translate(-15px,-10px); transform: rotate(55deg) translate(-15px, -10px);
}
} }
}
@keyframes maskedAnimation { @keyframes maskedAnimation {
0% { 0% {
background-position: 0 0; background-position: 0 0;
} }
100% { 100% {
background-position: -100% 0; background-position: -100% 0;
} }
} }
#tong{ #tong {
width:100%; width: 100%;
height:100%; height: 100%;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
background-image:url("../images/birthDay.png"); background-image: url("../images/birthDay.png");
} }
#view{
#view {
position: absolute; position: absolute;
left: 650px; left: 650px;
top:250px; top: 250px;
} }
</style> </style>
</head> </head>
<script id="happinessiInfo" type="text/html"> <script id="happinessiInfo" type="text/html">
<div style="display:inline-block;" class="layui-anim layui-anim-up layui-anim-rotate happiness"> <div style="display:inline-block;" class="layui-anim layui-anim-up layui-anim-rotate happiness">
@@ -355,7 +378,7 @@ p {
<source src="http://47.114.150.226:8080/erp/abc/birthDay//20210706//生日快乐.mkv" type="video/ogg"> <source src="http://47.114.150.226:8080/erp/abc/birthDay//20210706//生日快乐.mkv" type="video/ogg">
</video>--> </video>-->
<body class="layui-layout-body"> <body class="layui-layout-body">
<div id="tong" style="display:none"> <div id="tong" style="display:none">
<div id="wrap" style=""> <div id="wrap" style="">
<div class="balloon"> <div class="balloon">
<h2></h2> <h2></h2>
@@ -377,10 +400,11 @@ p {
</div> </div>
</div> </div>
<div id="view" style="display:inline-block;"></div> <div id="view" style="display:inline-block;"></div>
</div> </div>
<div class="layui-layout layui-layout-admin"> <div class="layui-layout layui-layout-admin">
<div class="layui-header" id="flake" style="background-color: #780f0f"> <div class="layui-header" id="flake" style="background-color: #780f0f">
<div class="layui-logo" style="font-weight: bolder;color: orange;font-family: STXingkai;"><span style="font-size: 25px;"><i>lingtao·领淘</i></span></div> <div class="layui-logo" style="font-weight: bolder;color: orange;font-family: STXingkai;"><span
style="font-size: 25px;"><i>lingtao·领淘</i></span></div>
<%-- <c:if test ="${ !sessionScope.USER_SESSION.role.contains('999')}"> --%> <%-- <c:if test ="${ !sessionScope.USER_SESSION.role.contains('999')}"> --%>
<!-- 雪花背景 --> <!-- 雪花背景 -->
<canvas id="canvas"></canvas> <canvas id="canvas"></canvas>
@@ -403,7 +427,7 @@ p {
<input type="hidden" value="${sessionScope.USER_SESSION.readLogStatus}" id="readLogStatus"> <input type="hidden" value="${sessionScope.USER_SESSION.readLogStatus}" id="readLogStatus">
<input type="hidden" id="search-url"> <input type="hidden" id="search-url">
<!-- 答题通过显示 --> <!-- 答题通过显示 -->
<c:if test ="${sessionScope.USER_SESSION.sysStatus == 2}"> <c:if test="${sessionScope.USER_SESSION.sysStatus == 2}">
<input type="text" name="proTypeLabel" id="proTypeLabel" style="width:350px;" <input type="text" name="proTypeLabel" id="proTypeLabel" style="width:350px;"
autocomplete="on" placeholder="搜索产品名称" class="layui-input search"> autocomplete="on" placeholder="搜索产品名称" class="layui-input search">
<button type="button" onclick="searching()" class="layui-btn layui-btn-normal search">搜索</button> <button type="button" onclick="searching()" class="layui-btn layui-btn-normal search">搜索</button>
@@ -421,7 +445,8 @@ p {
<a data-url="system/bug/addBug.jsp" data-id="问题反馈" data-title="问题反馈" class="site-demo-active">问题反馈</a> <a data-url="system/bug/addBug.jsp" data-id="问题反馈" data-title="问题反馈" class="site-demo-active">问题反馈</a>
</dd> </dd>
<dd> <dd>
<a data-url="system/user/updatePassword.jsp" data-id="修改密码" data-title="修改密码" class="site-demo-active">修改密码</a> <a data-url="system/user/updatePassword.jsp" data-id="修改密码" data-title="修改密码"
class="site-demo-active">修改密码</a>
</dd> </dd>
<dd> <dd>
<a class="site-demo-active" href="${pageContext.request.contextPath}/SysUser/logout">退出</a> <a class="site-demo-active" href="${pageContext.request.contextPath}/SysUser/logout">退出</a>
@@ -438,10 +463,10 @@ p {
<a data-url="readme.jsp" data-id="首页" data-title="首页" class="site-demo-active">使用前必读</a> <a data-url="readme.jsp" data-id="首页" data-title="首页" class="site-demo-active">使用前必读</a>
<!-- <a href="product/diploma.jsp" target="rightFrame">毕业证书</a> --> <!-- <a href="product/diploma.jsp" target="rightFrame">毕业证书</a> -->
</li> </li>
<c:forEach items = "${sessionScope.USERPERS_SESSION}" var="parent"> <c:forEach items="${sessionScope.USERPERS_SESSION}" var="parent">
<!-- 答题通过显示 --> <!-- 答题通过显示 -->
<c:if test ="${sessionScope.USER_SESSION.sysStatus == 2}"> <c:if test="${sessionScope.USER_SESSION.sysStatus == 2}">
<c:if test ="${ parent.parentId == null}"> <c:if test="${ parent.parentId == null}">
<li class="layui-nav-item layui-nav-itemed"> <li class="layui-nav-item layui-nav-itemed">
<a class="" href="javascript:;">${parent.perName}</a> <a class="" href="javascript:;">${parent.perName}</a>
<dl class="layui-nav-child"> <dl class="layui-nav-child">
@@ -450,22 +475,33 @@ p {
<c:if test="${Schild.parentId == 1}"> <c:if test="${Schild.parentId == 1}">
<c:if test="${Schild.thirdOrderName != null}"> <c:if test="${Schild.thirdOrderName != null}">
<dd> <dd>
<a href="javascript:;">${Schild.thirdOrderName}<span class="layui-nav-more"></span></a> <a href="javascript:;">${Schild.thirdOrderName}<span
class="layui-nav-more"></span></a>
<dl class="layui-nav-child"> <dl class="layui-nav-child">
<c:forEach items="${sessionScope.USERPERS_SESSION}" var="Tchild"> <c:forEach items="${sessionScope.USERPERS_SESSION}"
var="Tchild">
<c:if test="${Tchild.thirdParentId != null && Tchild.thirdParentId == Schild.perId}"> <c:if test="${Tchild.thirdParentId != null && Tchild.thirdParentId == Schild.perId}">
<dd><a data-url="${pageContext.request.contextPath}/${Tchild.url}" data-id="${Tchild.perName}" data-title="${Tchild.perName}" class="site-demo-active">${Tchild.perName}</a></dd> <dd>
<a data-url="${pageContext.request.contextPath}/${Tchild.url}"
data-id="${Tchild.perName}"
data-title="${Tchild.perName}"
class="site-demo-active">${Tchild.perName}</a>
</dd>
</c:if> </c:if>
</c:forEach> </c:forEach>
</dl> </dl>
</dd> </dd>
</c:if> </c:if>
<c:if test="${Schild.thirdParentId == null}"> <c:if test="${Schild.thirdParentId == null}">
<dd><a data-url="${pageContext.request.contextPath}/${Schild.url}" data-id="${Schild.perName}" data-title="${Schild.perName}" class="site-demo-active">${Schild.perName}</a></dd> <dd><a data-url="${pageContext.request.contextPath}/${Schild.url}"
data-id="${Schild.perName}" data-title="${Schild.perName}"
class="site-demo-active">${Schild.perName}</a></dd>
</c:if> </c:if>
</c:if> </c:if>
<c:if test="${Schild.parentId != 1}"> <c:if test="${Schild.parentId != 1}">
<dd><a data-url="${pageContext.request.contextPath}/${Schild.url}" data-id="${Schild.perName}" data-title="${Schild.perName}" class="site-demo-active">${Schild.perName}</a></dd> <dd><a data-url="${pageContext.request.contextPath}/${Schild.url}"
data-id="${Schild.perName}" data-title="${Schild.perName}"
class="site-demo-active">${Schild.perName}</a></dd>
</c:if> </c:if>
</c:if> </c:if>
</c:forEach> </c:forEach>
@@ -502,15 +538,15 @@ p {
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
window.onload = function(){ window.onload = function () {
setInterval("toggleSound()",100); setInterval("toggleSound()", 100);
} }
function toggleSound() { function toggleSound() {
var music = document.getElementById("vd");//获取ID var music = document.getElementById("vd");//获取ID
if(music){ if (music) {
if (music.paused) { //判读是否播放 if (music.paused) { //判读是否播放
music.paused = false; music.paused = false;
music.play(); //没有就播放 music.play(); //没有就播放
@@ -519,6 +555,7 @@ p {
} }
</script> </script>
<script> <script>
var system_isPdd = ${ sessionScope.USER_SESSION.role.contains('1045') };
// 不给客服看 // 不给客服看
/* if(${ !sessionScope.USER_SESSION.role.contains('999') }){ */ /* if(${ !sessionScope.USER_SESSION.role.contains('999') }){ */
// 春节倒计时 // 春节倒计时
@@ -566,68 +603,71 @@ p {
constructor() { constructor() {
this.init(); //构造函数,调用定义好的init()方法; this.init(); //构造函数,调用定义好的init()方法;
} }
init(){
init() {
this.position = { //雪花对象的位置; this.position = { //雪花对象的位置;
x:Math.random() * width, //x坐标随机; x: Math.random() * width, //x坐标随机;
y:Math.random() * height, //y坐标随机; y: Math.random() * height, //y坐标随机;
} }
this.speed = Math.random() * 10; //雪花下落速度为0-10以内的随机数; this.speed = Math.random() * 10; //雪花下落速度为0-10以内的随机数;
this.r = Math.random() * 4; //雪花的半径为0-6以内的随机数; this.r = Math.random() * 4; //雪花的半径为0-6以内的随机数;
this.transparency = Math.random();//设置雪花的透明度为随机; this.transparency = Math.random();//设置雪花的透明度为随机;
this.color = { this.color = {
r1:Math.random() * 255, //雪花颜色随机; r1: Math.random() * 255, //雪花颜色随机;
g:Math.random() * 255, g: Math.random() * 255,
b:Math.random() * 255, b: Math.random() * 255,
} }
} }
draw() {//雪花绘制方法; draw() {//雪花绘制方法;
this.position.y++; //y坐标每次递增1像素; this.position.y++; //y坐标每次递增1像素;
this.position.x--; this.position.x--;
this.transparency -= 0.01; //透明度每次递减0.01; this.transparency -= 0.01; //透明度每次递减0.01;
if(this.transparency <= 0){ //透明度小于0,即雪花消失,重新绘制雪花; if (this.transparency <= 0) { //透明度小于0,即雪花消失,重新绘制雪花;
this.init(); this.init();
} }
context.beginPath(); //开始一个新的图形绘制; context.beginPath(); //开始一个新的图形绘制;
//context.fillStyle="rgba("+this.color.r1+","+this.color.g+","+this.color.b+","+this.transparency+")";//根据类模型绘制圆形雪花; //context.fillStyle="rgba("+this.color.r1+","+this.color.g+","+this.color.b+","+this.transparency+")";//根据类模型绘制圆形雪花;
context.fillStyle = "#FFF"; context.fillStyle = "#FFF";
context.arc(this.position.x,this.position.y,this.r,0,Math.PI*2);//填充雪花的颜色; context.arc(this.position.x, this.position.y, this.r, 0, Math.PI * 2);//填充雪花的颜色;
context.fill(); context.fill();
} }
} }
for(var i = 0;i < 100;i++){ for (var i = 0; i < 100; i++) {
var snow = new Snowflake(); //实例化1000个雪花对象; var snow = new Snowflake(); //实例化1000个雪花对象;
snowArray.push(snow); //将雪花对象添加到数组中; snowArray.push(snow); //将雪花对象添加到数组中;
} }
// var length=snowArray.length; // var length=snowArray.length;
// 定义动画效果; // 定义动画效果;
function cartoon(){ function cartoon() {
context.clearRect(0, 0, width, height);//动画完成一次进行清屏操作; context.clearRect(0, 0, width, height);//动画完成一次进行清屏操作;
for(var j = 0;j < snowArray.length;j++){ for (var j = 0; j < snowArray.length; j++) {
snowArray[j].draw();//将实例化好的每个雪花对象在画布上画出来; snowArray[j].draw();//将实例化好的每个雪花对象在画布上画出来;
} }
requestAnimationFrame(cartoon);//递归调用动画效果; requestAnimationFrame(cartoon);//递归调用动画效果;
} }
/* } */ /* } */
// 搜索菜单 // 搜索菜单
$("#proTypeLabel").autocomplete({ $("#proTypeLabel").autocomplete({
// 通过函数自定义处理数据源 // 通过函数自定义处理数据源
source: function(request, response){ source: function (request, response) {
// request对象只有一个term属性,对应用户输入的文本 // request对象只有一个term属性,对应用户输入的文本
// response是一个函数,在你自行处理并获取数据后,将JSON数据交给该函数处理,以便于autocomplete根据数据显示列表 // response是一个函数,在你自行处理并获取数据后,将JSON数据交给该函数处理,以便于autocomplete根据数据显示列表
$.ajax( { $.ajax({
url: '${pageContext.request.contextPath}/getSearchPro', url: '${pageContext.request.contextPath}/getSearchPro',
dataType: 'json', dataType: 'json',
data:{ data: {
'likeProTypeLabel' : $("#proTypeLabel").val(), 'likeProTypeLabel': $("#proTypeLabel").val(),
}, },
success: function(dataObj){ success: function (dataObj) {
var data = [] var data = []
for (var i = 0; i < dataObj.length; i++) { for (var i = 0; i < dataObj.length; i++) {
var data1={} var data1 = {}
//data.push(dataObj[i].proTypeLabel) //data.push(dataObj[i].proTypeLabel)
data1.label = dataObj[i].proTypeLabel data1.label = dataObj[i].proTypeLabel
data1.value = dataObj[i].proTypeLabel data1.value = dataObj[i].proTypeLabel
@@ -639,20 +679,20 @@ p {
}); });
}, },
// 选中菜单事件 // 选中菜单事件
select: function( event, ui) { select: function (event, ui) {
$("#search-url").val(ui.item.url); $("#search-url").val(ui.item.url);
}, },
_resizeMenu: function() { _resizeMenu: function () {
this.menu.element.outerWidth( 500 ); this.menu.element.outerWidth(500);
} }
}); });
// 搜索菜单 // 搜索菜单
function searching(){ function searching() {
var proTypeLabel = $("#proTypeLabel").val(); var proTypeLabel = $("#proTypeLabel").val();
var url = $("#search-url").val(); var url = $("#search-url").val();
if(url == ''){ if (url == '') {
return false; return false;
} }
//var address = $(this).attr("data-src"); //var address = $(this).attr("data-src");
@@ -660,7 +700,7 @@ p {
} }
//JavaScript代码区域 //JavaScript代码区域
layui.use(['element', 'form', 'laytpl', 'layer'], function() { layui.use(['element', 'form', 'laytpl', 'layer'], function () {
var element = layui.element, var element = layui.element,
$ = layui.jquery, $ = layui.jquery,
form = layui.form, form = layui.form,
@@ -671,14 +711,14 @@ p {
// 动态添加选项卡,关闭选项卡 // 动态添加选项卡,关闭选项卡
var active = { var active = {
//在这里给active绑定几项事件,后面可通过active调用这些事件 //在这里给active绑定几项事件,后面可通过active调用这些事件
tabAdd : function(url, id, name) { tabAdd: function (url, id, name) {
//新增一个Tab项 传入三个参数,分别对应其标题,tab页面的地址,还有一个规定的id,是标签中data-id的属性值 //新增一个Tab项 传入三个参数,分别对应其标题,tab页面的地址,还有一个规定的id,是标签中data-id的属性值
//关于tabAdd的方法所传入的参数可看layui的开发文档中基础方法部分 //关于tabAdd的方法所传入的参数可看layui的开发文档中基础方法部分
element.tabAdd('demo', { element.tabAdd('demo', {
title : name, title: name,
content : '<iframe src="' + url + '" style="width:100%;height:100%"></iframe>', content: '<iframe src="' + url + '" style="width:100%;height:100%"></iframe>',
id : id // 规定好的id id: id // 规定好的id
// <iframe name="rightFrame" src="readme.jsp" id="rightFrame" title="rightFrame" width="100%" height="100%"></iframe> // <iframe name="rightFrame" src="readme.jsp" id="rightFrame" title="rightFrame" width="100%" height="100%"></iframe>
}) })
//通过鼠标mouseover事件 动态将新增的tab下的li标签绑定鼠标右键功能的菜单 //通过鼠标mouseover事件 动态将新增的tab下的li标签绑定鼠标右键功能的菜单
@@ -691,22 +731,22 @@ p {
element.render('tab'); element.render('tab');
}, },
tabChange : function(id) { tabChange: function (id) {
//切换到指定Tab项 //切换到指定Tab项
element.tabChange('demo', id); //根据传入的id传入到指定的tab项 element.tabChange('demo', id); //根据传入的id传入到指定的tab项
}, },
tabDelete : function(id) { tabDelete: function (id) {
element.tabDelete("demo", id);//删除 element.tabDelete("demo", id);//删除
}, },
tabDeleteAll : function(ids) {//删除所有 tabDeleteAll: function (ids) {//删除所有
$.each(ids, function(i, item) { $.each(ids, function (i, item) {
element.tabDelete("demo", item); //ids是一个数组,里面存放了多个id,调用tabDelete方法分别删除 element.tabDelete("demo", item); //ids是一个数组,里面存放了多个id,调用tabDelete方法分别删除
}) })
} }
}; };
//当点击有site-demo-active属性的标签时,即左侧菜单栏中内容 ,触发点击事件 //当点击有site-demo-active属性的标签时,即左侧菜单栏中内容 ,触发点击事件
$('.site-demo-active').on('click',function() { $('.site-demo-active').on('click', function () {
var dataid = $(this); var dataid = $(this);
//这时会判断右侧.layui-tab-title属性下的有lay-id属性的li的数目,即已经打开的tab项数目 //这时会判断右侧.layui-tab-title属性下的有lay-id属性的li的数目,即已经打开的tab项数目
if ($(".layui-tab-title li[lay-id]").length <= 0) { if ($(".layui-tab-title li[lay-id]").length <= 0) {
@@ -715,7 +755,7 @@ p {
} else { } else {
//否则判断该tab项是否以及存在 //否则判断该tab项是否以及存在
var isData = false; //初始化一个标志,为false说明未打开该tab项 为true则说明已有 var isData = false; //初始化一个标志,为false说明未打开该tab项 为true则说明已有
$.each($(".layui-tab-title li[lay-id]"), function() { $.each($(".layui-tab-title li[lay-id]"), function () {
//如果点击左侧菜单栏所传入的id 在右侧tab项中的lay-id属性可以找到,则说明该tab项已经打开 //如果点击左侧菜单栏所传入的id 在右侧tab项中的lay-id属性可以找到,则说明该tab项已经打开
if ($(this).attr("lay-id") == dataid.attr("data-id")) { if ($(this).attr("lay-id") == dataid.attr("data-id")) {
isData = true; isData = true;
@@ -751,7 +791,7 @@ p {
l = ($(document).width() - e.clientX) < popupmenu.width() ? (e.clientX - popupmenu.width()) : e.clientX; l = ($(document).width() - e.clientX) < popupmenu.width() ? (e.clientX - popupmenu.width()) : e.clientX;
t = ($(document).height() - e.clientY) < popupmenu.height() ? (e.clientY - popupmenu.height()) : e.clientY; t = ($(document).height() - e.clientY) < popupmenu.height() ? (e.clientY - popupmenu.height()) : e.clientY;
popupmenu.css({ popupmenu.css({
left: l-200, left: l - 200,
}).show(); //进行绝对定位 }).show(); //进行绝对定位
return false; return false;
}); });
@@ -803,7 +843,7 @@ p {
}) })
//打开默认页面 //打开默认页面
active.tabAdd("readme.jsp","首页", "首页"); active.tabAdd("readme.jsp", "首页", "首页");
active.tabChange("首页"); active.tabChange("首页");
$(".layui-this i").remove(); $(".layui-this i").remove();
@@ -840,11 +880,11 @@ p {
// }); // });
// 获取登录用户的信息,展示更新动态 // 获取登录用户的信息,展示更新动态
$(document).ready(function() { $(document).ready(function () {
$.ajax({ $.ajax({
url : "${pageContext.request.contextPath}/getUserInfo", url: "${pageContext.request.contextPath}/getUserInfo",
type : "get", type: "get",
success : function(obj) { success: function (obj) {
// 如果生日为空,补充生日和入职日期 // 如果生日为空,补充生日和入职日期
// var birthDay = obj.data.userInfo.birthDay // var birthDay = obj.data.userInfo.birthDay
// if(!birthDay){ // if(!birthDay){
@@ -900,41 +940,42 @@ p {
// 登陆展示更新日志提示 // 登陆展示更新日志提示
var readLogStatus = obj.data.userInfo.readLogStatus var readLogStatus = obj.data.userInfo.readLogStatus
if(readLogStatus == "0"){ if (readLogStatus == "0") {
layer.open({ layer.open({
zIndex: layer.zIndex, // 层级最高,重点1 zIndex: layer.zIndex, // 层级最高,重点1
title: '温馨提示', title: '温馨提示',
skin:'layui-layer-molv', skin: 'layui-layer-molv',
btn: ['我知道啦'], btn: ['我知道啦'],
content: '<br>产品 / 价格有变动,具体请查看右侧最新<span style="line-height: 22px;color:red;font-weight:bold">更新日志</span>', content: '<br>产品 / 价格有变动,具体请查看右侧最新<span style="line-height: 22px;color:red;font-weight:bold">更新日志</span>',
success: function(layero){ success: function (layero) {
layer.setTop(layero); //重点2 layer.setTop(layero); //重点2
}, },
// 点击‘确定’按钮的时候,调用方法 // 点击‘确定’按钮的时候,调用方法
yes:function(index){ yes: function (index) {
// 改变阅读更新日志状态 // 改变阅读更新日志状态
$.ajax({ $.ajax({
url : "${pageContext.request.contextPath}/changeReadLogStatus", url: "${pageContext.request.contextPath}/changeReadLogStatus",
type : "post", type: "post",
success : function(obj) { success: function (obj) {
layer.close(index); layer.close(index);
} }
}) })
}, },
//右上角关闭回调 //右上角关闭回调
cancel: function(){} cancel: function () {
}
}); });
} }
} }
}) })
}) })
$(document).ready(function() { $(document).ready(function () {
$.ajax({ $.ajax({
url : "${pageContext.request.contextPath}/loginAttribute", url: "${pageContext.request.contextPath}/loginAttribute",
type : "get", type: "get",
success : function(obj) { success: function (obj) {
if (obj.msg == "成功") { if (obj.msg == "成功") {
}else{ } else {
window.location.href = '${pageContext.request.contextPath}/login.jsp' window.location.href = '${pageContext.request.contextPath}/login.jsp'
} }
} }
+8 -8
Ver Arquivo
@@ -342,12 +342,12 @@
lay-skin="primary"> lay-skin="primary">
<!--<input type="checkbox" name="aotu" lay-filter="switch" value="印2色+凹凸" title="印2色+凹凸" class="aotu" lay-skin="primary">--> <!--<input type="checkbox" name="aotu" lay-filter="switch" value="印2色+凹凸" title="印2色+凹凸" class="aotu" lay-skin="primary">-->
</div> </div>
<hr class="layui-bg-orange">
</form> </form>
<form class="layui-form cq" style="display: none;"> <form class="layui-form cq" style="display: none;">
<p> <%-- <p>--%>
工艺 <%-- 工艺--%>
</p> <%-- </p>--%>
<div class="layui-form-item yq"> <div class="layui-form-item yq">
<span class="ui_craftShua"> <span class="ui_craftShua">
|&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;
@@ -454,7 +454,7 @@
}); });
$("#number").on("input", function (e) { $("#number").on("input", function (e) {
var number = e.delegateTarget.value; var number = e.delegateTarget.value;
if ($("input[name='stickerKind']:checked").val() == "专版打印" && number > 1) { if (window.parent.system_isPdd && $("input[name='stickerKind']:checked").val() == "专版打印" && number > 1) {
$("#ui_des").show(); $("#ui_des").show();
} else { } else {
$("#ui_des").hide(); $("#ui_des").hide();
@@ -559,7 +559,7 @@
$(".ui_cq").find(":input").attr("disabled", true); $(".ui_cq").find(":input").attr("disabled", true);
$(".normal").hide(); $(".normal").hide();
$('.normal input').prop("checked", false); $('.normal input').prop("checked", false);
if ($("#number").val() > 1) { if (window.parent.system_isPdd && $("#number").val() > 1) {
$("#ui_des").show(); $("#ui_des").show();
} }
$(".ui_sm").hide(); $(".ui_sm").hide();
@@ -1545,7 +1545,7 @@
if (kindValue == "拉丝金" || kindValue == "拉丝银" || kindValue == "PP合成纸") { if (kindValue == "拉丝金" || kindValue == "拉丝银" || kindValue == "PP合成纸") {
craftMo = "" craftMo = ""
} }
if (number > 1) { if (window.parent.system_isPdd && number > 1) {
if ($("#desType option:selected").val() == "" || $("#desType option:selected").val() == null) { if ($("#desType option:selected").val() == "" || $("#desType option:selected").val() == null) {
layer.msg('请选择设计内容!', {offset: ['300px', '300px']}, function () { layer.msg('请选择设计内容!', {offset: ['300px', '300px']}, function () {
}); });
@@ -1705,7 +1705,7 @@
span_result += kind + ' - ' + size + "厘米 - " + craft_list.join("-") + '\n'; span_result += kind + ' - ' + size + "厘米 - " + craft_list.join("-") + '\n';
if (number > 1) { if (number > 1) {
if (stickerKind == "专版打印") { if (window.parent.system_isPdd && stickerKind == "专版打印") {
let numberType = $("#desType option:selected").text(); let numberType = $("#desType option:selected").text();
span_result += "款数:" + number + "-" + numberType + "\n"; span_result += "款数:" + number + "-" + numberType + "\n";
} }
+8 -6
Ver Arquivo
@@ -980,7 +980,7 @@
$("#number").on("input", function (e) { $("#number").on("input", function (e) {
var number = e.delegateTarget.value; var number = e.delegateTarget.value;
var kind = $("input[name='kind']:checked").val(); var kind = $("input[name='kind']:checked").val();
if ($("input[name='couponKind']:checked").val() == "少数量" && number > 1 && kind != "婚礼报纸" && kind != "菜单") { if (window.parent.system_isPdd && $("input[name='couponKind']:checked").val() == "少数量" && number > 1 && kind != "婚礼报纸" && kind != "菜单") {
$("#ui_des").show(); $("#ui_des").show();
} else { } else {
$("#ui_des").hide(); $("#ui_des").hide();
@@ -1176,8 +1176,10 @@
if (kind != "婚礼报纸" || kind != "菜单") { if (kind != "婚礼报纸" || kind != "菜单") {
$("#ui_des").hide(); $("#ui_des").hide();
} else { } else {
if (window.parent.system_isPdd) {
$("#ui_des").show(); $("#ui_des").show();
} }
}
form.render(); form.render();
} else { } else {
$("#ui_des").hide(); $("#ui_des").hide();
@@ -1764,7 +1766,7 @@
$(".ui_tzmp").find(":input").attr("disabled", true); $(".ui_tzmp").find(":input").attr("disabled", true);
$(".kindValue6").hide(); $(".kindValue6").hide();
$(".kindValue6").find(":input").attr("disabled", true); $(".kindValue6").find(":input").attr("disabled", true);
if ($("#number").val() > 1) { if (window.parent.system_isPdd && $("#number").val() > 1) {
$("#ui_des").show(); $("#ui_des").show();
} }
$("#kindValueForm").show(); $("#kindValueForm").show();
@@ -1846,7 +1848,7 @@
$(".lessCountHideCraft").find(":input").attr("disabled", true); $(".lessCountHideCraft").find(":input").attr("disabled", true);
$(".ui_yh").hide(); $(".ui_yh").hide();
$(".ui_tz_yh").show(); $(".ui_tz_yh").show();
if ($("#number").val() > 1) { if (window.parent.system_isPdd && $("#number").val() > 1) {
$("#ui_des").show(); $("#ui_des").show();
} }
@@ -2941,7 +2943,7 @@
return false; return false;
} }
} else if (kind == 3 || kind == 4 || kind == 5 || kind == 7) { } else if (kind == 3 || kind == 4 || kind == 5 || kind == 7) {
if (min >= 6 && !(kindValue2 == 10 && kind == 3 )) { if (min >= 6 && !(kindValue2 == 10 && kind == 3)) {
if ($('input[class = mq]:checked').val() == "模切") { if ($('input[class = mq]:checked').val() == "模切") {
layer.msg("超过6位异形模切卡片请以[ 腰封 - 异形模切]报价!", {offset: ['300px', '300px']}, function () { layer.msg("超过6位异形模切卡片请以[ 腰封 - 异形模切]报价!", {offset: ['300px', '300px']}, function () {
}); });
@@ -3031,7 +3033,7 @@
return false; return false;
} }
} }
if (number > 1) { if (window.parent.system_isPdd && number > 1) {
if ($("#desType option:selected").val() == "" || $("#desType option:selected").val() == null) { if ($("#desType option:selected").val() == "" || $("#desType option:selected").val() == null) {
if (kind != "婚礼报纸" && kind != "菜单") { if (kind != "婚礼报纸" && kind != "菜单") {
layer.msg('请选择设计内容!', {offset: ['300px', '300px']}, function () { layer.msg('请选择设计内容!', {offset: ['300px', '300px']}, function () {
@@ -3297,7 +3299,7 @@
} }
if (number > 1) { if (number > 1) {
if (couponKind == "少数量") { if (window.parent.system_isPdd && couponKind == "少数量") {
let numberType = $("#desType option:selected").text(); let numberType = $("#desType option:selected").text();
span_result += "款数:" + number + "-" + numberType + "\n"; span_result += "款数:" + number + "-" + numberType + "\n";
} }
+1 -1
Ver Arquivo
@@ -192,7 +192,7 @@
}); });
$("#number").on("input", function (e) { $("#number").on("input", function (e) {
var number = e.delegateTarget.value; var number = e.delegateTarget.value;
if (number > 1) { if (window.parent.system_isPdd && number > 1) {
$("#ui_des").show(); $("#ui_des").show();
} else { } else {
$("#ui_des").hide(); $("#ui_des").hide();
+2 -2
Ver Arquivo
@@ -171,7 +171,7 @@
$("#number").on("input", function (e) { $("#number").on("input", function (e) {
var number = e.delegateTarget.value; var number = e.delegateTarget.value;
if (number > 1 && $("input[name='stickerKind']:checked").val() == "专版打印") { if (window.parent.system_isPdd && number > 1 && $("input[name='stickerKind']:checked").val() == "专版打印") {
$("#ui_des").show(); $("#ui_des").show();
} else { } else {
$("#ui_des").hide(); $("#ui_des").hide();
@@ -262,7 +262,7 @@
}); });
return false; return false;
} }
if (number > 1 && stickerKind == "专版打印") { if (window.parent.system_isPdd && number > 1 && stickerKind == "专版打印") {
if ($("#desType option:selected").val() == "" || $("#desType option:selected").val() == null) { if ($("#desType option:selected").val() == "" || $("#desType option:selected").val() == null) {
layer.msg('请选择设计内容!', {offset: ['300px', '300px']}, function () { layer.msg('请选择设计内容!', {offset: ['300px', '300px']}, function () {
}); });
+2 -2
Ver Arquivo
@@ -554,7 +554,7 @@
var number = $("#number").val(); var number = $("#number").val();
let number_kindValue = $("input[name='kindValue']:checked").val(); let number_kindValue = $("input[name='kindValue']:checked").val();
let number_kind2Value = $("select[name='kind2Value'] option:selected").val(); let number_kind2Value = $("select[name='kind2Value'] option:selected").val();
if (number > 1 && ((number_kindValue == 0 && number_kind2Value == 0) || (number_kindValue == 1 && (number_kind2Value == 3 || number_kind2Value == 8 || number_kind2Value == 15)) || number_kindValue == 2)) { if (window.parent.system_isPdd && number > 1 && ((number_kindValue == 0 && number_kind2Value == 0) || (number_kindValue == 1 && (number_kind2Value == 3 || number_kind2Value == 8 || number_kind2Value == 15)) || number_kindValue == 2)) {
$("#ui_des").show(); $("#ui_des").show();
} else { } else {
$("#ui_des").hide(); $("#ui_des").hide();
@@ -1644,7 +1644,7 @@
if (number > 1) { if (number > 1) {
if ($("#ui_des").css("display") != "none") { if (window.parent.system_isPdd && $("#ui_des").css("display") != "none") {
let numberType = $("#desType option:selected").text(); let numberType = $("#desType option:selected").text();
span_result += "款数:" + number + "-" + numberType + "\n"; span_result += "款数:" + number + "-" + numberType + "\n";
} }
+6 -1
Ver Arquivo
@@ -223,7 +223,7 @@
}) })
$("#number").on("input", function (e) { $("#number").on("input", function (e) {
var number = e.delegateTarget.value; var number = e.delegateTarget.value;
if (number > 1) { if (window.parent.system_isPdd && number > 1) {
$("#ui_des").show(); $("#ui_des").show();
} else { } else {
$("#ui_des").hide(); $("#ui_des").hide();
@@ -257,6 +257,11 @@
}); });
return false; return false;
} }
if ((length < 2 || width < 2)) {
layer.msg("尺寸不能小于2*2 cm", {offset: ['300px', '300px']}, function () {
});
return false;
}
} }
var kindValueData = { var kindValueData = {
1: "0.38mm亮光", 1: "0.38mm亮光",
+4 -2
Ver Arquivo
@@ -225,7 +225,7 @@
$("#number").on("input", function (e) { $("#number").on("input", function (e) {
var number = e.delegateTarget.value; var number = e.delegateTarget.value;
var kind = $("input[name='kind']:checked").val(); var kind = $("input[name='kind']:checked").val();
if (number > 1) { if (window.parent.system_isPdd && number > 1) {
$("#ui_des").show(); $("#ui_des").show();
} else { } else {
$("#ui_des").hide(); $("#ui_des").hide();
@@ -609,8 +609,10 @@
var span_result = '特种纸名片(不配绳子)' + "-不覆膜-" + kindValueSelect + "-" + size var span_result = '特种纸名片(不配绳子)' + "-不覆膜-" + kindValueSelect + "-" + size
+ "厘米-(同款内容) \n" + "工艺 :" + arr + "\n" + "厘米-(同款内容) \n" + "工艺 :" + arr + "\n"
if (number > 1) { if (number > 1) {
if (window.parent.system_isPdd) {
let numberType = $("#desType option:selected").text(); let numberType = $("#desType option:selected").text();
span_result += "款数:" + number + "-" +numberType+ "\n"; span_result += "款数:" + number + "-" + numberType + "\n";
}
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + '\n' span_result += number + '款 各' + data[i].count + "张,共" + data[i].price + "元" + '\n'
data[i].number = number; data[i].number = number;
+5 -5
Ver Arquivo
@@ -348,7 +348,6 @@
lay-skin="primary"> lay-skin="primary">
<!--<input type="checkbox" name="aotu" lay-filter="switch" value="印2色+凹凸" title="印2色+凹凸" class="aotu" lay-skin="primary">--> <!--<input type="checkbox" name="aotu" lay-filter="switch" value="印2色+凹凸" title="印2色+凹凸" class="aotu" lay-skin="primary">-->
</div> </div>
<hr class="layui-bg-orange">
</form> </form>
<form class="layui-form cq" style="display: none;"> <form class="layui-form cq" style="display: none;">
<p> <p>
@@ -391,6 +390,7 @@
<input type="radio" name="craftshua" value="模切(切穿排废)" title="模切(切穿排废)" checked> <input type="radio" name="craftshua" value="模切(切穿排废)" title="模切(切穿排废)" checked>
</div> </div>
</form> </form>
<form class="layui-form"> <form class="layui-form">
<div class="layui-form-item"> <div class="layui-form-item">
<button class="layui-btn" lay-submit="" lay-filter="acount_btn" id="queryCondBtn">计算</button> <button class="layui-btn" lay-submit="" lay-filter="acount_btn" id="queryCondBtn">计算</button>
@@ -460,7 +460,7 @@
}); });
$("#number").on("input", function (e) { $("#number").on("input", function (e) {
var number = e.delegateTarget.value; var number = e.delegateTarget.value;
if ($("input[name='stickerKind']:checked").val() == "专版打印" && number > 1) { if (window.parent.system_isPdd && $("input[name='stickerKind']:checked").val() == "专版打印" && number > 1) {
$("#ui_des").show(); $("#ui_des").show();
} else { } else {
$("#ui_des").hide(); $("#ui_des").hide();
@@ -566,7 +566,7 @@
$(".ui_cq").find(":input").attr("disabled", true); $(".ui_cq").find(":input").attr("disabled", true);
$(".normal").hide(); $(".normal").hide();
$('.normal input').prop("checked", false); $('.normal input').prop("checked", false);
if ($("#number").val() > 1) { if (window.parent.system_isPdd && $("#number").val() > 1) {
$("#ui_des").show(); $("#ui_des").show();
} }
$(".ui_sm").hide(); $(".ui_sm").hide();
@@ -1567,7 +1567,7 @@
if (kindValue == "拉丝金" || kindValue == "拉丝银" || kindValue == "PP合成纸") { if (kindValue == "拉丝金" || kindValue == "拉丝银" || kindValue == "PP合成纸") {
craftMo = "" craftMo = ""
} }
if (number > 1) { if (window.parent.system_isPdd && number > 1) {
if ($("#desType option:selected").val() == "" || $("#desType option:selected").val() == null) { if ($("#desType option:selected").val() == "" || $("#desType option:selected").val() == null) {
layer.msg('请选择设计内容!', {offset: ['300px', '300px']}, function () { layer.msg('请选择设计内容!', {offset: ['300px', '300px']}, function () {
}); });
@@ -1733,7 +1733,7 @@
span_result += kind + ' - ' + size + "厘米 - " + craft_list.join("-") + '\n'; span_result += kind + ' - ' + size + "厘米 - " + craft_list.join("-") + '\n';
if (number > 1) { if (number > 1) {
if (stickerKind == "专版打印") { if (window.parent.system_isPdd && stickerKind == "专版打印") {
let numberType = $("#desType option:selected").text(); let numberType = $("#desType option:selected").text();
span_result += "款数:" + number + "-" + numberType + "\n"; span_result += "款数:" + number + "-" + numberType + "\n";
} }
+1
Ver Arquivo
@@ -116,6 +116,7 @@
{{# }); }} {{# }); }}
</script> </script>
<script> <script>
console.log(window.parent.system_isPdd)
/* function videoClick(){ /* function videoClick(){
//iframe层 //iframe层
layer.open({ layer.open({