|
@@ -12,7 +12,7 @@ |
|
@@ -12,7 +12,7 @@ |
12
|
a.async = 1;
|
12
|
a.async = 1;
|
13
|
a.src = j;
|
13
|
a.src = j;
|
14
|
m.parentNode.insertBefore(a, m);
|
14
|
m.parentNode.insertBefore(a, m);
|
15
|
- }(window, document, 'script', (document.location.protocol === 'https:' ? 'https' : 'http') + '://cdn.yoho.cn/yas-jssdk/2.0.0/yas.js', '_yas'));
|
15
|
+ }(window, document, 'script', (document.location.protocol === 'https:' ? 'https:' : 'http:') + '//cdn.yoho.cn/yas-jssdk/2.1.0/yas.js', '_yas'));
|
16
|
|
16
|
|
17
|
(function() {
|
17
|
(function() {
|
18
|
function getUid() {
|
18
|
function getUid() {
|
|
@@ -37,14 +37,13 @@ |
|
@@ -37,14 +37,13 @@ |
37
|
}
|
37
|
}
|
38
|
|
38
|
|
39
|
function queryString() {
|
39
|
function queryString() {
|
40
|
- var vars = [],
|
40
|
+ var vars = {},
|
41
|
hash,
|
41
|
hash,
|
42
|
i;
|
42
|
i;
|
43
|
var hashes = window.location.search.slice(1).split('&');
|
43
|
var hashes = window.location.search.slice(1).split('&');
|
44
|
|
44
|
|
45
|
for (i = 0; i < hashes.length; i++) {
|
45
|
for (i = 0; i < hashes.length; i++) {
|
46
|
hash = hashes[i].split('=');
|
46
|
hash = hashes[i].split('=');
|
47
|
- vars.push(hash[0]);
|
|
|
48
|
vars[hash[0]] = hash[1];
|
47
|
vars[hash[0]] = hash[1];
|
49
|
}
|
48
|
}
|
50
|
return vars;
|
49
|
return vars;
|
|
@@ -55,7 +54,7 @@ |
|
@@ -55,7 +54,7 @@ |
55
|
uid = uid === 0 ? '' : uid;
|
54
|
uid = uid === 0 ? '' : uid;
|
56
|
window._ozuid = uid; // 暴露ozuid
|
55
|
window._ozuid = uid; // 暴露ozuid
|
57
|
if (window._yas) {
|
56
|
if (window._yas) {
|
58
|
- window._yas(1 * new Date(), '2.0.0', 'yohobuy_m', uid, '', '');
|
57
|
+ window._yas(1 * new Date(), '2.1.0', 'yohobuy_m', uid, '', '');
|
59
|
}
|
58
|
}
|
60
|
}());
|
59
|
}());
|
61
|
</script>
|
60
|
</script>
|