Files
YwxAppThink/app/frontend/view/common/header.html
T
ywxapp 1d49e6f5ee feat: 公共表更名 common/member 前缀 + 插件命令自动加载 + 版本 1.1.1
- 18 张公共表更名(addon/attachment/configure/links/spider_log/spider_stat/sms/notice/ad/task/prop/medal/help/card -> common_*,member_wallets->member_wallet,score_rule/score_log -> member_*,addon_config->common_addonconf),模型全部对齐新表名,Db 直引用清零
- Attachment 模型补  表名绑定,修复富文本上传查 wxapp_attachment 1146 隐患
- install.sql + 迁移 SQL:backend_admin/backend_role delete_at 默认 0,修复软删除(NULL != 0)误过滤导致后台菜单为空
- AppService::boot() 支持插件 info.php 声明 commands 自动注册插件命令(psr-4 自动加载,坏类名自动跳过)
- 各插件(haonav/mqttbroker/wxchat/articles/blog/forum 等)字段与配置同步调整
- 框架版本 1.1.0 -> 1.1.1
2026-08-20 20:19:15 +08:00

69 lines
3.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!-- 全站置顶公告条(方案 A) -->
{notempty name="topNotices"}
<div class="site-notice-bar" id="siteNoticeBar">
{volist name="topNotices" id="nt"}
<div class="notice-item notice-type-{$nt.type}" data-id="{$nt.id}">
<span class="notice-badge">{$nt.type_text|default='公告'}</span>
<span class="notice-title">{$nt.title}</span>
<a href="{:url('notice/read', ['id'=>$nt.id])}" class="notice-link">查看详情</a>
<span class="notice-close" data-id="{$nt.id}" title="关闭">×</span>
</div>
{/volist}
</div>
<script>
(function () {
var KEY = 'closed_notices';
try {
var closed = JSON.parse(localStorage.getItem(KEY) || '[]');
document.querySelectorAll('#siteNoticeBar .notice-item').forEach(function (el) {
if (closed.indexOf(el.getAttribute('data-id')) > -1) el.style.display = 'none';
});
document.querySelectorAll('#siteNoticeBar .notice-close').forEach(function (btn) {
btn.addEventListener('click', function () {
var id = btn.getAttribute('data-id');
btn.closest('.notice-item').style.display = 'none';
var arr = JSON.parse(localStorage.getItem(KEY) || '[]');
if (arr.indexOf(id) === -1) { arr.push(id); localStorage.setItem(KEY, JSON.stringify(arr)); }
});
});
} catch (e) {}
})();
</script>
{/notempty}
<!-- 重构导航:彻底解决移动端Logo重合 -->
<header class="main-header">
<div class="layui-container header-container">
<div class="header-inner">
<div class="logo-box">
<a href="{:url('index/index', [], true, true)}" class=" ">
<span class="logo-text">{$siteConf.sitename|default='YwxApp'}</span>
</a>
</div>
<div class="nav-trigger" id="navToggle">
<span></span><span></span><span></span>
</div>
<ul class="nav-menu" id="navMenu">
{volist name="navMenus" id="m"}
<li class="nav-item {if $m.ctrl == $site.controller}active{/if}{if !empty($m.child)} has-child{/if}">
<a href="{if strpos($m.url,'http')===0}{$m.url}{elseif !empty($m.app)}{:url($m.app.'/'.$m.url, [], true, true)}{else/}{:url($m.url, [], true, true)}{/if}">
{if !empty($m.icon)}<i class="layui-icon {$m.icon}"></i> {/if}{$m.title}
</a>
{if !empty($m.child)}
<ul class="sub-menu">
{volist name="m.child" id="c"}
<li class="sub-item {if $c.ctrl == $site.controller}active{/if}">
<a href="{if strpos($c.url,'http')===0}{$c.url}{elseif !empty($c.app)}{:url($c.app.'/'.$c.url, [], true, true)}{else/}{:url($c.url, [], true, true)}{/if}">
{if !empty($c.icon)}<i class="layui-icon {$c.icon}"></i> {/if}{$c.title}
</a>
</li>
{/volist}
</ul>
{/if}
</li>
{/volist}
</ul>
</div>
</div>
</header>