增加后台自定义脚本及样式

This commit is contained in:
Anyon 2022-03-11 14:09:48 +08:00
parent c7bc315d5c
commit 8d7411dbaa
6 changed files with 32 additions and 4 deletions

View File

@ -12,6 +12,7 @@
<link rel="stylesheet" href="__ROOT__/static/plugs/layui/css/layui.css?at={:date('md')}">
<link rel="stylesheet" href="__ROOT__/static/theme/css/iconfont.css?at={:date('md')}">
<link rel="stylesheet" href="__ROOT__/static/theme/css/console.css?at={:date('md')}">
<link rel="stylesheet" href="__ROOT__/static/extra/style.css?at={:date('md')}">
{block name="style"}{/block}
<script>window.tapiRoot = '{:sysuri("admin/index/index",[],false)}'</script>
<script src="__ROOT__/static/plugs/jquery/pace.min.js"></script>
@ -25,6 +26,7 @@
<script src="__ROOT__/static/plugs/layui/layui.js"></script>
<script src="__ROOT__/static/plugs/require/require.js"></script>
<script src="__ROOT__/static/admin.js"></script>
<script src="__ROOT__/static/extra/script.js"></script>
{block name='script'}{/block}
</body>
</html>

View File

@ -13,6 +13,7 @@
<link rel="stylesheet" href="__ROOT__/static/plugs/layui/css/layui.css?at={:date('md')}">
<link rel="stylesheet" href="__ROOT__/static/theme/css/iconfont.css?at={:date('md')}">
<link rel="stylesheet" href="__ROOT__/static/theme/css/console.css?at={:date('md')}">
<link rel="stylesheet" href="__ROOT__/static/extra/style.css?at={:date('md')}">
{block name="style"}{/block}
<script>window.tapiRoot = '{:sysuri("admin/index/index",[],false)}'</script>
<script src="__ROOT__/static/plugs/jquery/pace.min.js"></script>
@ -54,6 +55,7 @@
<script src="__ROOT__/static/plugs/layui/layui.js"></script>
<script src="__ROOT__/static/plugs/require/require.js"></script>
<script src="__ROOT__/static/admin.js"></script>
<script src="__ROOT__/static/extra/script.js"></script>
{block name='script'}{/block}
</body>

View File

@ -29,13 +29,13 @@ return [
// 数据库类型
'type' => 'mysql',
// 服务器地址
'hostname' => '127.0.0.1',
'hostname' => 'thinkadmin.top',
// 数据库名
'database' => 'admin_v6',
// 用户名
'username' => 'admin_v6',
'username' => 'admin',
// 密码
'password' => 'FbYBHcWKr2',
'password' => '@admin123',
// 端口
'hostport' => '3306',
// 数据库连接参数

View File

@ -245,7 +245,7 @@ $(function () {
if (this.nodeName === 'IMG') this.src = this.dataset.lazySrc;
else this.style.backgroundImage = 'url(' + this.dataset.lazySrc + ')';
}
}), $dom;
}), $body.trigger('reInit', $dom), $dom;
};
/*! 在内容区显示视图 */
this.show = function (html) {

View File

@ -0,0 +1,23 @@
// ---------------------------------------
// 自定义后台扩展脚本
// 需要在加载 admin.js 后载入此文件
// ---------------------------------------
$(function () {
window.$body = $('body');
/*! 初始化异步加载的内容扩展动作 */
// $body.on('reInit', function (evt, $dom) {
// console.log('Event.reInit', $dom);
// });
/*! require
/*! 加载的文件不能与主配置重复 */
// require.config({
// paths: {
// 'vue': ['plugs/vue/vue.min'],
// },
// shim: {
// 'vue': ['json']
// },
// });
});

View File

@ -0,0 +1 @@
/*! 自定义扩展样式文件 */