From 5e7c4511f859c410300f32d5dc49a3ac30b5ccd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E9=BB=84=E6=9E=97?= Date: Thu, 7 Sep 2023 18:19:24 +0800 Subject: [PATCH] temp --- assets/static/css/index.css | 6 ---- assets/static/js/index.js | 14 +++++++- assets/templates/index.html | 69 ++++++++++++++++++++++++++++++++----- 3 files changed, 74 insertions(+), 15 deletions(-) diff --git a/assets/static/css/index.css b/assets/static/css/index.css index d0e17c1..8bcef6d 100644 --- a/assets/static/css/index.css +++ b/assets/static/css/index.css @@ -3,12 +3,6 @@ html, body { word-break: break-all; } -header .title { - padding: 10px 15px; - line-height: 40px; - font-size: 25px; -} - section { padding: 15px 15px 0 15px; } diff --git a/assets/static/js/index.js b/assets/static/js/index.js index 3efd850..fe6416a 100644 --- a/assets/static/js/index.js +++ b/assets/static/js/index.js @@ -634,7 +634,19 @@ $(function () { } var langLoading = layui.layer.load() - $.getJSON('/lang').done(langLoaded).always(function () { + $.getJSON('/lang').done(function (lang){ + var html = layui.laytpl($('#userList').html()).render(); + $('#layuiBody').html(html); + langLoaded(lang); + }).always(function () { layui.layer.close(langLoading); }); + + // $.ajax({ + // url:'http://127.0.0.1:7500/api/serverinfo', + // dataType:'jsonp', + // success:function (result){ + // console.log(result) + // } + // }); }); \ No newline at end of file diff --git a/assets/templates/index.html b/assets/templates/index.html index c660bba..fd1db60 100644 --- a/assets/templates/index.html +++ b/assets/templates/index.html @@ -1,5 +1,5 @@ - + ${ .UserManage } @@ -17,12 +17,64 @@ content: '${ .None }'; } + -
-
${ .FrpsMultiuser }
-
-
+
+
+ +
+
+
+ +
+
+
+ +
+
+ + - \ No newline at end of file +