feat:增加页面统计

This commit is contained in:
fanxb 2022-03-10 14:18:06 +08:00
parent 05b6cb29d8
commit 1c7294e855
4 changed files with 32 additions and 3 deletions

View File

@ -1,6 +1,7 @@
.DS_Store
node_modules
/dist
package-lock.json
yarn.lock
# local env files

View File

@ -14,7 +14,7 @@
/**
* bottom配置
*/
@bottomHeight: 0.4rem; //bottom高度
@bottomHeight: 0.5rem; //bottom高度
/**
* content配置

View File

@ -1,12 +1,38 @@
<template>
<div class="main">
<div>开源地址:<a href="https://github.com/FleyX/bookmark">github.com/FleyX/bookmark</a> &emsp;<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>
&emsp;
<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>
&nbsp;
</div>
<div id="qieziStatisticHtmlHostUv" style="display: none">
&nbsp;总访客数:
<span id="qieziStatisticHtmlHostUvValue"></span>
</div>
</a>
</div>
</template>
<script>
export default {
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>
@ -16,6 +42,7 @@ export default {
background-color: rgb(207, 198, 198);
height: @bottomHeight;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-size: 0.14rem;

View File

@ -7,7 +7,8 @@ module.exports = {
proxy: {
"/bookmark/api": {
//这里最好有一个 /
target: "http://localhost:8088", // 服务器端接口地址
// target: "http://localhost:8088", // 服务器端接口地址
target: "https://fleyx.com", // 服务器端接口地址
ws: true, //如果要代理 websockets配置这个参数
// 如果是https接口需要配置这个参数
changeOrigin: true, //是否跨域