From e208d7a53e4b12c10768b5f6c75f75caf9b287ae Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sat, 28 Apr 2018 17:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=83=A8=E5=88=86=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/static/ruoyi/system/post/add.js | 2 +- .../static/ruoyi/system/post/edit.js | 2 +- .../static/ruoyi/system/post/post.js | 2 +- src/main/resources/templates/include.html | 44 +++++++++---------- src/main/resources/templates/index.html | 17 +++---- src/main/resources/templates/login.html | 2 +- src/main/resources/templates/main.html | 16 +++---- .../templates/system/dict/type/type.html | 2 +- .../resources/templates/system/post/add.html | 2 +- .../resources/templates/system/post/edit.html | 2 +- .../resources/templates/system/post/post.html | 2 +- 11 files changed, 47 insertions(+), 46 deletions(-) diff --git a/src/main/resources/static/ruoyi/system/post/add.js b/src/main/resources/static/ruoyi/system/post/add.js index d1aea4d5..9412877e 100644 --- a/src/main/resources/static/ruoyi/system/post/add.js +++ b/src/main/resources/static/ruoyi/system/post/add.js @@ -17,5 +17,5 @@ $("#form-post-add").validate({ /** 岗位管理-新增岗位 */ function add() { - _ajax_save("/system/post/save", $("#form-post-add").serialize()); + _ajax_save(ctx + "/system/post/save", $("#form-post-add").serialize()); } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/system/post/edit.js b/src/main/resources/static/ruoyi/system/post/edit.js index 3b3d6c07..be65a4c6 100644 --- a/src/main/resources/static/ruoyi/system/post/edit.js +++ b/src/main/resources/static/ruoyi/system/post/edit.js @@ -17,5 +17,5 @@ $("#form-post-edit").validate({ /** 岗位管理-修改岗位 */ function edit() { - _ajax_save("/system/post/save", $("#form-post-edit").serialize()); + _ajax_save(ctx + "/system/post/save", $("#form-post-edit").serialize()); } \ No newline at end of file diff --git a/src/main/resources/static/ruoyi/system/post/post.js b/src/main/resources/static/ruoyi/system/post/post.js index 937276e1..f4c06c51 100644 --- a/src/main/resources/static/ruoyi/system/post/post.js +++ b/src/main/resources/static/ruoyi/system/post/post.js @@ -1,4 +1,4 @@ -var prefix = "/system/post" +var prefix = ctx + "/system/post" $(function() { var columns = [{ diff --git a/src/main/resources/templates/include.html b/src/main/resources/templates/include.html index 57eade74..b0d9f1dd 100644 --- a/src/main/resources/templates/include.html +++ b/src/main/resources/templates/include.html @@ -5,35 +5,35 @@ - - + + - - - - - + + + + +
- - + + - - - - + + + + - - + + - - + + - - - - - + + + + +
diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index a7729d7d..78d3d3c2 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -17,6 +17,7 @@ +
@@ -36,7 +37,7 @@
@@ -54,7 +55,7 @@ @@ -83,7 +84,7 @@
  • 欢迎来到若依管理后台.
  • - + @@ -121,10 +122,10 @@ - - - - - + + + + + diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html index 8e621514..7854ef02 100644 --- a/src/main/resources/templates/login.html +++ b/src/main/resources/templates/login.html @@ -86,7 +86,7 @@ data: $('#signupForm').serialize(), success: function(r) { if (r.code == 0) { - parent.location.href = '/index'; + parent.location.href = ctx + 'index'; } else { layer.msg(r.msg); } diff --git a/src/main/resources/templates/main.html b/src/main/resources/templates/main.html index d726ee56..60862348 100644 --- a/src/main/resources/templates/main.html +++ b/src/main/resources/templates/main.html @@ -6,10 +6,10 @@ 若依介绍 - - - - + + + + @@ -28,7 +28,7 @@ 移动设备访问请扫描以下二维码:

    - +
    @@ -297,7 +297,7 @@ 请作者喝杯咖啡。

    - 请使用手机支付宝或者微信扫码支付 + 请使用手机支付宝或者微信扫码支付

    @@ -306,7 +306,7 @@ - - + + diff --git a/src/main/resources/templates/system/dict/type/type.html b/src/main/resources/templates/system/dict/type/type.html index e0225249..df0a2fe4 100644 --- a/src/main/resources/templates/system/dict/type/type.html +++ b/src/main/resources/templates/system/dict/type/type.html @@ -19,7 +19,7 @@
    - + diff --git a/src/main/resources/templates/system/post/edit.html b/src/main/resources/templates/system/post/edit.html index e39d31d4..365913d2 100644 --- a/src/main/resources/templates/system/post/edit.html +++ b/src/main/resources/templates/system/post/edit.html @@ -52,7 +52,7 @@
    - diff --git a/src/main/resources/templates/system/post/post.html b/src/main/resources/templates/system/post/post.html index e3348097..5ac30ffb 100644 --- a/src/main/resources/templates/system/post/post.html +++ b/src/main/resources/templates/system/post/post.html @@ -18,7 +18,7 @@
    - +