From 326bf69bb1324a29c70bd0b6c50ab6f2aa829af9 Mon Sep 17 00:00:00 2001
From: nickchange <126672920+nickchange@users.noreply.github.com>
Date: 星期一, 04 十二月 2023 10:48:41 +0800
Subject: [PATCH] 12.4

---
 cloud-server-management/src/main/webapp/WEB-INF/view/login.html |   46 +++++++++++++++++++++++++++++++---------------
 1 files changed, 31 insertions(+), 15 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/WEB-INF/view/login.html b/cloud-server-management/src/main/webapp/WEB-INF/view/login.html
index fb82a67..13a752a 100644
--- a/cloud-server-management/src/main/webapp/WEB-INF/view/login.html
+++ b/cloud-server-management/src/main/webapp/WEB-INF/view/login.html
@@ -71,15 +71,15 @@
                 <input class="itemInput" type="password" name="password" id="password"  placeholder="请输入密码" required="" value="">
             </div>
 
-<!--            <div class="form-group" style="float: left;">-->
-<!--                <div class="col-sm-8" style="padding-left: 0px; padding-right: 0px;">-->
-<!--                    <input class="form-control" type="text" name="kaptcha" placeholder="验证码" required="">-->
-<!--                </div>-->
-<!--                <div class="col-sm-4" style="padding-left: 0px; padding-right: 0px;">-->
-<!--                    <img src="${ctxPath}/kaptcha" id="kaptcha" width="90px" height="34px"/>-->
-<!--                </div>-->
-<!--            </div>-->
-<!--            <h4 style="color: #0e9aef;text-align: right" onclick="updatePassword1()">修改密码</h4>-->
+            <div class="form-group" style="float: left;">
+                <div class="col-sm-8" style="padding-left: 0px; padding-right: 0px;">
+                    <input class="form-control" type="text" name="kaptcha" placeholder="验证码" required="">
+                </div>
+                <div class="col-sm-4" style="padding-left: 0px; padding-right: 0px;">
+                    <img src="${ctxPath}/kaptcha" id="kaptcha" width="90px" height="34px"/>
+                </div>
+            </div>
+            <h4 style="color: #0e9aef;text-align: right" onclick="updatePassword1()">修改密码</h4>
             <button onclick="login()" class="btn full-width m-b" style="background-color: #0573EA;color: white;">登 录</button>
             <button type="submit" id="submit" style="display: none;"></button>
             </p>
@@ -91,16 +91,26 @@
 <script src="${ctxPath}/js/common/ajax-object.js"></script>
 <script src="${ctxPath}/js/common/Feng.js"></script>
 <script src="${ctxPath}/crypto-js/crypto-js.js"></script>
+<script src="${ctxPath}/layui/layui.all.js"></script>
 <script>
     function updatePassword1(e) {
         console.log("调用")
-
-        $.ajax({
-            url: Feng.ctxPath + '/update',
-            type: 'POST',
-            success: function (res) {
-            }
+        let index = layer.open({
+            type: 2,
+            title: '详情',
+            area: ['100%', '100%'], //宽高
+            fix: false, //不固定
+            maxmin: true,
+            content: Feng.ctxPath + '/update'
         });
+        this.layerIndex = index;
+
+        // $.ajax({
+        //     url: Feng.ctxPath + '/update',
+        //     type: 'GET',
+        //     success: function (res) {
+        //     }
+        // });
     }
 
     $(function () {
@@ -139,7 +149,13 @@
     }
 
     function login(){
+
         let password = $('#password').val();
+        console.log("password=="+password)
+        if (password=="a123456") {
+            alert("当前为默认密码,请修改密码!");
+        }
+
         password = encrypt(password);
         $('#password').val(password);
         $('#submit').submit();

--
Gitblit v1.7.1