Browse Source

添加埋点

ymm 3 years ago
parent
commit
a8d5e11696

+ 11 - 1
microserviceUserH5/static/js/vender/vue/api.js

@@ -77,4 +77,14 @@ function getActivationCode(data) {
 
   
   })
-}
+}
+//数据埋点
+function systemBuriedPoint(data) {
+  return service({
+    url: `/api/public/v1/systemBuriedPoint/stat`,
+    method: 'post',
+    data:data
+
+  
+  })
+}

+ 5 - 1
microserviceUserH5/vcloud/actFission.html

@@ -7,7 +7,7 @@
 	<meta name="description" content="活动">
 	<title>免费领机</title>
 	<link rel="icon" href="../static/img/favicon2.ico" type="img/x-ico">
-	<link rel="stylesheet" href="../static/css/index.css">
+	<link rel="stylesheet" href="../static/css/index.css?v=1.0.0.1">
 	<link rel="stylesheet" href="../static/css/vant.css" />
 	<script src="../static/js/vender/vue/vue.min.js"></script>
 	<script src="../static/js/vender/vue/vant.min.js"></script>
@@ -373,6 +373,9 @@
 					if (this.actStatus != 1) {
 						return
 					}
+					systemBuriedPoint({ pointName: 'dt_裂变_h5_分享攻略' }).then(res=>{
+
+					})
 					const {
 						title,
 						content,
@@ -415,6 +418,7 @@
 						}
 					})
 				},
+				
 				getAwardPage() { //获取活动列表
 					getAwardPage(this.token, this.queryParams).then(res => {
 						if (res.status == 0) {

+ 6 - 1
microserviceUserH5/vcloud/actFissionShare.html

@@ -7,7 +7,7 @@
     <meta name="description" content="分享朋友">
     <title></title>
     <link rel="icon" href="../static/img/favicon2.ico" type="img/x-ico">
-    <link rel="stylesheet" href="../static/css/index.css">
+    <link rel="stylesheet" href="../static/css/index.css?v=1.0.0.1">
     <link rel="stylesheet" href="../static/css/vant.css" />
     <script src="../static/js/vender/vue/vue.min.js"></script>
     <script src="../static/js/vender/vue/vant.min.js"></script>
@@ -300,6 +300,11 @@
                     //     forbidClick: true,
                     //     loadingType: 'spinner',
                     // });
+                    systemBuriedPoint({
+                        pointName: 'dt_裂变_h5_复制激活码'
+                    }).then(res => {
+
+                    })
                     var clipboard = new ClipboardJS('.copybtn')
 
                     getActivationCode(this.username).then(res => {