From 726603df43447f8cfedfeaae4267209adbd01699 Mon Sep 17 00:00:00 2001
From: yzt <Xynz17@163.com>
Date: 星期三, 27 九月 2023 13:48:58 +0800
Subject: [PATCH] BSV1.8
---
src/main/webapp/hxzk/login1.jsp | 316 ++++++++++++++++------------------------------------
1 files changed, 96 insertions(+), 220 deletions(-)
diff --git a/src/main/webapp/hxzk/login1.jsp b/src/main/webapp/hxzk/login1.jsp
index 71e7b4d..06759aa 100644
--- a/src/main/webapp/hxzk/login1.jsp
+++ b/src/main/webapp/hxzk/login1.jsp
@@ -27,233 +27,109 @@
<link href="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert2.min.css" rel="stylesheet" type="text/css" />
<link href="/hxzkoa/hxzk/plugins/sweetalerts/sweetalert.css" rel="stylesheet" type="text/css" />
<style>
- .form-control {
- height: 70px;
- border: 1px solid #1b2e4b;
- color: #009688;
- font-size: 15px;
- padding: 8px 10px;
- letter-spacing: 1px;
- height: calc(1.4em + 1.4rem + 2px);
- padding: .75rem 1.25rem;
- border-radius: 6px;
- background: #1b2e4b;
- line-height: 1.5;
- }
- .code1{
- width:48%;
- }
- .code2{
- width: 45%;
- }
- .container-fluid{
- width: 30%;
- }
- @media (max-width: 360px) {
- .container-fluid{
- width: 100%;
- }
- .code1{
- width: 40%;
- }
- }
- @media (min-width: 370px ) and (max-width: 767px) {
- .container-fluid{
- width: 100%;
- }
- .code1{
- width: 40%;
- }
+ #renyuanxinxi{
+ background-color: #383438;
+
}
</style>
</head>
<body>
-<div class="container-fluid" style="padding-left: 60px">
- <div class="row" style="margin-top: 200px">
- <div class="col-md-12 col-xs-12" style="text-align: center">
- <h1 class="" style="position: relative;left: -10px">
- <span id="headTitle"></span>
- </h1>
- </div>
+<div id="renyuanxinxi">
+ <div
+ style="background: linear-gradient(rgb(0, 20, 30), rgb(0, 40, 70));width: 100%;font-size: 1.5rem;color: rgba(255, 255, 255, .7);line-height: 2.5rem;text-align: center;border: 2px solid rgba(0, 90, 120, .3);">
+ <svg xmlns="http://www.w3.org/2000/svg" style="margin-bottom: 5px;" width="30" height="30"
+ fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">
+ <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z" />
+ </svg>浜哄憳淇℃伅<svg xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="currentColor"
+ class="bi bi-x-lg" viewBox="0 0 16 16"
+ style="position: absolute;float: right;right: 10px;top: 9px;"
+ onclick="guanbirenyuanxinxi()">
+ <path fill-rule="evenodd"
+ d="M13.854 2.146a.5.5 0 0 1 0 .708l-11 11a.5.5 0 0 1-.708-.708l11-11a.5.5 0 0 1 .708 0Z" />
+ <path fill-rule="evenodd"
+ d="M2.146 2.146a.5.5 0 0 0 0 .708l11 11a.5.5 0 0 0 .708-.708l-11-11a.5.5 0 0 0-.708 0Z" />
+ </svg>
</div>
- <div class="row" style="width: 98%;margin-top: 10px">
- <div class="col-xs-12 col-md-12">
- <label for="username" style="color: #131527;"></label>
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
- viewBox="0 0 24 24" fill="none" stroke="currentColor"
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
- class="feather feather-user" style="position: relative;top: 32px;left: 3px">
- <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
- <circle cx="12" cy="7" r="4"></circle>
- </svg>
- <input id="username" name="username" type="text" class="form-control"
- placeholder="鐢ㄦ埛鍚�" required="required" style="padding-left: 40px">
- </div>
+ <div>
+ <table class="table-bordered" style="width: 100%;font-size: 4px;color: white;height: 100%" >
+ <tr>
+ <td class="biaoti">濮撳悕锛�</td>
+ <td class="neirong">
+ <div id="nameqq">12121</div>
+ </td>
+ <td class="biaoti">鎬у埆锛�</td>
+ <td class="neirong">
+ <div id="sexqq">12121</div>
+ </td>
+ </tr>
+ <tr>
+ <td class="biaoti">姘戞棌锛�</td>
+ <td class="neirong">
+ <div id="minzuqq"></div>
+ </td>
+ <td class="biaoti">鐢佃瘽锛�</td>
+ <td class="neirong">
+ <div id="dianhuaqq">17531353238</div>
+ </td>
+ </tr>
+ <tr>
+ <td class="biaoti">褰撳墠鍧愭爣锛�</td>
+ <td class="neirong">
+ <div id="zuobiaoqq"></div>
+ </td>
+ <td class="biaoti">鐘舵�侊細</td>
+ <td class="neirong">
+ <div id="zhuangtaiqq"></div>
+ </td>
+ </tr>
+ <tr>
+ <td class="biaoti">鏍囩缂栧彿锛�</td>
+ <td class="neirong">
+ <div id="tagidqq"></div>
+ </td>
+ <td class="biaoti">鐢甸噺锛�</td>
+ <td class="neirong">
+ <div id="dianliangqq"></div>
+ </td>
+ </tr>
+ <tr>
+ <td class="biaoti">娴锋嫈楂樺害锛�</td>
+ <td class="neirong">
+ <div id="gaoqq"></div>
+ </td>
+ <td class="biaoti">鎵�鍦ㄩ儴闂細</td>
+ <td class="neirong">
+ <div id="bumenqq"></div>
+ </td>
+ </tr>
+ <tr>
+ <td class="biaoti">涓嬪彂鎸囦护锛�</td>
+ <td class="neirong" style="text-align: left;padding-left: 10px;"><input
+ class="btn btn-secondary" type="button" id="zhendongqq"
+ style="width: 70px;height: 40px;background-color: brown;border-color: brown;font-size: 0.15rem;"
+ value="铚傞福">
+ <input class="btn btn-secondary" type="button" id="gengxinqq" onclick="gengxinzuobiao()"
+ style="width: 90px;height: 40px;background-color: brown;border-color: brown;font-size: 0.15rem;"
+ value="鏇存柊鍧愭爣">
+ </td>
+ <td class="biaoti">鏇存柊鏃堕棿锛�</td>
+ <td class="neirong">
+ <div id="timeqq"></div>
+ </td>
+ </tr>
+ <tr>
+ <td class="biaoti">涓嬪彂鏂囧瓧锛�</td>
+ <td class="neirong" colspan="3">
+ <input type="text" id="messageinput" class="form-control" placeholder="璇疯緭鍏ヨ鍙戦�佷俊鎭�"
+ style="width: 80%;display: inline;background: #fff;color: #000000;">
+ <input class="btn btn-secondary" type="button" onclick="sendmessage2()"
+ style="width: 15%;height: 40px;background-color: brown;border-color: brown;font-size: 0.15rem;"
+ value="鍙戦��">
+ </td>
+ </tr>
+ </table>
</div>
- <div class="row" style="width: 98%;margin-top: 10px">
- <div class="col-xs-12 col-md-12">
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
- viewBox="0 0 24 24" fill="none" stroke="currentColor"
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
- class="feather feather-lock" style="position: relative;top: 32px ;left: 6px">
- <rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>
- <path d="M7 11V7a5 5 0 0 1 10 0v4"></path>
- </svg>
- <input id="password" name="password" type="password"
- class="form-control" placeholder="瀵嗙爜" required="required" style="padding-left: 40px">
- </div>
- </div>
- <div class="row" style="width: 98.7%;margin-top: 10px">
- <div class="col-xs-12 col-md-12">
- <svg t="1618403857453" class="feather feather-lock"
- viewBox="0 0 1024 1024" version="1.1"
- xmlns="http://www.w3.org/2000/svg" p-id="2231" width="24"
- height="24"style="position: relative;top: 28px;left: 6px;z-index: 999">
- <path
- d="M895.744 273.28a59.2 59.2 0 0 0-46.72-51.936A1103.36 1103.36 0 0 1 697.92 186.56a561.28 561.28 0 0 1-135.008-78.912 61.76 61.76 0 0 0-72.16 0 354.112 354.112 0 0 1-136.032 78.4 507.264 507.264 0 0 1-146.944 36.32 55.04 55.04 0 0 0-46.208 51.936S160 404.64 160 519.36C160 727.04 405.056 928 527.616 928c122.528 0 330.24-141.76 363.456-405.504 8.32-155.776 2.56-248.704 2.56-248.704l2.112-0.544z m-133.44 160.416l-256 241.44c-11.52 10.976-29.12 12.704-42.56 4.16l-6.72-5.728-141.248-146.912a35.264 35.264 0 0 1 51.904-47.776l116.32 122.016 230.528-218.08a35.264 35.264 0 1 1 47.776 51.936v-1.056z"
- p-id="2232" fill="#bfbfbf"></path>
- </svg>
- <input id="yanzheng" name="yanzheng" type="text" class="form-control code2"
- placeholder="楠岃瘉鐮�" style="padding-left: 40px;display: inline-block;position: relative;top: 30px;left: -30">
- <!-- <input type="button" onclick="createCode()" id="code" style ="margin-left:10px;width:40%;height:46.8px;font-family:Arial;font-style:italic;font-weight:bold;border:0;letter-spacing:2px;color:blue;"/> -->
- <button type="button" onclick="shuaxin()" class="code1" id="code"
- style=" height: 43.8px; font-family: Arial;position: relative;top: 28px;font-style: italic; font-weight: bold; border-radius: 10px; border: 0; letter-spacing: 2px; color: blue;"></button>
- </div>
- </div>
- <div class="row" style="margin-top: 60px;width: 98%">
- <div class="col-xs-12 col-md-12">
- <button type="button" class="btn btn-primary login"
- value="" style="width: 100%;height: 50px;">鐧诲綍</button>
- </div>
- </div>
</div>
</body>
-<script src="/hxzkoa/hxzk/assets/js/libs/jquery-3.1.1.min.js"></script>
-<script src="/hxzkoa/hxzk/bootstrap/js/popper.min.js"></script>
-<script src="/hxzkoa/hxzk/bootstrap/js/bootstrap.min.js"></script>
-<script>
- var code; //鍦ㄥ叏灞�瀹氫箟楠岃瘉鐮�
- //浜х敓楠岃瘉鐮�
- window.onload = function createCode() {
- code = "";
- var codeLength = 4;//楠岃瘉鐮佺殑闀垮害
- var checkCode = document.getElementById("code");
- var random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);//闅忔満鏁�
- for (var i = 0; i < codeLength; i++) {//寰幆鎿嶄綔
- var index = Math.floor(Math.random() * 10);//鍙栧緱闅忔満鏁扮殑绱㈠紩锛�0~35锛�
- code += random[index];//鏍规嵁绱㈠紩鍙栧緱闅忔満鏁板姞鍒癱ode涓�
- }
- var aaa = document.getElementById("yanzheng")
- aaa.value = code
- checkCode.innerHTML = code;//鎶奵ode鍊艰祴缁欓獙璇佺爜
- }
- //鍒锋柊楠岃瘉鐮�
- function shuaxin() {
- code = "";
- var codeLength = 4;//楠岃瘉鐮佺殑闀垮害
- var checkCode = document.getElementById("code");
- var random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);//闅忔満鏁�
- for (var i = 0; i < codeLength; i++) {//寰幆鎿嶄綔
- var index = Math.floor(Math.random() * 10);//鍙栧緱闅忔満鏁扮殑绱㈠紩锛�0~35锛�
- code += random[index];//鏍规嵁绱㈠紩鍙栧緱闅忔満鏁板姞鍒癱ode涓�
- }
- var aaa = document.getElementById("yanzheng")
- aaa.value = code
- checkCode.innerHTML = code;//鎶奵ode鍊艰祴缁欓獙璇佺爜
- }
- //鏍¢獙楠岃瘉鐮�
- function validate() {
- var inputCode = document.getElementById("input").value.toUpperCase(); //鍙栧緱杈撳叆鐨勯獙璇佺爜骞惰浆鍖栦负澶у啓
- if (inputCode.length <= 0) { //鑻ヨ緭鍏ョ殑楠岃瘉鐮侀暱搴︿负0
- alert("璇疯緭鍏ラ獙璇佺爜锛�"); //鍒欏脊鍑鸿杈撳叆楠岃瘉鐮�
- }
- else if (inputCode != code) { //鑻ヨ緭鍏ョ殑楠岃瘉鐮佷笌浜х敓鐨勯獙璇佺爜涓嶄竴鑷存椂
- alert("楠岃瘉鐮佽緭鍏ラ敊璇紒@_@"); //鍒欏脊鍑洪獙璇佺爜杈撳叆閿欒
- createCode();//鍒锋柊楠岃瘉鐮�
- document.getElementById("input").value = "";//娓呯┖鏂囨湰妗�
- }
- else { //杈撳叆姝g‘鏃�
- alert("^-^"); //寮瑰嚭^-^
- }
- }
- $(document).ready(function () {
- var title = ""
- $.ajax({
- async: false, //鍚屾鐨�
- type: "POST",
- url: "/hxzkoa/getSysSetting_list.do",
- data: {
-
- },
- dataType: "json",
- success: function (data) {
- title = data[0].title
- var obj = document.getElementById("headTitle");
- //console.log("head:",title)
- obj.innerText = title;
- document.title = title;
- },
- });
- })
- function login() {
- var inputCode = document.getElementById("yanzheng").value.toUpperCase(); //鍙栧緱杈撳叆鐨勯獙璇佺爜骞惰浆鍖栦负澶у啓
- if (inputCode.length <= 0) { //鑻ヨ緭鍏ョ殑楠岃瘉鐮侀暱搴︿负0
- //console.log('if')
- swal(
- '鐧诲綍澶辫触!',
- '璇疯緭鍏ラ獙璇佺爜锛�',
- 'error'
- )
- }
- else if (inputCode != code) { //鑻ヨ緭鍏ョ殑楠岃瘉鐮佷笌浜х敓鐨勯獙璇佺爜涓嶄竴鑷存椂
- //console.log('elseif')
- swal(
- '鐧诲綍澶辫触!',
- '楠岃瘉鐮侀敊璇紒',
- 'error'
- )
- createCode();//鍒锋柊楠岃瘉鐮�
- document.getElementById("input").value = "";//娓呯┖鏂囨湰妗�
- }
- else { //杈撳叆姝g‘鏃�
- //console.log('else')
- var username = $("#username").val();
- var password = $("#password").val();
- $.ajax({
- async: false, //鍚屾鐨�
- type: "POST",
- url: "/hxzkoa/login.do",
- data: {
- username: username,
- password: password,
- },
- dataType: "json",
- success: function (data) {
- //console.log(data)
- if (data == "1") {
- window.location.href = "/hxzkoa/show.do"
- } else {
- swal(
- '鐧诲綍澶辫触!',
- '鐢ㄦ埛鍚嶅拰瀵嗙爜閿欒锛�',
- 'error'
- )
- }
- },
- });
- }
-
- }
- window.onkeydown = (e) => {
- if (e.code == "Enter") {
- login()
- return false
- }
- }
-
- // 鏂板鍔熻兘
- $('.login').on('click', login);
-
-</script>
</html>
--
Gitblit v1.10.0