Skip to content

Commit

Permalink
feat: 更新 xiview 上报
Browse files Browse the repository at this point in the history
  • Loading branch information
lyxuncle committed Aug 22, 2019
1 parent 90cb42a commit a4dc9a7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<meta name="format-detection" content="telephone=no">
<title>demo</title>

<link href="//storage.jd.com/ambient/styles-particles_emission.css?295143cbe25c1f2aa6ce" rel="stylesheet"></head>
<link href="//storage.jd.com/ambient/styles-particles_emission.css?3ba975f8b4a8afe7d779" rel="stylesheet"></head>
<body>
<!-- S 主体内容 -->
<div class="o2team_ambient_main">
<canvas></canvas>
</div>
<!-- E 主体内容 -->

<script type="text/javascript" src="//storage.jd.com/ambient/control-particles_emission.js?295143cbe25c1f2aa6ce"></script><script type="text/javascript" src="//storage.jd.com/ambient/bundle-particles_emission.js?295143cbe25c1f2aa6ce"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-particles_emission.js?295143cbe25c1f2aa6ce"></script></body>
<script type="text/javascript" src="//storage.jd.com/ambient/control-particles_emission.js?3ba975f8b4a8afe7d779"></script><script type="text/javascript" src="//storage.jd.com/ambient/bundle-particles_emission.js?3ba975f8b4a8afe7d779"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-particles_emission.js?3ba975f8b4a8afe7d779"></script></body>
</html>
4 changes: 2 additions & 2 deletions dist/index_demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<script type="text/javascript" src="//storage.jd.com/ambient-global/ambient-autoStop-head.js"></script>

<link href="//storage.jd.com/ambient/styles-particles_emission.css?295143cbe25c1f2aa6ce" rel="stylesheet"></head>
<link href="//storage.jd.com/ambient/styles-particles_emission.css?3ba975f8b4a8afe7d779" rel="stylesheet"></head>
<body>
<!-- S 主体内容 -->
<div class="o2team_ambient_main">
Expand All @@ -18,5 +18,5 @@

<script type="text/javascript" src="//storage.jd.com/ambient-global/ambient-autoStop-body.js"></script>

<script type="text/javascript" src="//storage.jd.com/ambient/control-particles_emission.js?295143cbe25c1f2aa6ce"></script><script type="text/javascript" src="//storage.jd.com/ambient/bundle-particles_emission.js?295143cbe25c1f2aa6ce"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-particles_emission.js?295143cbe25c1f2aa6ce"></script></body>
<script type="text/javascript" src="//storage.jd.com/ambient/control-particles_emission.js?3ba975f8b4a8afe7d779"></script><script type="text/javascript" src="//storage.jd.com/ambient/bundle-particles_emission.js?3ba975f8b4a8afe7d779"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-particles_emission.js?3ba975f8b4a8afe7d779"></script></body>
</html>
6 changes: 3 additions & 3 deletions info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"title": "particles_emission",
"ambName": "粒子呼吸",
"github": "https://github.com/o2team-ambient/particles_emission",
"demoSnippet": "<link href=\"//storage.jd.com/ambient/styles-particles_emission.css?t=1565787428000\" rel=\"stylesheet\"></link><!-- S 主体内容 -->\n <div class=\"o2team_ambient_main\">\n <canvas></canvas>\n </div>\n <!-- E 主体内容 --><script src=\"//storage.jd.com/ambient/bundle-particles_emission.js?t=1565787428000\"></script>",
"controlUrl": "//storage.jd.com/ambient/control-particles_emission.js?t=1565787428000",
"configUrl": "//storage.jd.com/ambient/config-particles_emission.js?t=1565787428000",
"demoSnippet": "<link href=\"//storage.jd.com/ambient/styles-particles_emission.css?t=1566463421000\" rel=\"stylesheet\"></link><!-- S 主体内容 -->\n <div class=\"o2team_ambient_main\">\n <canvas></canvas>\n </div>\n <!-- E 主体内容 --><script src=\"//storage.jd.com/ambient/bundle-particles_emission.js?t=1566463421000\"></script>",
"controlUrl": "//storage.jd.com/ambient/control-particles_emission.js?t=1566463421000",
"configUrl": "//storage.jd.com/ambient/config-particles_emission.js?t=1566463421000",
"placeholderImg": "//storage.jd.com/ambient/particles_emission_placeholder.png?t=1554259855000",
"spriteImg": "//storage.jd.com/ambient/particles_emission_sprite.png?t=1554259855000"
}
12 changes: 10 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,13 @@ try {
console.log(e)
}

Report.init({})
Report.processPV()
const handleReport = () => {
Report.init({})
Report.processPV()
}

if (typeof window.XView === 'undefined') {
handleReport()
} else {
window.handleReport = handleReport
}

0 comments on commit a4dc9a7

Please sign in to comment.