This commit is contained in:
A1300399510 2023-08-09 11:51:41 +08:00
parent e56dcd4ca7
commit 497b50f7c8
4 changed files with 50 additions and 19 deletions

View File

@ -1,18 +1,34 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<!-- <link rel="icon" href="./favicon.ico"> -->
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>港校租房</title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<!-- <link rel="icon" href="./favicon.ico"> -->
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>港校租房</title>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<div style="display:none;">
<script type="text/javascript" src="//v1.cnzz.com/z_stat.php?id=1281224882&amp;web_id=1281224882"></script>
<script type="text/javascript">
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?4bd66cbe45a640b607fe46c48f658746";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</div>
<!-- built files will be auto injected -->
</body>
</html>

View File

@ -741,7 +741,8 @@ let deleteSeachVal = (i) => {
text-align: left;
.btn {
margin: 20px 30px 0 0;
margin-top: 20px;
padding-right: 30px;
cursor: pointer;
word-break: break-word;
position: relative;
@ -752,7 +753,7 @@ let deleteSeachVal = (i) => {
.btn-icon {
position: absolute;
top: 50%;
right: -16px;
right: 16px;
transform: translateY(-50%);
width: 8px;
height: 8px;

View File

@ -105,7 +105,6 @@
@click.stop="goUp">{{
data.isding == 0 ? '顶上去' : '今天已顶' }}
</div>
<!-- <div class="publish-item flexcenter already-go-up" v-if="stateData.btn == 2 && item.isding == 1"></div> -->
</div>
<div class="btm-box dis-f al-item" v-else>
<div class="flex1 flexacenter">

View File

@ -140,6 +140,21 @@ router.beforeEach((to, from, next) => {
let meta = to['meta'] || {}
let title = meta['title']
if (title) setSeoTitle(title)
if (window._hmt) {
if (to.path) {
window._hmt.push(['_trackPageview', '/#' + to.fullPath])
}
}
if (window._czc) {
let location = window.location
let contentUrl = location.pathname + location.hash
let refererUrl = "/"
// 用于发送某个URL的PV统计请求
window._czc.push(["_trackPageview", contentUrl, refererUrl])
}
})
router.afterEach(() => {