From 6f7a815b2d6e4f30e7ccf901b24d5103aaa72078 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期一, 25 十二月 2023 10:23:08 +0800
Subject: [PATCH] Merge branch 'tzskasrs-1' of http://47.97.1.152:5880/r/zy-asrs into tzskasrs-1

---
 src/main/webapp/views/detail.html |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/main/webapp/views/detail.html b/src/main/webapp/views/detail.html
index 5012e68..ed3397d 100644
--- a/src/main/webapp/views/detail.html
+++ b/src/main/webapp/views/detail.html
@@ -6,7 +6,8 @@
     <meta name="renderer" content="webkit">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
+    <link rel="stylesheet" href="../static/layui/css/layui.css" media="all">
+    <script type="text/javascript" src="../static/js/common.js"></script>
     <style>
         body {
             background-color: #fff;
@@ -56,13 +57,13 @@
                     <div class="layui-form-mid layui-word-aux">褰撳墠瑙掕壊涓嶅彲鏇存敼涓哄叾瀹冭鑹�</div>
                 </div>
                 <div class="layui-form-item">
-                    <label class="layui-form-label">璐﹀彿鍚�</label>
+                    <label class="layui-form-label">鍚嶇О</label>
                     <div class="layui-input-inline">
                         <input id="username" class="layui-input" type="text" placeholder="璇疯緭鍏�" autocomplete="off">
                     </div>
                 </div>
                 <div class="layui-form-item">
-                    <label class="layui-form-label">鎵嬫満鍙�</label>
+                    <label class="layui-form-label">璐﹀彿</label>
                     <div class="layui-input-inline">
                         <input id="mobile" class="layui-input" type="text" placeholder="璇疯緭鍏�" autocomplete="off">
                     </div>
@@ -95,8 +96,8 @@
     </fieldset>
 </div>
 </body>
-<script type="text/javascript" src="/static/js/jquery/jquery-3.3.1.min.js"></script>
-<script src="/static/layui/layui.js"></script>
+<script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script>
+<script src="../static/layui/layui.js"></script>
 <script>
     layui.use(['form'], function(){
         var form = layui.form,
@@ -105,7 +106,7 @@
 
         // 鍒濆鍖栬〃鍗曟暟鎹�
         $.ajax({
-            url: "/user/detail/auth",
+            url: baseUrl+"/user/detail/auth",
             headers: {'token': localStorage.getItem('token')},
             method: 'POST',
             success: function (res) {
@@ -115,7 +116,7 @@
                         $('#person-detail').find(":input[id='" + val + "']").val(user[val]);
                     }
                 } else if (res.code === 403){
-                    top.location.href = "/";
+                    top.location.href = baseUrl+"/";
                 } else {
                     layer.msg(res.msg);
                 }
@@ -129,11 +130,10 @@
                 title: '淇敼瀵嗙爜',
                 maxmin: true,
                 area: ['350px', '310px'],
-                offset: ['120px', '350px'],
                 shadeClose: false,
                 content: 'password.html',
                 success: function(layero, index){
-
+                    layer.iframeAuto(index);
                 }
             })
         });
@@ -148,7 +148,7 @@
             };
             layer.confirm('纭畾淇敼璧勬枡鍚楋紵', function(){
                 $.ajax({
-                    url: "/user/update/auth",
+                    url: baseUrl+"/user/update/auth",
                     headers: {'token': localStorage.getItem('token')},
                     data: user,
                     method: 'POST',
@@ -158,7 +158,7 @@
                             localStorage.setItem("username", user.username);
                             parent.$('#person-username').text(localStorage.getItem('username'));
                         } else if (res.code === 403){
-                            top.location.href = "/";
+                            top.location.href = baseUrl+"/";
                         } else {
                             layer.msg(res.msg);
                         }

--
Gitblit v1.9.1