mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-07 06:03:28 +08:00
🖼 测试代码
This commit is contained in:
@@ -6,6 +6,15 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||
<script>
|
||||
var _hmt = _hmt || [];
|
||||
(function() {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "https://hm.baidu.com/hm.js?62aeb2505bfa26a2461d2a7a3b485096";
|
||||
var s = document.getElementsByTagName("script")[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
|
||||
6
src/lib/site/analytics.js
Normal file
6
src/lib/site/analytics.js
Normal file
@@ -0,0 +1,6 @@
|
||||
const hmt = window._hmt
|
||||
hmt.push(['_trackEvent', 'video', 'play', '海上钢琴师'])
|
||||
hmt.push(['_trackEvent', 'video', 'play', '三国演义'])
|
||||
hmt.push(['_trackEvent', 'page', 'open', 'Film'])
|
||||
hmt.push(['_trackEvent', 'page', 'open', 'IPTV'])
|
||||
console.log(hmt)
|
||||
@@ -4,6 +4,7 @@ import store from './store'
|
||||
import 'modern-normalize'
|
||||
import Register from './components/register'
|
||||
import './lib/element/index'
|
||||
import './lib/site/analytics'
|
||||
|
||||
Register.registerComponents()
|
||||
Vue.config.productionTip = false
|
||||
|
||||
Reference in New Issue
Block a user