Showing
4 changed files
with
22 additions
and
3 deletions
| ... | @@ -12,5 +12,14 @@ | ... | @@ -12,5 +12,14 @@ |
| 12 | <body> | 12 | <body> |
| 13 | <div id="app"></div> | 13 | <div id="app"></div> |
| 14 | <script type="module" src="/src/main.js"></script> | 14 | <script type="module" src="/src/main.js"></script> |
| 15 | + <script> | ||
| 16 | + var _hmt = _hmt || []; | ||
| 17 | + (function() { | ||
| 18 | + var hm = document.createElement("script"); | ||
| 19 | + hm.src = "https://hm.baidu.com/hm.js?20b21bb3d32d98b9a492070bd2566dfe"; | ||
| 20 | + var s = document.getElementsByTagName("script")[0]; | ||
| 21 | + s.parentNode.insertBefore(hm, s); | ||
| 22 | + })(); | ||
| 23 | + </script> | ||
| 15 | </body> | 24 | </body> |
| 16 | </html> | 25 | </html> | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Date: 2022-07-26 09:49:54 | 2 | * @Date: 2022-07-26 09:49:54 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-11-07 16:20:26 | 4 | + * @LastEditTime: 2024-12-04 10:39:08 |
| 5 | * @FilePath: /hager/src/common/mixin.js | 5 | * @FilePath: /hager/src/common/mixin.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | import $ from 'jquery'; | 9 | import $ from 'jquery'; |
| 10 | +import { throttle } from 'lodash-es'; | ||
| 11 | +import axios from '@/utils/axios'; | ||
| 10 | 12 | ||
| 11 | export default { | 13 | export default { |
| 12 | // 初始化设置 | 14 | // 初始化设置 |
| ... | @@ -42,6 +44,10 @@ export default { | ... | @@ -42,6 +44,10 @@ export default { |
| 42 | this.top_img_height = $(window).width()*0.35 + 'px'; | 44 | this.top_img_height = $(window).width()*0.35 + 'px'; |
| 43 | } | 45 | } |
| 44 | }, | 46 | }, |
| 47 | + maEvent: throttle(function () { | ||
| 48 | + var p = Array.prototype.shift.call(arguments); | ||
| 49 | + return axios.post('/srv/?a=log&p=' + p) | ||
| 50 | + }, 1500) | ||
| 45 | }, | 51 | }, |
| 46 | directives: { | 52 | directives: { |
| 47 | clickOutside: { | 53 | clickOutside: { | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-09-26 13:42:11 | 2 | * @Date: 2024-09-26 13:42:11 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-11-11 12:14:54 | 4 | + * @LastEditTime: 2024-12-04 10:46:22 |
| 5 | * @FilePath: /hager/src/components/common/hagerHeader.vue | 5 | * @FilePath: /hager/src/components/common/hagerHeader.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -356,6 +356,8 @@ export default { | ... | @@ -356,6 +356,8 @@ export default { |
| 356 | path, | 356 | path, |
| 357 | }); | 357 | }); |
| 358 | } | 358 | } |
| 359 | + // TAG: 统计埋点 | ||
| 360 | + this.maEvent(`h_${path.slice(1)}`); | ||
| 359 | }, | 361 | }, |
| 360 | goToC (item) { // 跳转产品二级 | 362 | goToC (item) { // 跳转产品二级 |
| 361 | this.$router.push({ | 363 | this.$router.push({ | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-10-17 09:22:56 | 2 | * @Date: 2024-10-17 09:22:56 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-11-11 11:20:45 | 4 | + * @LastEditTime: 2024-12-04 10:47:34 |
| 5 | * @FilePath: /hager/src/views/about/index.vue | 5 | * @FilePath: /hager/src/views/about/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -129,6 +129,8 @@ export default { | ... | @@ -129,6 +129,8 @@ export default { |
| 129 | this.$router.push({ | 129 | this.$router.push({ |
| 130 | path, | 130 | path, |
| 131 | }); | 131 | }); |
| 132 | + // TAG: 统计埋点 | ||
| 133 | + this.maEvent(`h_${path.slice(7)}`); | ||
| 132 | } | 134 | } |
| 133 | } | 135 | } |
| 134 | } | 136 | } | ... | ... |
-
Please register or login to post a comment