in static/js/aplus_v2.js [40:239]
function (e, t, n) {
'use strict';
function a(e) {
var t = /AliApp|Yunos|cyclone/i.test(e),
n = /iPhone|iPad|iPod/i.test(e),
a = /Android/i.test(e),
r =
/Windows Phone/i.test(e) ||
/IEMobile/i.test(e) ||
/WPDesktop/i.test(e),
o = /BlackBerry/i.test(e),
i = /Opera Mini/i.test(e);
return t || n || a || r || o || i;
}
function r(e, t) {
return e && e.getAttribute ? e.getAttribute(t) || '' : '';
}
function o(e) {
return (
(s = s || document.getElementsByTagName('head')[0]),
u && !e ? u : s ? (u = s.getElementsByTagName('meta')) : []
);
}
function i(e, t) {
var n;
if (document.querySelector) {
var a = document.querySelector('meta[name="' + e + '"]');
n = r(a, t || 'content');
} else
for (var i = o(), s = i.length, u = 0; s > u; u++) {
var l = i[u];
r(l, 'name') === e && (n = r(l, t || 'content'));
}
return n || '';
}
var s,
u,
l = e('@ali/grey-publish').util;
(n.getArgsQuery = function (e) {
var t =
window.location.search && window.location.search.length > 0
? window.location.search.substring(1)
: '',
n = t.length > 0 ? t.split('&') : [],
a = {};
return (
n.forEach(function (e) {
var t = e.split('=')[0],
n = e.split('=')[1];
a[t] = n;
}),
e ? a[e] : a
);
}),
(n.addScript = function (e, t) {
var n = e,
a = /^http(s)?:/;
(n = a.test(e)
? n.replace(a, location.protocol)
: location.protocol + (/^\/\//.test(n) ? '' : '//') + n),
l.addScript(n, function () {
'function' == typeof t && t();
});
}),
(n.tryToGetAttribute = r),
(n.getMetaTags = o),
(n.getMetaCnt = i),
(n.indexof = function (e, t) {
for (var n = 0; n < e.length; n++) if (e[n] === t) return n;
return -1;
});
var c = function (e, t) {
return (e += ''), e.length < t && (e = '0' + e), e;
};
(n.getDateMin = function () {
var e = new Date(),
t = '';
return (
(t += e.getFullYear()),
(t += c(e.getMonth() + 1, 2)),
(t += c(e.getDate(), 2)),
(t += c(e.getHours(), 2)),
(t += c(e.getMinutes(), 2))
);
}),
(n.isMobile = a);
var g = function () {
var e;
try {
e =
document.getElementById('beacon-aplus') ||
document.getElementById('tb-beacon-aplus');
} catch (t) {}
return e;
};
(n.getCurrentNode = g),
(n.loopAddScript = function (e, t) {
try {
if (t && t instanceof Array) {
var n = 0,
a = function (r) {
r &&
l.addScript(e + '/' + r, function () {
a(t[++n]);
});
};
a(t[n]);
}
} catch (r) {}
});
var p = function (e, t, n) {
var a = window,
r = a.goldlog_queue || (a.goldlog_queue = []),
o = e;
'object' == typeof t && t.message && (o = o + '_' + t.message),
n && n.msg && (o += '_' + n.msg),
r.push({
action: 'goldlog._aplus_cplugin_m.do_tracker_jserror',
arguments: [
{
ratio: window.goldlog && window.goldlog.aplusDebug ? 1 : 0.01,
message: o,
error: JSON.stringify(t),
filename: e,
},
],
});
};
(n.catchException = p),
(n.getCdnpath = function () {
var e = '//g.alicdn.com',
t = '//g-assets.daily.taobao.net',
n = '//assets.alicdn.com/g',
a = '//s.alicdn.com/@g/',
r = '//u.alicdn.com',
o = '//laz-g-cdn.alicdn.com',
i = '//g.lazcdn.com/g',
s = g(),
u = e,
l = [n, a, t, r, o, i],
c = new RegExp(r);
if (s)
for (var f = 0; f < l.length; f++) {
var v = new RegExp(l[f]);
if (v.test(s.src)) {
(u = l[f]), c.test(s.src) && (u = n);
break;
}
}
if (u === o) {
var d = window.navigator ? window.navigator.language : '';
p(
'getCdnpath',
{
lang: d,
},
{
msg: 'laz_g_cdn',
}
);
}
return u;
}),
(n.aplusVersions = {
V_O: 'aplus_o.js',
V_2: 'aplus_v2.js',
V_W: 'aplus_wap.js',
V_S: 'aplus_std.js',
V_I: 'aplus_int.js',
V_U: 'aplus_u.js',
}),
(n.isUseNewAplusJs = function () {
var e = i('aplus-core'),
t = window.navigator.userAgent.toLocaleLowerCase(),
n = /qq\//.test(t),
a = /micromessenger/.test(t),
r = /(taobao\.com)|(tmall\.com)/.test(location.hostname),
o =
['www.taobao.com/', 'www.dingtalk.com/'].indexOf(
location.hostname + location.pathname
) > -1,
s = /aone\.alibaba-inc\.com/.test(location.hostname),
u =
[
'we.taobao.com',
'creator.guanghe.taobao.com',
'h5.m.goofish.com',
'account.yuekeyun.com',
'dengta.taopiaopiao.com',
'myseller.taobao.com',
'dms.alibaba-inc.com',
'qn.taobao.com',
].indexOf(location.hostname) > -1,
l =
/\.wapa\./.test(location.hostname) ||
/^pre-/.test(location.hostname),
c = ['aplus.js'].indexOf(e) > -1;
return ((n || a) && r) || o || u || l || s || c;
});
},