前端优化
This commit is contained in:
@@ -19,7 +19,8 @@
|
||||
<link rel="stylesheet" href="/public/layer/need/layer.css" />
|
||||
|
||||
<link href="/template/xiongmao/style2_m/css/iconfont.css" rel="stylesheet" type="text/css">
|
||||
<link href='/template/xiongmao/style2_m/css/style.css?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}' rel="stylesheet" type="text/css">
|
||||
<link href='/template/xiongmao/style2_m/css/style.css?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'
|
||||
rel="stylesheet" type="text/css">
|
||||
|
||||
{block name="head"}{/block}
|
||||
{block name="head-css"}{/block}
|
||||
@@ -27,23 +28,40 @@
|
||||
<script>
|
||||
const strPcPath = `{$strPcPath}`;
|
||||
</script>
|
||||
<script>
|
||||
(function () {
|
||||
var bp = document.createElement('script');
|
||||
var curProtocol = window.location.protocol.split(':')[0];
|
||||
if (curProtocol === 'https') {
|
||||
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
|
||||
}
|
||||
else {
|
||||
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
|
||||
}
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(bp, s);
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
|
||||
{block name="strPageCode"}
|
||||
<?php $strPageCode = 'home'; ?>
|
||||
<?php $strPageCode = 'home'; ?>
|
||||
{/block}
|
||||
|
||||
<body class="{block name='body-class'}{/block}" id="{block name='body-id'}{/block}">
|
||||
|
||||
<header class="top">
|
||||
<a href="/" title="{$DomainModel->d_name}" class='iconfont icon-shouye z fs30 {if $strPageCode == "home"}sv{/if}'></a>
|
||||
<a href="{$strCategoryIndexUrlTemp}" title="小说书库" class='iconfont icon-iconfonticonfontshujupaixing z fs24 {if $strPageCode == "library"}sv{/if}'></a>
|
||||
|
||||
<a href="/" title="{$DomainModel->d_name}"
|
||||
class='iconfont icon-shouye z fs30 {if $strPageCode == "home"}sv{/if}'></a>
|
||||
<a href="{$strCategoryIndexUrlTemp}" title="小说书库"
|
||||
class='iconfont icon-iconfonticonfontshujupaixing z fs24 {if $strPageCode == "library"}sv{/if}'></a>
|
||||
|
||||
<div class="y" id="qs_login1">
|
||||
<a href="{$strUserUrlTemp}" rel="nofollow"
|
||||
class='iconfont icon-login y fs24 {if $strPageCode == "history"}sv{/if}'>
|
||||
</a>
|
||||
<a href="{$strHistoryUrlTemp}" rel="nofollow" class='iconfont icon-liulanliang y fs24 {if $strPageCode == "user"}sv{/if}'></a>
|
||||
<a href="{$strHistoryUrlTemp}" rel="nofollow"
|
||||
class='iconfont icon-liulanliang y fs24 {if $strPageCode == "user"}sv{/if}'></a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@@ -61,9 +79,9 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="novel_search">
|
||||
<form id="novel_search" class="search-form" method="get" action="{$strSearchIndexUrlTemp}"><input type="text" class="bk"
|
||||
name="keyword" placeholder="输入书名/作者进行搜索,宁少字勿错字"><button type="submit" class="submit iconfont icon-so fs20"
|
||||
form="novel_search" value="submit"></button></form>
|
||||
<form id="novel_search" class="search-form" method="get" action="{$strSearchIndexUrlTemp}"><input type="text"
|
||||
class="bk" name="keyword" placeholder="输入书名/作者进行搜索,宁少字勿错字"><button type="submit"
|
||||
class="submit iconfont icon-so fs20" form="novel_search" value="submit"></button></form>
|
||||
</div>
|
||||
|
||||
{block name="main"} {site:wz wz="主内容" /}{/block}
|
||||
@@ -75,7 +93,7 @@
|
||||
<script>
|
||||
const strPushApi = `{site:cfg code="PUSH_API_DOMAIN" encode="false"/}`;
|
||||
</script>
|
||||
|
||||
|
||||
<script src="/public/jquery/jquery-3.7.1.min.js"></script>
|
||||
<script src="/public/layer/layer.js" type="module" charset="utf-8"></script>
|
||||
<script src='/template/default/js/common.js?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}'></script>
|
||||
|
||||
@@ -19,6 +19,20 @@
|
||||
<script>
|
||||
const strPcPath = `{$strPcPath}`;
|
||||
</script>
|
||||
<script>
|
||||
(function () {
|
||||
var bp = document.createElement('script');
|
||||
var curProtocol = window.location.protocol.split(':')[0];
|
||||
if (curProtocol === 'https') {
|
||||
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
|
||||
}
|
||||
else {
|
||||
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
|
||||
}
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(bp, s);
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<!-- 接收子模板传递的 active_nav -->
|
||||
|
||||
Reference in New Issue
Block a user