base.html

默认样式如下/view/my/module/base.html
但是可以写到自己的模板
/view/我的模板/module/base.html进行调用

<?php
    use think\facade\Db;
    use think\facade\Request;
    $time = '0.03';
?>
<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0">
        <title>{block name='title'}{:set('titles','set')}{/block}</title>
        <meta name="description" content="{block name='description'}{:set('description','set')}{/block}">
        <meta name="keywords" content="{block name='keywords'}{:set('keywords','set')}{/block}">
        <meta name="author" content="{:set('author','set')}">
        <meta name="google" content="notranslate">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- Open Graph协议(社交媒体优化) -->
        <meta property="og:type" content="website">
        <meta property="og:title" content="{:set('titles','set')}">
        <meta property="og:description" content="{:set('description','set')}">
        <meta property="og:image" content="{:CheckUrl(set('logo','set'))}">
        <meta property="og:url" content="{:get_url()}">
        <!--layui-->
        {block name="style"}
        <link rel="stylesheet" href="/public/static/layui/css/layui.css">
        <script type="text/javascript" src="/public/static/layui/layui.js"></script>
        <link rel="stylesheet" href="/public/static/font-awesome/css/font-awesome.css">
        <link rel="stylesheet" href="/view/my/public/css/style.css?v={:time()}">
        <link rel="stylesheet" href="/view/my/public/css/icon.css?v={:time()}">
        <script src="/view/my/public/js/script.js?v={:time()}"></script>
        <!--jquer-->
        <script type="text/javascript" src="/public/static/js/jquery-3.6.4.min.js"></script>
        {/block}
        <style>
        :root{
            --theme-color: {:Mset('theme-color','my')};
            --negative-theme-color:{:Mset('negative-theme-color','my')};
        }
        </style>
    </head>
    <body>
        {block name="header"}{/block}
        {block name="main"}{/block}
        {block name="footer"}{/block}
    </body>
</html>
目录
设置
主题设置
深色模式
字体设置
字体大小
16