Showing
1 changed file
with
15 additions
and
15 deletions
@@ -18,59 +18,59 @@ | @@ -18,59 +18,59 @@ | ||
18 | (function(w, d, s, j, f) { | 18 | (function(w, d, s, j, f) { |
19 | var a = d.createElement(s); | 19 | var a = d.createElement(s); |
20 | var m = d.getElementsByTagName(s)[0]; | 20 | var m = d.getElementsByTagName(s)[0]; |
21 | - | 21 | + |
22 | w.YohoAcquisitionObject = f; | 22 | w.YohoAcquisitionObject = f; |
23 | - | 23 | + |
24 | w[f] = function() { | 24 | w[f] = function() { |
25 | w[f].p = arguments; | 25 | w[f].p = arguments; |
26 | }; | 26 | }; |
27 | - | 27 | + |
28 | a.async = 1; | 28 | a.async = 1; |
29 | a.src = j; | 29 | a.src = j; |
30 | m.parentNode.insertBefore(a, m); | 30 | m.parentNode.insertBefore(a, m); |
31 | - }(window, document, 'script', (document.location.protocol === 'https:' ? 'https:' : 'http:') + '//cdn.yoho.cn/yas-jssdk/2.4.13/yas.js', '_yas')); | ||
32 | - | 31 | + }(window, document, 'script', (document.location.protocol === 'https:' ? 'https:' : 'http:') + '//cdn.yoho.cn/yas-jssdk/2.4.15/yas.js', '_yas')); |
32 | + | ||
33 | (function() { | 33 | (function() { |
34 | function getUid() { | 34 | function getUid() { |
35 | var uid, | 35 | var uid, |
36 | name = '_UID', | 36 | name = '_UID', |
37 | cookies = (document.cookie && document.cookie.split(';')) || []; | 37 | cookies = (document.cookie && document.cookie.split(';')) || []; |
38 | - | 38 | + |
39 | for (var i = 0; i < cookies.length; i++) { | 39 | for (var i = 0; i < cookies.length; i++) { |
40 | if (cookies[i].indexOf(name) > -1) { | 40 | if (cookies[i].indexOf(name) > -1) { |
41 | uid = decodeURIComponent(cookies[i].replace(name + '=', '').trim()); | 41 | uid = decodeURIComponent(cookies[i].replace(name + '=', '').trim()); |
42 | break; | 42 | break; |
43 | } | 43 | } |
44 | } | 44 | } |
45 | - | 45 | + |
46 | if (!uid) return 0; | 46 | if (!uid) return 0; |
47 | - | 47 | + |
48 | uid = uid.split('::'); | 48 | uid = uid.split('::'); |
49 | if (!uid || uid.length < 4) { | 49 | if (!uid || uid.length < 4) { |
50 | return 0; | 50 | return 0; |
51 | } | 51 | } |
52 | return uid[1]; | 52 | return uid[1]; |
53 | } | 53 | } |
54 | - | 54 | + |
55 | function queryString() { | 55 | function queryString() { |
56 | var vars = {}, | 56 | var vars = {}, |
57 | hash, | 57 | hash, |
58 | i; | 58 | i; |
59 | var hashes = window.location.search.slice(1).split('&'); | 59 | var hashes = window.location.search.slice(1).split('&'); |
60 | - | 60 | + |
61 | for (i = 0; i < hashes.length; i++) { | 61 | for (i = 0; i < hashes.length; i++) { |
62 | hash = hashes[i].split('='); | 62 | hash = hashes[i].split('='); |
63 | vars[hash[0]] = hash[1]; | 63 | vars[hash[0]] = hash[1]; |
64 | } | 64 | } |
65 | return vars; | 65 | return vars; |
66 | } | 66 | } |
67 | - | 67 | + |
68 | var uid = getUid() || queryString().uid; | 68 | var uid = getUid() || queryString().uid; |
69 | - | 69 | + |
70 | uid = uid === 0 ? '' : uid; | 70 | uid = uid === 0 ? '' : uid; |
71 | window._ozuid = uid; // 暴露ozuid | 71 | window._ozuid = uid; // 暴露ozuid |
72 | if (window._yas) { | 72 | if (window._yas) { |
73 | - window._yas(1 * new Date(), '2.4.14', 'yohoblk_m', uid, '', ''); | 73 | + window._yas(1 * new Date(), '2.4.15', 'yohoblk_m', uid, '', ''); |
74 | } | 74 | } |
75 | }()); | 75 | }()); |
76 | var _hmt = _hmt || []; | 76 | var _hmt = _hmt || []; |
@@ -81,7 +81,7 @@ | @@ -81,7 +81,7 @@ | ||
81 | s.parentNode.insertBefore(hm, s); | 81 | s.parentNode.insertBefore(hm, s); |
82 | })(); | 82 | })(); |
83 | </script> | 83 | </script> |
84 | - | 84 | + |
85 | <!--vue-ssr-outlet--> | 85 | <!--vue-ssr-outlet--> |
86 | </body> | 86 | </body> |
87 | -</html> | ||
87 | +</html> |
-
Please register or login to post a comment