From 9e579eda4601ed7b492b9d19a24e8146f6ebdf8d Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期六, 19 四月 2025 19:50:43 +0800
Subject: [PATCH] 优化空托出入库逻辑
---
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/wwwroot/swg-login.html | 140 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 140 insertions(+), 0 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/wwwroot/swg-login.html" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/wwwroot/swg-login.html"
new file mode 100644
index 0000000..16b0b3c
--- /dev/null
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/wwwroot/swg-login.html"
@@ -0,0 +1,140 @@
+锘�<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8" />
+ <title>鐧诲綍 - 鎺ュ彛鏂囨。</title>
+ <script src="js/jquery-3.3.1.min.js"></script>
+ <link type="text/css" href="css/style.css" rel="stylesheet" />
+ <script src="js/anime.min.js"></script>
+</head>
+<body>
+ <div class="page">
+ <div class="container">
+ <div class="left">
+ <div></div>
+
+ <div class="login">鎺ュ彛鏂囨。</div>
+ <div class="eula">娆㈣繋浣跨敤锛�</div>
+ </div>
+ <div class="right">
+ <svg viewBox="0 0 320 300">
+ <defs>
+ <linearGradient inkscape:collect="always"
+ id="linearGradient"
+ x1="13"
+ y1="193.49992"
+ x2="307"
+ y2="193.49992"
+ gradientUnits="userSpaceOnUse">
+ <stop style="stop-color:#ff00ff;"
+ offset="0"
+ id="stop876" />
+ <stop style="stop-color:#ff0000;"
+ offset="1"
+ id="stop878" />
+ </linearGradient>
+ </defs>
+ <path d="m 40,120.00016 239.99984,-3.2e-4 c 0,0 24.99263,0.79932 25.00016,35.00016 0.008,34.20084 -25.00016,35 -25.00016,35 h -239.99984 c 0,-0.0205 -25,4.01348 -25,38.5 0,34.48652 25,38.5 25,38.5 h 215 c 0,0 20,-0.99604 20,-25 0,-24.00396 -20,-25 -20,-25 h -190 c 0,0 -20,1.71033 -20,25 0,24.00396 20,25 20,25 h 168.57143" />
+ </svg>
+ <div class="form">
+ <label for="email">鐢ㄦ埛鍚�</label>
+ <input type="email" id="email">
+ <label for="password">瀵嗙爜</label>
+ <input type="password" id="password">
+ <input type="submit" id="submit" onclick="submit()" value="鐧� 褰�">
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <script>
+ var current = null;
+ document.querySelector('#email').addEventListener('focus', function (e) {
+ if (current) current.pause();
+ current = anime({
+ targets: 'path',
+ strokeDashoffset: {
+ value: 0,
+ duration: 700,
+ easing: 'easeOutQuart'
+ },
+ strokeDasharray: {
+ value: '240 1386',
+ duration: 700,
+ easing: 'easeOutQuart'
+ }
+ });
+ });
+ document.querySelector('#password').addEventListener('focus', function (e) {
+ if (current) current.pause();
+ current = anime({
+ targets: 'path',
+ strokeDashoffset: {
+ value: -336,
+ duration: 700,
+ easing: 'easeOutQuart'
+ },
+ strokeDasharray: {
+ value: '240 1386',
+ duration: 700,
+ easing: 'easeOutQuart'
+ }
+ });
+ });
+ document.querySelector('#submit').addEventListener('focus', function (e) {
+ if (current) current.pause();
+ current = anime({
+ targets: 'path',
+ strokeDashoffset: {
+ value: -730,
+ duration: 700,
+ easing: 'easeOutQuart'
+ },
+ strokeDasharray: {
+ value: '530 1386',
+ duration: 700,
+ easing: 'easeOutQuart'
+ }
+ });
+ });
+
+ function GetQueryString(name) {
+ var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
+ var r = window.location.search.substr(1).match(reg);
+ if (r != null) return decodeURI(r[2]);
+ return null;
+ }
+
+ function submit() {
+ let postdata = {
+ "name": $("#email").val(),
+ "pwd": $("#password").val(),
+ };
+ if (!(postdata.name && postdata.pwd)) {
+ alert('鍙傛暟涓嶆纭�');
+ return
+ }
+ $.ajax({
+ url: "/api/User/swgLogin",
+ type: "POST",
+ contentType: "application/json; charset=utf-8",
+ data: JSON.stringify(postdata),
+ dataType: 'json',
+ success: function (data) {
+ if (data?.result) {
+ var returnUrl = GetQueryString("returnUrl");
+ if (returnUrl != null && returnUrl.length > 0) {
+ window.location.href = returnUrl;
+ } else {
+ window.location.href = "/index.html";
+ }
+ } else {
+ alert('鍙傛暟涓嶆纭�');
+ }
+ }
+ });
+ }
+ </script>
+
+</body>
+</html>
\ No newline at end of file
--
Gitblit v1.9.3