From 271ca6cb0ee2ff0a789bf74d1821e7891a7043bb Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Tue, 30 Aug 2022 21:57:42 +0800
Subject: [PATCH] 自定义表情组件

---
 src/components/fixed/footer.vue |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/components/fixed/footer.vue b/src/components/fixed/footer.vue
index cee8abb..f8db5b8 100644
--- a/src/components/fixed/footer.vue
+++ b/src/components/fixed/footer.vue
@@ -20,9 +20,21 @@
 </template>
 
 <script>
-	document.write(unescape(
-		"%3Cspan id='cnzz_stat_icon_1276380514'%3E%3C/span%3E%3Cscript src='https://s23.cnzz.com/z_stat.php%3Fid%3D1276380514%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"
-	));
+	import myConstant from "../../config/myConstant.js"
+
+	var _hmt = _hmt || [];
+	(function() {
+		let tempVisitorData = localStorage.getItem(myConstant.visitorDataKey);
+		if (tempVisitorData != null && JSON.parse(tempVisitorData).nickName == myConstant.userName) {
+			//this.$message.info("认证成功..")
+			// console.log("认证成功..");
+		}else{
+			var hm = document.createElement("script");
+			hm.src = "https://hm.baidu.com/hm.js?7ec680274146b33760c579b79dfb8f7c";
+			var s = document.getElementsByTagName("script")[0];
+			s.parentNode.insertBefore(hm, s);
+		}
+	})();
 
 	export default {
 		data() {

--
Gitblit v1.9.1