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 @@ - +