Skip to content

Commit

Permalink
feat: 更新 xview 上报
Browse files Browse the repository at this point in the history
  • Loading branch information
lyxuncle committed Aug 22, 2019
1 parent 921a130 commit 72d5b5e
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 @@ -7,12 +7,12 @@
<meta name="format-detection" content="telephone=no">
<title>demo</title>

<link href="//storage.jd.com/ambient/styles-aesthetic.css?7dd8d3054017855be7b7" rel="stylesheet"></head>
<link href="//storage.jd.com/ambient/styles-aesthetic.css?5ca6f4914f9b6fc07cf6" rel="stylesheet"></head>
<body>
<!-- S 主体内容 -->
<div class="o2team_ambient_main">
</div>
<!-- E 主体内容 -->

<script type="text/javascript" src="//storage.jd.com/ambient/bundle-aesthetic.js?7dd8d3054017855be7b7"></script><script type="text/javascript" src="//storage.jd.com/ambient/control-aesthetic.js?7dd8d3054017855be7b7"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-aesthetic.js?7dd8d3054017855be7b7"></script></body>
<script type="text/javascript" src="//storage.jd.com/ambient/bundle-aesthetic.js?5ca6f4914f9b6fc07cf6"></script><script type="text/javascript" src="//storage.jd.com/ambient/control-aesthetic.js?5ca6f4914f9b6fc07cf6"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-aesthetic.js?5ca6f4914f9b6fc07cf6"></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 @@ -9,7 +9,7 @@

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

<link href="//storage.jd.com/ambient/styles-aesthetic.css?7dd8d3054017855be7b7" rel="stylesheet"></head>
<link href="//storage.jd.com/ambient/styles-aesthetic.css?5ca6f4914f9b6fc07cf6" 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/bundle-aesthetic.js?7dd8d3054017855be7b7"></script><script type="text/javascript" src="//storage.jd.com/ambient/control-aesthetic.js?7dd8d3054017855be7b7"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-aesthetic.js?7dd8d3054017855be7b7"></script></body>
<script type="text/javascript" src="//storage.jd.com/ambient/bundle-aesthetic.js?5ca6f4914f9b6fc07cf6"></script><script type="text/javascript" src="//storage.jd.com/ambient/control-aesthetic.js?5ca6f4914f9b6fc07cf6"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-aesthetic.js?5ca6f4914f9b6fc07cf6"></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": "aesthetic",
"ambName": "梦幻",
"github": "https://github.com/o2team-ambient/aesthetic",
"demoSnippet": "<link href=\"//storage.jd.com/ambient/styles-aesthetic.css?t=1565874966000\" rel=\"stylesheet\"></link><!-- S 主体内容 -->\n <div class=\"o2team_ambient_main\">\n </div>\n <!-- E 主体内容 --><script src=\"//storage.jd.com/ambient/bundle-aesthetic.js?t=1565874966000\"></script>",
"controlUrl": "//storage.jd.com/ambient/control-aesthetic.js?t=1565874966000",
"configUrl": "//storage.jd.com/ambient/config-aesthetic.js?t=1565874966000",
"demoSnippet": "<link href=\"//storage.jd.com/ambient/styles-aesthetic.css?t=1566460071000\" rel=\"stylesheet\"></link><!-- S 主体内容 -->\n <div class=\"o2team_ambient_main\">\n </div>\n <!-- E 主体内容 --><script src=\"//storage.jd.com/ambient/bundle-aesthetic.js?t=1566460071000\"></script>",
"controlUrl": "//storage.jd.com/ambient/control-aesthetic.js?t=1566460071000",
"configUrl": "//storage.jd.com/ambient/config-aesthetic.js?t=1566460071000",
"placeholderImg": "//storage.jd.com/ambient/aesthetic_placeholder.png?t=1554195745000",
"spriteImg": "//storage.jd.com/ambient/aesthetic_sprite.png?t=1554195745000"
}
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(29)
const handleReport = () => {
Report.init({})
Report.processPV()
}

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

0 comments on commit 72d5b5e

Please sign in to comment.