文件
yjyf/server/application/admin/view/common/meta.html
MiAn 3d86db0bf4 feat(admin): 新增图片预览功能
- 新增图片预览脚本 image-preview.js
- 新增预览关闭按钮样式
- 新增测试用例
- 为图片链接添加预览类名
- 修复图片点击打开逻辑
- 调整图片预览层级显示
2026-11-20 10:18:23 +08:00

65 行
3.3 KiB
HTML
可执行文件

<meta charset="utf-8">
<title>{$title|default='优匠优服管理后台'}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">
<link rel="shortcut icon" href="__CDN__/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="__CDN__/assets/css/backend{$Think.config.app_debug?'':'.min'}.css?v={$Think.config.site.version|htmlentities}" rel="stylesheet">
{if $Think.config.fastadmin.adminskin}
<link href="__CDN__/assets/css/skins/{$Think.config.fastadmin.adminskin|htmlentities}.css?v={$Think.config.site.version|htmlentities}" rel="stylesheet">
{/if}
<!-- 现代企业级 SaaS 统一视觉规范样式引擎 -->
<link href="__CDN__/assets/css/theme-modern.css?v={$Think.config.site.version|htmlentities}" rel="stylesheet">
<!-- 优匠优服 橙白企业级品牌视觉引擎 -->
<link href="__CDN__/assets/css/theme-qibing-orange.css?v={$Think.config.site.version|htmlentities}" rel="stylesheet">
<style>
/* The image viewer sits above existing dialogs and has its own close control. */
.layui-layer-photos .layui-layer-setwin { top: 12px; right: 12px; z-index: 2; }
.layui-layer-photos .layui-layer-setwin .layui-layer-close2,
.layui-layer-photos .layui-layer-setwin .layui-layer-close2:hover {
position: relative; top: 0; right: 0; width: 40px; height: 40px; margin: 0;
border-radius: 50%; background: rgba(0, 0, 0, .66) url('__CDN__/assets/img/admin-preview-close.svg') center / 24px 24px no-repeat;
cursor: pointer;
}
.layui-layer-photos .layui-layer-setwin .layui-layer-close2:hover { background-color: rgba(0, 0, 0, .85); }
.layui-layer-photos .layui-layer-setwin .layui-layer-close2:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Keep actions visible inside the table's own horizontal scroll area. */
.bootstrap-table .fixed-table-body table { border-collapse: separate; border-spacing: 0; }
.bootstrap-table .fixed-table-body th.yjyf-table-operate,
.bootstrap-table .fixed-table-body td.yjyf-table-operate,
.bootstrap-table .fixed-table-header th.yjyf-table-operate {
position: sticky;
right: 0;
z-index: 2;
background: #fff;
white-space: nowrap;
box-shadow: -3px 0 6px rgba(0, 0, 0, .08);
}
.bootstrap-table .fixed-table-body th.yjyf-table-operate,
.bootstrap-table .fixed-table-header th.yjyf-table-operate { z-index: 3; background: #f7f8fa; }
.bootstrap-table .fixed-table-body .table-striped > tbody > tr:nth-of-type(odd) > td.yjyf-table-operate { background: #f9f9f9; }
.bootstrap-table .fixed-table-body .table-hover > tbody > tr:hover > td.yjyf-table-operate { background: #f5f5f5; }
/* Search controls wrap independently of the table's horizontal scrolling. */
.bootstrap-table .fixed-table-toolbar { height: auto; }
.bootstrap-table .commonsearch-table { max-width: 100%; }
</style>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
<script src="__CDN__/assets/js/html5shiv.js"></script>
<script src="__CDN__/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
var require = {
config: {$config|json_encode}
};
require.config.site.version += "-admin-list-20261119";
</script>