懒羊羊
2023-08-30 1ac2bc1590406d9babec036e154d8d08f34a6aa1
提交 | 用户 | 时间
1ac2bc 1 <!DOCTYPE html>
2 <html class="${bg!}">
3
4 @/**
5 @ *      本页面所用的模板变量
6 @ *
7 @ * title          :  页面的标题
8 @ * layoutContent  :  主页面的html内容
9 @ * js             :  业务所需要的js,为数组
10 @ * css            :  业务所需要的css,为数组
11 @ * bg             :  背景颜色
12 @ * plugins        :  需要用到的插件,目前有["ztree"]
13 @ **/
14
15 <head>
16     <meta charset="utf-8"/>
17     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
18     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
19     <title>${title!"管理系统"}</title>
20     <link rel="stylesheet" href="${ctxPath}/assets/common/libs/layui/css/layui.css?v=${constants.getReleaseVersion()}"/>
21     <link rel="stylesheet" href="${ctxPath}/assets/common/module/admin.css?v=${constants.getReleaseVersion()}" media="all"/>
22     <link rel="stylesheet" href="${ctxPath}/assets/expand/css/style.css?v=${constants.getReleaseVersion()}" media="all"/>
23
24     <!--其他插件css-->
25     @if(isNotEmpty(plugins)){
26         @if(array.contain(plugins,"ztree")){
27         <link href="${ctxPath}/assets/expand/plugins/ztree/zTreeStyle.css?v=${constants.getReleaseVersion()}" rel="stylesheet" type="text/css" />
28         @}
29     @}
30
31     @/* 其他业务用的css */
32     @if(isNotEmpty(css)){
33         @for(item in css){
34             @if(strutil.startWith(item,"/")){
35                 @item = ctxPath + item;
36             @}
37             <link href="${item}?v=${constants.getReleaseVersion()}" rel="stylesheet" type="text/css" />
38         @}
39     @}
40 </head>
41
42 <body>
43
44 @/* 页面加载loading */
45 @ include("/common/loading.html"){}
46
47 @/* 正文 */
48 ${layoutContent}
49
50 @/* 加入contextPath属性和session超时的配置 */
51 <script type="text/javascript">
52     var Feng = {
53         ctxPath: "${ctxPath}",
54         version: '${constants.getReleaseVersion()}'
55     };
56 </script>
57
58 @/* js和业务用的js数组 */
59 <script type="text/javascript" src="${ctxPath}/assets/common/libs/layui/layui.js?v=${constants.getReleaseVersion()}"></script>
60 <script type="text/javascript" src="${ctxPath}/assets/common/js/common.js?v=${constants.getReleaseVersion()}"></script>
61
62 <!--其他插件js-->
63 @if(isNotEmpty(plugins)){
64     @if(array.contain(plugins,"ztree")){
65     <script src="${ctxPath}/assets/expand/plugins/jquery/jquery-3.2.1.min.js?v=${constants.getReleaseVersion()}"></script>
66     <script src="${ctxPath}/assets/expand/plugins/ztree/jquery.ztree.all.min.js?v=${constants.getReleaseVersion()}"></script>
67     @}
68 @}
69
70 @if(isNotEmpty(js)){
71     @for(item in js){
72         @if(strutil.startWith(item,"/")){
73             @item = ctxPath + item;
74         @}
75         <script src="${item}?v=${constants.getReleaseVersion()}"></script>
76     @}
77 @}
78 </body>
79 </html>