feat:增加页面统计
This commit is contained in:
parent
05b6cb29d8
commit
1c7294e855
1
bookmark_front/.gitignore
vendored
1
bookmark_front/.gitignore
vendored
@ -1,6 +1,7 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
/dist
|
/dist
|
||||||
|
package-lock.json
|
||||||
yarn.lock
|
yarn.lock
|
||||||
|
|
||||||
# local env files
|
# local env files
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
/**
|
/**
|
||||||
* bottom配置
|
* bottom配置
|
||||||
*/
|
*/
|
||||||
@bottomHeight: 0.4rem; //bottom高度
|
@bottomHeight: 0.5rem; //bottom高度
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* content配置
|
* content配置
|
||||||
|
@ -1,12 +1,38 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div>开源地址:<a href="https://github.com/FleyX/bookmark">github.com/FleyX/bookmark</a>  <a href="https://github.com/FleyX/bookmark/issues">反馈/建议</a></div>
|
<div>
|
||||||
|
开源地址:
|
||||||
|
<a href="https://github.com/FleyX/bookmark" target="_blank">github.com/FleyX/bookmark</a>
|
||||||
|
 
|
||||||
|
<a href="https://github.com/FleyX/bookmark/issues" target="_blank">反馈/建议</a>
|
||||||
|
</div>
|
||||||
|
<!-- 统计 -->
|
||||||
|
<a href="https://qiezi.fleyx.com" style="display: block; text-align: center; color: black" target="_blank">
|
||||||
|
<div id="qieziStatisticHtmlHostPv" style="display: none">
|
||||||
|
总访问次数:
|
||||||
|
<span id="qieziStatisticHtmlHostPvValue"></span>
|
||||||
|
次
|
||||||
|
</div>
|
||||||
|
<div id="qieziStatisticHtmlHostUv" style="display: none">
|
||||||
|
总访客数:
|
||||||
|
<span id="qieziStatisticHtmlHostUvValue"></span>
|
||||||
|
人
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
name: "Bottom",
|
name: "Bottom",
|
||||||
|
mounted() {
|
||||||
|
window.qieziStatisticKey = "b74c4b571b644782a837433209827874";
|
||||||
|
let script = document.createElement("script");
|
||||||
|
script.type = "text/javascript";
|
||||||
|
script.defer = true;
|
||||||
|
script.src = "https://qiezi.fleyx.com/qiezijs/1.0/qiezi_statistic.min.js";
|
||||||
|
document.getElementsByTagName("head")[0].appendChild(script);
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -16,6 +42,7 @@ export default {
|
|||||||
background-color: rgb(207, 198, 198);
|
background-color: rgb(207, 198, 198);
|
||||||
height: @bottomHeight;
|
height: @bottomHeight;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 0.14rem;
|
font-size: 0.14rem;
|
||||||
|
@ -7,7 +7,8 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
"/bookmark/api": {
|
"/bookmark/api": {
|
||||||
//这里最好有一个 /
|
//这里最好有一个 /
|
||||||
target: "http://localhost:8088", // 服务器端接口地址
|
// target: "http://localhost:8088", // 服务器端接口地址
|
||||||
|
target: "https://fleyx.com", // 服务器端接口地址
|
||||||
ws: true, //如果要代理 websockets,配置这个参数
|
ws: true, //如果要代理 websockets,配置这个参数
|
||||||
// 如果是https接口,需要配置这个参数
|
// 如果是https接口,需要配置这个参数
|
||||||
changeOrigin: true, //是否跨域
|
changeOrigin: true, //是否跨域
|
||||||
|
Loading…
x
Reference in New Issue
Block a user