mirror of
https://github.com/yanxi-me/weixin-js-sdk.git
synced 2025-04-06 04:00:07 +08:00
commit
93bc926079
596
index.js
596
index.js
@ -2,21 +2,28 @@
|
|||||||
module.exports = n(e)
|
module.exports = n(e)
|
||||||
}(window, function (e, n) {
|
}(window, function (e, n) {
|
||||||
function i(n, i, t) {
|
function i(n, i, t) {
|
||||||
e.WeixinJSBridge ? WeixinJSBridge.invoke(n, o(i), function (e) {
|
e.WeixinJSBridge ? WeixinJSBridge.invoke(n, o(i),
|
||||||
|
function(e) {
|
||||||
c(n, e, t)
|
c(n, e, t)
|
||||||
}) : u(n, t)
|
}) : u(n, t)
|
||||||
}
|
}
|
||||||
|
|
||||||
function t(n, i, t) {
|
function t(n, i, t) {
|
||||||
e.WeixinJSBridge ? WeixinJSBridge.on(n, function (e) {
|
e.WeixinJSBridge ? WeixinJSBridge.on(n,
|
||||||
t && t.trigger && t.trigger(e), c(n, e, i)
|
function(e) {
|
||||||
|
t && t.trigger && t.trigger(e),
|
||||||
|
c(n, e, i)
|
||||||
}) : t ? u(n, t) : u(n, i)
|
}) : t ? u(n, t) : u(n, i)
|
||||||
}
|
}
|
||||||
|
|
||||||
function o(e) {
|
function o(e) {
|
||||||
return e = e || {}, e.appId = C.appId, e.verifyAppId = C.appId, e.verifySignType = "sha1", e.verifyTimestamp = C.timestamp + "", e.verifyNonceStr = C.nonceStr, e.verifySignature = C.signature, e
|
return e = e || {},
|
||||||
|
e.appId = C.appId,
|
||||||
|
e.verifyAppId = C.appId,
|
||||||
|
e.verifySignType = "sha1",
|
||||||
|
e.verifyTimestamp = C.timestamp + "",
|
||||||
|
e.verifyNonceStr = C.nonceStr,
|
||||||
|
e.verifySignature = C.signature,
|
||||||
|
e
|
||||||
}
|
}
|
||||||
|
|
||||||
function r(e) {
|
function r(e) {
|
||||||
return {
|
return {
|
||||||
timeStamp: e.timestamp + "",
|
timeStamp: e.timestamp + "",
|
||||||
@ -26,15 +33,29 @@
|
|||||||
signType: e.signType || "SHA1"
|
signType: e.signType || "SHA1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function a(e) {
|
function a(e) {
|
||||||
return e.postalCode = e.addressPostalCode, delete e.addressPostalCode, e.provinceName = e.proviceFirstStageName, delete e.proviceFirstStageName, e.cityName = e.addressCitySecondStageName, delete e.addressCitySecondStageName, e.countryName = e.addressCountiesThirdStageName, delete e.addressCountiesThirdStageName, e.detailInfo = e.addressDetailInfo, delete e.addressDetailInfo, e
|
return e.postalCode = e.addressPostalCode,
|
||||||
|
delete e.addressPostalCode,
|
||||||
|
e.provinceName = e.proviceFirstStageName,
|
||||||
|
delete e.proviceFirstStageName,
|
||||||
|
e.cityName = e.addressCitySecondStageName,
|
||||||
|
delete e.addressCitySecondStageName,
|
||||||
|
e.countryName = e.addressCountiesThirdStageName,
|
||||||
|
delete e.addressCountiesThirdStageName,
|
||||||
|
e.detailInfo = e.addressDetailInfo,
|
||||||
|
delete e.addressDetailInfo,
|
||||||
|
e
|
||||||
}
|
}
|
||||||
|
|
||||||
function c(e, n, i) {
|
function c(e, n, i) {
|
||||||
"openEnterpriseChat" == e && (n.errCode = n.err_code), delete n.err_code, delete n.err_desc, delete n.err_detail;
|
"openEnterpriseChat" == e && (n.errCode = n.err_code),
|
||||||
|
delete n.err_code,
|
||||||
|
delete n.err_desc,
|
||||||
|
delete n.err_detail;
|
||||||
var t = n.errMsg;
|
var t = n.errMsg;
|
||||||
t || (t = n.err_msg, delete n.err_msg, t = s(e, t), n.errMsg = t), (i = i || {})._complete && (i._complete(n), delete i._complete), t = n.errMsg || "", C.debug && !i.isInnerInvoke && alert(JSON.stringify(n));
|
t || (t = n.err_msg, delete n.err_msg, t = s(e, t), n.errMsg = t),
|
||||||
|
(i = i || {})._complete && (i._complete(n), delete i._complete),
|
||||||
|
t = n.errMsg || "",
|
||||||
|
C.debug && !i.isInnerInvoke && alert(JSON.stringify(n));
|
||||||
var o = t.indexOf(":");
|
var o = t.indexOf(":");
|
||||||
switch (t.substring(o + 1)) {
|
switch (t.substring(o + 1)) {
|
||||||
case "ok":
|
case "ok":
|
||||||
@ -48,7 +69,6 @@
|
|||||||
}
|
}
|
||||||
i.complete && i.complete(n)
|
i.complete && i.complete(n)
|
||||||
}
|
}
|
||||||
|
|
||||||
function s(e, n) {
|
function s(e, n) {
|
||||||
var i = e,
|
var i = e,
|
||||||
t = v[i];
|
t = v[i];
|
||||||
@ -56,14 +76,20 @@
|
|||||||
var o = "ok";
|
var o = "ok";
|
||||||
if (n) {
|
if (n) {
|
||||||
var r = n.indexOf(":");
|
var r = n.indexOf(":");
|
||||||
"confirm" == (o = n.substring(r + 1)) && (o = "ok"), "failed" == o && (o = "fail"), -1 != o.indexOf("failed_") && (o = o.substring(7)), -1 != o.indexOf("fail_") && (o = o.substring(5)), "access denied" != (o = (o = o.replace(/_/g, " ")).toLowerCase()) && "no permission to execute" != o || (o = "permission denied"), "config" == i && "function not exist" == o && (o = "ok"), "" == o && (o = "fail")
|
"confirm" == (o = n.substring(r + 1)) && (o = "ok"),
|
||||||
|
"failed" == o && (o = "fail"),
|
||||||
|
-1 != o.indexOf("failed_") && (o = o.substring(7)),
|
||||||
|
-1 != o.indexOf("fail_") && (o = o.substring(5)),
|
||||||
|
"access denied" != (o = (o = o.replace(/_/g, " ")).toLowerCase()) && "no permission to execute" != o || (o = "permission denied"),
|
||||||
|
"config" == i && "function not exist" == o && (o = "ok"),
|
||||||
|
"" == o && (o = "fail")
|
||||||
}
|
}
|
||||||
return n = i + ":" + o
|
return n = i + ":" + o
|
||||||
}
|
}
|
||||||
|
|
||||||
function d(e) {
|
function d(e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
for (var n = 0, i = e.length; n < i; ++n) {
|
for (var n = 0,
|
||||||
|
i = e.length; n < i; ++n) {
|
||||||
var t = e[n],
|
var t = e[n],
|
||||||
o = h[t];
|
o = h[t];
|
||||||
o && (e[n] = o)
|
o && (e[n] = o)
|
||||||
@ -71,49 +97,50 @@
|
|||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function u(e, n) {
|
function u(e, n) {
|
||||||
if (!(!C.debug || n && n.isInnerInvoke)) {
|
if (! (!C.debug || n && n.isInnerInvoke)) {
|
||||||
var i = v[e];
|
var i = v[e];
|
||||||
i && (e = i), n && n._complete && delete n._complete, console.log('"' + e + '",', n || "")
|
i && (e = i),
|
||||||
|
n && n._complete && delete n._complete,
|
||||||
|
console.log('"' + e + '",', n || "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function l(e) {
|
function l(e) {
|
||||||
if (!(w || T || C.debug || x < "6.0.2" || A.systemType < 0)) {
|
if (! (k || w || C.debug || x < "6.0.2" || V.systemType < 0)) {
|
||||||
var n = new Image;
|
var n = new Image;
|
||||||
A.appId = C.appId, A.initTime = V.initEndTime - V.initStartTime, A.preVerifyTime = V.preVerifyEndTime - V.preVerifyStartTime, N.getNetworkType({
|
V.appId = C.appId,
|
||||||
|
V.initTime = A.initEndTime - A.initStartTime,
|
||||||
|
V.preVerifyTime = A.preVerifyEndTime - A.preVerifyStartTime,
|
||||||
|
N.getNetworkType({
|
||||||
isInnerInvoke: !0,
|
isInnerInvoke: !0,
|
||||||
success: function (e) {
|
success: function(e) {
|
||||||
A.networkType = e.networkType;
|
V.networkType = e.networkType;
|
||||||
var i = "https://open.weixin.qq.com/sdk/report?v=" + A.version + "&o=" + A.isPreVerifyOk + "&s=" + A.systemType + "&c=" + A.clientVersion + "&a=" + A.appId + "&n=" + A.networkType + "&i=" + A.initTime + "&p=" + A.preVerifyTime + "&u=" + A.url;
|
var i = "https://open.weixin.qq.com/sdk/report?v=" + V.version + "&o=" + V.isPreVerifyOk + "&s=" + V.systemType + "&c=" + V.clientVersion + "&a=" + V.appId + "&n=" + V.networkType + "&i=" + V.initTime + "&p=" + V.preVerifyTime + "&u=" + V.url;
|
||||||
n.src = i
|
n.src = i
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function p() {
|
function p() {
|
||||||
return (new Date).getTime()
|
return (new Date).getTime()
|
||||||
}
|
}
|
||||||
|
|
||||||
function f(n) {
|
function f(n) {
|
||||||
k && (e.WeixinJSBridge ? "preInject" === I.__wxjsjs__isPreInject ? I.addEventListener && I.addEventListener("WeixinJSBridgeReady", n, !1) : n() : I.addEventListener && I.addEventListener("WeixinJSBridgeReady", n, !1))
|
T && (e.WeixinJSBridge ? n() : S.addEventListener && S.addEventListener("WeixinJSBridgeReady", n, !1))
|
||||||
}
|
}
|
||||||
|
|
||||||
function m() {
|
function m() {
|
||||||
N.invoke || (N.invoke = function (n, i, t) {
|
N.invoke || (N.invoke = function(n, i, t) {
|
||||||
e.WeixinJSBridge && WeixinJSBridge.invoke(n, o(i), t)
|
e.WeixinJSBridge && WeixinJSBridge.invoke(n, o(i), t)
|
||||||
}, N.on = function (n, i) {
|
},
|
||||||
|
N.on = function(n, i) {
|
||||||
e.WeixinJSBridge && WeixinJSBridge.on(n, i)
|
e.WeixinJSBridge && WeixinJSBridge.on(n, i)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function g(e) {
|
function g(e) {
|
||||||
if ("string" == typeof e && e.length > 0) {
|
if ("string" == typeof e && e.length > 0) {
|
||||||
var n = e.split("?")[0],
|
var n = e.split("?")[0],
|
||||||
i = e.split("?")[1];
|
i = e.split("?")[1];
|
||||||
return n += ".html", void 0 !== i ? n + "?" + i : n
|
return n += ".html",
|
||||||
|
void 0 !== i ? n + "?" + i: n
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!e.jWeixin) {
|
if (!e.jWeixin) {
|
||||||
@ -137,31 +164,31 @@
|
|||||||
consumeAndShareCard: "consumedShareCard",
|
consumeAndShareCard: "consumedShareCard",
|
||||||
openAddress: "editAddress"
|
openAddress: "editAddress"
|
||||||
},
|
},
|
||||||
v = function () {
|
v = function() {
|
||||||
var e = {};
|
var e = {};
|
||||||
for (var n in h) e[h[n]] = n;
|
for (var n in h) e[h[n]] = n;
|
||||||
return e
|
return e
|
||||||
}(),
|
} (),
|
||||||
I = e.document,
|
S = e.document,
|
||||||
S = I.title,
|
I = S.title,
|
||||||
y = navigator.userAgent.toLowerCase(),
|
y = navigator.userAgent.toLowerCase(),
|
||||||
_ = navigator.platform.toLowerCase(),
|
_ = navigator.platform.toLowerCase(),
|
||||||
w = !(!_.match("mac") && !_.match("win")),
|
k = !(!_.match("mac") && !_.match("win")),
|
||||||
T = -1 != y.indexOf("wxdebugger"),
|
w = -1 != y.indexOf("wxdebugger"),
|
||||||
k = -1 != y.indexOf("micromessenger"),
|
T = -1 != y.indexOf("micromessenger"),
|
||||||
M = -1 != y.indexOf("android"),
|
M = -1 != y.indexOf("android"),
|
||||||
P = -1 != y.indexOf("iphone") || -1 != y.indexOf("ipad"),
|
P = -1 != y.indexOf("iphone") || -1 != y.indexOf("ipad"),
|
||||||
x = function () {
|
x = function() {
|
||||||
var e = y.match(/micromessenger\/(\d+\.\d+\.\d+)/) || y.match(/micromessenger\/(\d+\.\d+)/);
|
var e = y.match(/micromessenger\/(\d+\.\d+\.\d+)/) || y.match(/micromessenger\/(\d+\.\d+)/);
|
||||||
return e ? e[1] : ""
|
return e ? e[1] : ""
|
||||||
}(),
|
} (),
|
||||||
V = {
|
A = {
|
||||||
initStartTime: p(),
|
initStartTime: p(),
|
||||||
initEndTime: 0,
|
initEndTime: 0,
|
||||||
preVerifyStartTime: 0,
|
preVerifyStartTime: 0,
|
||||||
preVerifyEndTime: 0
|
preVerifyEndTime: 0
|
||||||
},
|
},
|
||||||
A = {
|
V = {
|
||||||
version: 1,
|
version: 1,
|
||||||
appId: "",
|
appId: "",
|
||||||
initTime: 0,
|
initTime: 0,
|
||||||
@ -180,49 +207,62 @@
|
|||||||
state: 0,
|
state: 0,
|
||||||
data: {}
|
data: {}
|
||||||
};
|
};
|
||||||
f(function () {
|
f(function() {
|
||||||
V.initEndTime = p()
|
A.initEndTime = p()
|
||||||
});
|
});
|
||||||
var E = !1,
|
var O = !1,
|
||||||
O = [],
|
E = [],
|
||||||
N = {
|
N = {
|
||||||
config: function (e) {
|
config: function(e) {
|
||||||
C = e, u("config", e);
|
C = e,
|
||||||
|
u("config", e);
|
||||||
var n = !1 !== C.check;
|
var n = !1 !== C.check;
|
||||||
f(function () {
|
f(function() {
|
||||||
if (n) i(h.config, {
|
if (n) i(h.config, {
|
||||||
verifyJsApiList: d(C.jsApiList)
|
verifyJsApiList: d(C.jsApiList)
|
||||||
}, function () {
|
},
|
||||||
L._complete = function (e) {
|
function() {
|
||||||
V.preVerifyEndTime = p(), B.state = 1, B.data = e
|
L._complete = function(e) {
|
||||||
}, L.success = function (e) {
|
A.preVerifyEndTime = p(),
|
||||||
A.isPreVerifyOk = 0
|
B.state = 1,
|
||||||
}, L.fail = function (e) {
|
B.data = e
|
||||||
|
},
|
||||||
|
L.success = function(e) {
|
||||||
|
V.isPreVerifyOk = 0
|
||||||
|
},
|
||||||
|
L.fail = function(e) {
|
||||||
L._fail ? L._fail(e) : B.state = -1
|
L._fail ? L._fail(e) : B.state = -1
|
||||||
};
|
};
|
||||||
var e = L._completes;
|
var e = L._completes;
|
||||||
return e.push(function () {
|
return e.push(function() {
|
||||||
l()
|
l()
|
||||||
}), L.complete = function (n) {
|
}),
|
||||||
for (var i = 0, t = e.length; i < t; ++i) e[i]();
|
L.complete = function(n) {
|
||||||
|
for (var i = 0,
|
||||||
|
t = e.length; i < t; ++i) e[i]();
|
||||||
L._completes = []
|
L._completes = []
|
||||||
}, L
|
},
|
||||||
}()), V.preVerifyStartTime = p();
|
L
|
||||||
|
} ()),
|
||||||
|
A.preVerifyStartTime = p();
|
||||||
else {
|
else {
|
||||||
B.state = 1;
|
B.state = 1;
|
||||||
for (var e = L._completes, t = 0, o = e.length; t < o; ++t) e[t]();
|
for (var e = L._completes,
|
||||||
|
t = 0,
|
||||||
|
o = e.length; t < o; ++t) e[t]();
|
||||||
L._completes = []
|
L._completes = []
|
||||||
}
|
}
|
||||||
}), m()
|
}),
|
||||||
|
m()
|
||||||
},
|
},
|
||||||
ready: function (e) {
|
ready: function(e) {
|
||||||
0 != B.state ? e() : (L._completes.push(e), !k && C.debug && e())
|
0 != B.state ? e() : (L._completes.push(e), !T && C.debug && e())
|
||||||
},
|
},
|
||||||
error: function (e) {
|
error: function(e) {
|
||||||
x < "6.0.2" || (-1 == B.state ? e(B.data) : L._fail = e)
|
x < "6.0.2" || ( - 1 == B.state ? e(B.data) : L._fail = e)
|
||||||
},
|
},
|
||||||
checkJsApi: function (e) {
|
checkJsApi: function(e) {
|
||||||
var n = function (e) {
|
var n = function(e) {
|
||||||
var n = e.checkResult;
|
var n = e.checkResult;
|
||||||
for (var i in n) {
|
for (var i in n) {
|
||||||
var t = v[i];
|
var t = v[i];
|
||||||
@ -232,167 +272,219 @@
|
|||||||
};
|
};
|
||||||
i("checkJsApi", {
|
i("checkJsApi", {
|
||||||
jsApiList: d(e.jsApiList)
|
jsApiList: d(e.jsApiList)
|
||||||
}, (e._complete = function (e) {
|
},
|
||||||
|
(e._complete = function(e) {
|
||||||
if (M) {
|
if (M) {
|
||||||
var i = e.checkResult;
|
var i = e.checkResult;
|
||||||
i && (e.checkResult = JSON.parse(i))
|
i && (e.checkResult = JSON.parse(i))
|
||||||
}
|
}
|
||||||
e = n(e)
|
e = n(e)
|
||||||
}, e))
|
|
||||||
},
|
},
|
||||||
onMenuShareTimeline: function (e) {
|
e))
|
||||||
|
},
|
||||||
|
onMenuShareTimeline: function(e) {
|
||||||
t(h.onMenuShareTimeline, {
|
t(h.onMenuShareTimeline, {
|
||||||
complete: function () {
|
complete: function() {
|
||||||
i("shareTimeline", {
|
i("shareTimeline", {
|
||||||
title: e.title || S,
|
title: e.title || I,
|
||||||
desc: e.title || S,
|
desc: e.title || I,
|
||||||
img_url: e.imgUrl || "",
|
img_url: e.imgUrl || "",
|
||||||
link: e.link || location.href,
|
link: e.link || location.href,
|
||||||
type: e.type || "link",
|
type: e.type || "link",
|
||||||
data_url: e.dataUrl || ""
|
data_url: e.dataUrl || ""
|
||||||
}, e)
|
|
||||||
}
|
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
onMenuShareAppMessage: function (e) {
|
e)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
e)
|
||||||
|
},
|
||||||
|
onMenuShareAppMessage: function(e) {
|
||||||
t(h.onMenuShareAppMessage, {
|
t(h.onMenuShareAppMessage, {
|
||||||
complete: function () {
|
complete: function(n) {
|
||||||
i("sendAppMessage", {
|
"favorite" === n.scene ? i("sendAppMessage", {
|
||||||
title: e.title || S,
|
title: e.title || I,
|
||||||
|
desc: e.desc || "",
|
||||||
|
link: e.link || location.href,
|
||||||
|
img_url: e.imgUrl || "",
|
||||||
|
type: e.type || "link",
|
||||||
|
data_url: e.dataUrl || ""
|
||||||
|
}) : i("sendAppMessage", {
|
||||||
|
title: e.title || I,
|
||||||
desc: e.desc || "",
|
desc: e.desc || "",
|
||||||
link: e.link || location.href,
|
link: e.link || location.href,
|
||||||
img_url: e.imgUrl || "",
|
img_url: e.imgUrl || "",
|
||||||
type: e.type || "link",
|
type: e.type || "link",
|
||||||
data_url: e.dataUrl || ""
|
data_url: e.dataUrl || ""
|
||||||
}, e)
|
|
||||||
}
|
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
onMenuShareQQ: function (e) {
|
e)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
e)
|
||||||
|
},
|
||||||
|
onMenuShareQQ: function(e) {
|
||||||
t(h.onMenuShareQQ, {
|
t(h.onMenuShareQQ, {
|
||||||
complete: function () {
|
complete: function() {
|
||||||
i("shareQQ", {
|
i("shareQQ", {
|
||||||
title: e.title || S,
|
title: e.title || I,
|
||||||
desc: e.desc || "",
|
desc: e.desc || "",
|
||||||
img_url: e.imgUrl || "",
|
img_url: e.imgUrl || "",
|
||||||
link: e.link || location.href
|
link: e.link || location.href
|
||||||
}, e)
|
|
||||||
}
|
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
onMenuShareWeibo: function (e) {
|
e)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
e)
|
||||||
|
},
|
||||||
|
onMenuShareWeibo: function(e) {
|
||||||
t(h.onMenuShareWeibo, {
|
t(h.onMenuShareWeibo, {
|
||||||
complete: function () {
|
complete: function() {
|
||||||
i("shareWeiboApp", {
|
i("shareWeiboApp", {
|
||||||
title: e.title || S,
|
title: e.title || I,
|
||||||
desc: e.desc || "",
|
desc: e.desc || "",
|
||||||
img_url: e.imgUrl || "",
|
img_url: e.imgUrl || "",
|
||||||
link: e.link || location.href
|
link: e.link || location.href
|
||||||
}, e)
|
|
||||||
}
|
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
onMenuShareQZone: function (e) {
|
e)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
e)
|
||||||
|
},
|
||||||
|
onMenuShareQZone: function(e) {
|
||||||
t(h.onMenuShareQZone, {
|
t(h.onMenuShareQZone, {
|
||||||
complete: function () {
|
complete: function() {
|
||||||
i("shareQZone", {
|
i("shareQZone", {
|
||||||
title: e.title || S,
|
title: e.title || I,
|
||||||
desc: e.desc || "",
|
desc: e.desc || "",
|
||||||
img_url: e.imgUrl || "",
|
img_url: e.imgUrl || "",
|
||||||
link: e.link || location.href
|
link: e.link || location.href
|
||||||
}, e)
|
},
|
||||||
|
e)
|
||||||
}
|
}
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
startRecord: function (e) {
|
e)
|
||||||
i("startRecord", {}, e)
|
|
||||||
},
|
},
|
||||||
stopRecord: function (e) {
|
updateTimelineShareData: function(e) {
|
||||||
i("stopRecord", {}, e)
|
i("updateTimelineShareData", {
|
||||||
|
title: e.title,
|
||||||
|
link: e.link,
|
||||||
|
imgUrl: e.imgUrl
|
||||||
},
|
},
|
||||||
onVoiceRecordEnd: function (e) {
|
e)
|
||||||
|
},
|
||||||
|
updateAppMessageShareData: function(e) {
|
||||||
|
i("updateAppMessageShareData", {
|
||||||
|
title: e.title,
|
||||||
|
desc: e.desc,
|
||||||
|
link: e.link,
|
||||||
|
imgUrl: e.imgUrl
|
||||||
|
},
|
||||||
|
e)
|
||||||
|
},
|
||||||
|
startRecord: function(e) {
|
||||||
|
i("startRecord", {},
|
||||||
|
e)
|
||||||
|
},
|
||||||
|
stopRecord: function(e) {
|
||||||
|
i("stopRecord", {},
|
||||||
|
e)
|
||||||
|
},
|
||||||
|
onVoiceRecordEnd: function(e) {
|
||||||
t("onVoiceRecordEnd", e)
|
t("onVoiceRecordEnd", e)
|
||||||
},
|
},
|
||||||
playVoice: function (e) {
|
playVoice: function(e) {
|
||||||
i("playVoice", {
|
i("playVoice", {
|
||||||
localId: e.localId
|
localId: e.localId
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
pauseVoice: function (e) {
|
e)
|
||||||
|
},
|
||||||
|
pauseVoice: function(e) {
|
||||||
i("pauseVoice", {
|
i("pauseVoice", {
|
||||||
localId: e.localId
|
localId: e.localId
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
stopVoice: function (e) {
|
e)
|
||||||
|
},
|
||||||
|
stopVoice: function(e) {
|
||||||
i("stopVoice", {
|
i("stopVoice", {
|
||||||
localId: e.localId
|
localId: e.localId
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
onVoicePlayEnd: function (e) {
|
e)
|
||||||
|
},
|
||||||
|
onVoicePlayEnd: function(e) {
|
||||||
t("onVoicePlayEnd", e)
|
t("onVoicePlayEnd", e)
|
||||||
},
|
},
|
||||||
uploadVoice: function (e) {
|
uploadVoice: function(e) {
|
||||||
i("uploadVoice", {
|
i("uploadVoice", {
|
||||||
localId: e.localId,
|
localId: e.localId,
|
||||||
isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
|
isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
downloadVoice: function (e) {
|
e)
|
||||||
|
},
|
||||||
|
downloadVoice: function(e) {
|
||||||
i("downloadVoice", {
|
i("downloadVoice", {
|
||||||
serverId: e.serverId,
|
serverId: e.serverId,
|
||||||
isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
|
isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
translateVoice: function (e) {
|
e)
|
||||||
|
},
|
||||||
|
translateVoice: function(e) {
|
||||||
i("translateVoice", {
|
i("translateVoice", {
|
||||||
localId: e.localId,
|
localId: e.localId,
|
||||||
isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
|
isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
chooseImage: function (e) {
|
e)
|
||||||
|
},
|
||||||
|
chooseImage: function(e) {
|
||||||
i("chooseImage", {
|
i("chooseImage", {
|
||||||
scene: "1|2",
|
scene: "1|2",
|
||||||
count: e.count || 9,
|
count: e.count || 9,
|
||||||
sizeType: e.sizeType || ["original", "compressed"],
|
sizeType: e.sizeType || ["original", "compressed"],
|
||||||
sourceType: e.sourceType || ["album", "camera"]
|
sourceType: e.sourceType || ["album", "camera"]
|
||||||
}, (e._complete = function (e) {
|
},
|
||||||
|
(e._complete = function(e) {
|
||||||
if (M) {
|
if (M) {
|
||||||
var n = e.localIds;
|
var n = e.localIds;
|
||||||
|
try {
|
||||||
n && (e.localIds = JSON.parse(n))
|
n && (e.localIds = JSON.parse(n))
|
||||||
|
} catch(e) {}
|
||||||
}
|
}
|
||||||
}, e))
|
|
||||||
},
|
},
|
||||||
getLocation: function (e) {},
|
e))
|
||||||
previewImage: function (e) {
|
},
|
||||||
|
getLocation: function(e) {},
|
||||||
|
previewImage: function(e) {
|
||||||
i(h.previewImage, {
|
i(h.previewImage, {
|
||||||
current: e.current,
|
current: e.current,
|
||||||
urls: e.urls
|
urls: e.urls
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
uploadImage: function (e) {
|
e)
|
||||||
|
},
|
||||||
|
uploadImage: function(e) {
|
||||||
i("uploadImage", {
|
i("uploadImage", {
|
||||||
localId: e.localId,
|
localId: e.localId,
|
||||||
isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
|
isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
downloadImage: function (e) {
|
e)
|
||||||
|
},
|
||||||
|
downloadImage: function(e) {
|
||||||
i("downloadImage", {
|
i("downloadImage", {
|
||||||
serverId: e.serverId,
|
serverId: e.serverId,
|
||||||
isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
|
isShowProgressTips: 0 == e.isShowProgressTips ? 0 : 1
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
getLocalImgData: function (e) {
|
e)
|
||||||
!1 === E ? (E = !0, i("getLocalImgData", {
|
},
|
||||||
|
getLocalImgData: function(e) { ! 1 === O ? (O = !0, i("getLocalImgData", {
|
||||||
localId: e.localId
|
localId: e.localId
|
||||||
}, (e._complete = function (e) {
|
|
||||||
if (E = !1, O.length > 0) {
|
|
||||||
var n = O.shift();
|
|
||||||
N.getLocalImgData(n)
|
|
||||||
}
|
|
||||||
}, e))) : O.push(e)
|
|
||||||
},
|
},
|
||||||
getNetworkType: function (e) {
|
(e._complete = function(e) {
|
||||||
var n = function (e) {
|
if (O = !1, E.length > 0) {
|
||||||
|
var n = E.shift();
|
||||||
|
wx.getLocalImgData(n)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
e))) : E.push(e)
|
||||||
|
},
|
||||||
|
getNetworkType: function(e) {
|
||||||
|
var n = function(e) {
|
||||||
var n = e.errMsg;
|
var n = e.errMsg;
|
||||||
e.errMsg = "getNetworkType:ok";
|
e.errMsg = "getNetworkType:ok";
|
||||||
var i = e.subtype;
|
var i = e.subtype;
|
||||||
@ -412,11 +504,13 @@
|
|||||||
}
|
}
|
||||||
return e
|
return e
|
||||||
};
|
};
|
||||||
i("getNetworkType", {}, (e._complete = function (e) {
|
i("getNetworkType", {},
|
||||||
|
(e._complete = function(e) {
|
||||||
e = n(e)
|
e = n(e)
|
||||||
}, e))
|
|
||||||
},
|
},
|
||||||
openLocation: function (e) {
|
e))
|
||||||
|
},
|
||||||
|
openLocation: function(e) {
|
||||||
i("openLocation", {
|
i("openLocation", {
|
||||||
latitude: e.latitude,
|
latitude: e.latitude,
|
||||||
longitude: e.longitude,
|
longitude: e.longitude,
|
||||||
@ -424,45 +518,57 @@
|
|||||||
address: e.address || "",
|
address: e.address || "",
|
||||||
scale: e.scale || 28,
|
scale: e.scale || 28,
|
||||||
infoUrl: e.infoUrl || ""
|
infoUrl: e.infoUrl || ""
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
getLocation: function (e) {
|
e)
|
||||||
e = e || {}, i(h.getLocation, {
|
},
|
||||||
|
getLocation: function(e) {
|
||||||
|
e = e || {},
|
||||||
|
i(h.getLocation, {
|
||||||
type: e.type || "wgs84"
|
type: e.type || "wgs84"
|
||||||
}, (e._complete = function (e) {
|
},
|
||||||
|
(e._complete = function(e) {
|
||||||
delete e.type
|
delete e.type
|
||||||
}, e))
|
|
||||||
},
|
},
|
||||||
hideOptionMenu: function (e) {
|
e))
|
||||||
i("hideOptionMenu", {}, e)
|
|
||||||
},
|
},
|
||||||
showOptionMenu: function (e) {
|
hideOptionMenu: function(e) {
|
||||||
i("showOptionMenu", {}, e)
|
i("hideOptionMenu", {},
|
||||||
|
e)
|
||||||
},
|
},
|
||||||
closeWindow: function (e) {
|
showOptionMenu: function(e) {
|
||||||
i("closeWindow", {}, e = e || {})
|
i("showOptionMenu", {},
|
||||||
|
e)
|
||||||
},
|
},
|
||||||
hideMenuItems: function (e) {
|
closeWindow: function(e) {
|
||||||
|
i("closeWindow", {},
|
||||||
|
e = e || {})
|
||||||
|
},
|
||||||
|
hideMenuItems: function(e) {
|
||||||
i("hideMenuItems", {
|
i("hideMenuItems", {
|
||||||
menuList: e.menuList
|
menuList: e.menuList
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
showMenuItems: function (e) {
|
e)
|
||||||
|
},
|
||||||
|
showMenuItems: function(e) {
|
||||||
i("showMenuItems", {
|
i("showMenuItems", {
|
||||||
menuList: e.menuList
|
menuList: e.menuList
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
hideAllNonBaseMenuItem: function (e) {
|
e)
|
||||||
i("hideAllNonBaseMenuItem", {}, e)
|
|
||||||
},
|
},
|
||||||
showAllNonBaseMenuItem: function (e) {
|
hideAllNonBaseMenuItem: function(e) {
|
||||||
i("showAllNonBaseMenuItem", {}, e)
|
i("hideAllNonBaseMenuItem", {},
|
||||||
|
e)
|
||||||
},
|
},
|
||||||
scanQRCode: function (e) {
|
showAllNonBaseMenuItem: function(e) {
|
||||||
|
i("showAllNonBaseMenuItem", {},
|
||||||
|
e)
|
||||||
|
},
|
||||||
|
scanQRCode: function(e) {
|
||||||
i("scanQRCode", {
|
i("scanQRCode", {
|
||||||
needResult: (e = e || {}).needResult || 0,
|
needResult: (e = e || {}).needResult || 0,
|
||||||
scanType: e.scanType || ["qrCode", "barCode"]
|
scanType: e.scanType || ["qrCode", "barCode"]
|
||||||
}, (e._complete = function (e) {
|
},
|
||||||
|
(e._complete = function(e) {
|
||||||
if (P) {
|
if (P) {
|
||||||
var n = e.resultStr;
|
var n = e.resultStr;
|
||||||
if (n) {
|
if (n) {
|
||||||
@ -470,22 +576,27 @@
|
|||||||
e.resultStr = i && i.scan_code && i.scan_code.scan_result
|
e.resultStr = i && i.scan_code && i.scan_code.scan_result
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, e))
|
|
||||||
},
|
},
|
||||||
openAddress: function (e) {
|
e))
|
||||||
i(h.openAddress, {}, (e._complete = function (e) {
|
},
|
||||||
|
openAddress: function(e) {
|
||||||
|
i(h.openAddress, {},
|
||||||
|
(e._complete = function(e) {
|
||||||
e = a(e)
|
e = a(e)
|
||||||
}, e))
|
|
||||||
},
|
},
|
||||||
openProductSpecificView: function (e) {
|
e))
|
||||||
|
},
|
||||||
|
openProductSpecificView: function(e) {
|
||||||
i(h.openProductSpecificView, {
|
i(h.openProductSpecificView, {
|
||||||
pid: e.productId,
|
pid: e.productId,
|
||||||
view_type: e.viewType || 0,
|
view_type: e.viewType || 0,
|
||||||
ext_info: e.extInfo
|
ext_info: e.extInfo
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
addCard: function (e) {
|
e)
|
||||||
for (var n = e.cardList, t = [], o = 0, r = n.length; o < r; ++o) {
|
},
|
||||||
|
addCard: function(e) {
|
||||||
|
for (var n = e.cardList,
|
||||||
|
t = [], o = 0, r = n.length; o < r; ++o) {
|
||||||
var a = n[o],
|
var a = n[o],
|
||||||
c = {
|
c = {
|
||||||
card_id: a.cardId,
|
card_id: a.cardId,
|
||||||
@ -495,18 +606,27 @@
|
|||||||
}
|
}
|
||||||
i(h.addCard, {
|
i(h.addCard, {
|
||||||
card_list: t
|
card_list: t
|
||||||
}, (e._complete = function (e) {
|
},
|
||||||
|
(e._complete = function(e) {
|
||||||
var n = e.card_list;
|
var n = e.card_list;
|
||||||
if (n) {
|
if (n) {
|
||||||
for (var i = 0, t = (n = JSON.parse(n)).length; i < t; ++i) {
|
for (var i = 0,
|
||||||
|
t = (n = JSON.parse(n)).length; i < t; ++i) {
|
||||||
var o = n[i];
|
var o = n[i];
|
||||||
o.cardId = o.card_id, o.cardExt = o.card_ext, o.isSuccess = !!o.is_succ, delete o.card_id, delete o.card_ext, delete o.is_succ
|
o.cardId = o.card_id,
|
||||||
|
o.cardExt = o.card_ext,
|
||||||
|
o.isSuccess = !!o.is_succ,
|
||||||
|
delete o.card_id,
|
||||||
|
delete o.card_ext,
|
||||||
|
delete o.is_succ
|
||||||
}
|
}
|
||||||
e.cardList = n, delete e.card_list
|
e.cardList = n,
|
||||||
|
delete e.card_list
|
||||||
}
|
}
|
||||||
}, e))
|
|
||||||
},
|
},
|
||||||
chooseCard: function (e) {
|
e))
|
||||||
|
},
|
||||||
|
chooseCard: function(e) {
|
||||||
i("chooseCard", {
|
i("chooseCard", {
|
||||||
app_id: C.appId,
|
app_id: C.appId,
|
||||||
location_id: e.shopId || "",
|
location_id: e.shopId || "",
|
||||||
@ -516,12 +636,16 @@
|
|||||||
card_sign: e.cardSign,
|
card_sign: e.cardSign,
|
||||||
time_stamp: e.timestamp + "",
|
time_stamp: e.timestamp + "",
|
||||||
nonce_str: e.nonceStr
|
nonce_str: e.nonceStr
|
||||||
}, (e._complete = function (e) {
|
|
||||||
e.cardList = e.choose_card_info, delete e.choose_card_info
|
|
||||||
}, e))
|
|
||||||
},
|
},
|
||||||
openCard: function (e) {
|
(e._complete = function(e) {
|
||||||
for (var n = e.cardList, t = [], o = 0, r = n.length; o < r; ++o) {
|
e.cardList = e.choose_card_info,
|
||||||
|
delete e.choose_card_info
|
||||||
|
},
|
||||||
|
e))
|
||||||
|
},
|
||||||
|
openCard: function(e) {
|
||||||
|
for (var n = e.cardList,
|
||||||
|
t = [], o = 0, r = n.length; o < r; ++o) {
|
||||||
var a = n[o],
|
var a = n[o],
|
||||||
c = {
|
c = {
|
||||||
card_id: a.cardId,
|
card_id: a.cardId,
|
||||||
@ -531,105 +655,118 @@
|
|||||||
}
|
}
|
||||||
i(h.openCard, {
|
i(h.openCard, {
|
||||||
card_list: t
|
card_list: t
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
consumeAndShareCard: function (e) {
|
e)
|
||||||
|
},
|
||||||
|
consumeAndShareCard: function(e) {
|
||||||
i(h.consumeAndShareCard, {
|
i(h.consumeAndShareCard, {
|
||||||
consumedCardId: e.cardId,
|
consumedCardId: e.cardId,
|
||||||
consumedCode: e.code
|
consumedCode: e.code
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
chooseWXPay: function (e) {
|
e)
|
||||||
|
},
|
||||||
|
chooseWXPay: function(e) {
|
||||||
i(h.chooseWXPay, r(e), e)
|
i(h.chooseWXPay, r(e), e)
|
||||||
},
|
},
|
||||||
openEnterpriseRedPacket: function (e) {
|
openEnterpriseRedPacket: function(e) {
|
||||||
i(h.openEnterpriseRedPacket, r(e), e)
|
i(h.openEnterpriseRedPacket, r(e), e)
|
||||||
},
|
},
|
||||||
startSearchBeacons: function (e) {
|
startSearchBeacons: function(e) {
|
||||||
i(h.startSearchBeacons, {
|
i(h.startSearchBeacons, {
|
||||||
ticket: e.ticket
|
ticket: e.ticket
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
stopSearchBeacons: function (e) {
|
e)
|
||||||
i(h.stopSearchBeacons, {}, e)
|
|
||||||
},
|
},
|
||||||
onSearchBeacons: function (e) {
|
stopSearchBeacons: function(e) {
|
||||||
|
i(h.stopSearchBeacons, {},
|
||||||
|
e)
|
||||||
|
},
|
||||||
|
onSearchBeacons: function(e) {
|
||||||
t(h.onSearchBeacons, e)
|
t(h.onSearchBeacons, e)
|
||||||
},
|
},
|
||||||
openEnterpriseChat: function (e) {
|
openEnterpriseChat: function(e) {
|
||||||
i("openEnterpriseChat", {
|
i("openEnterpriseChat", {
|
||||||
useridlist: e.userIds,
|
useridlist: e.userIds,
|
||||||
chatname: e.groupName
|
chatname: e.groupName
|
||||||
}, e)
|
|
||||||
},
|
},
|
||||||
launchMiniProgram: function (e) {
|
e)
|
||||||
|
},
|
||||||
|
launchMiniProgram: function(e) {
|
||||||
i("launchMiniProgram", {
|
i("launchMiniProgram", {
|
||||||
targetAppId: e.targetAppId,
|
targetAppId: e.targetAppId,
|
||||||
path: g(e.path),
|
path: g(e.path),
|
||||||
envVersion: e.envVersion
|
envVersion: e.envVersion
|
||||||
}, e)
|
},
|
||||||
|
e)
|
||||||
},
|
},
|
||||||
miniProgram: {
|
miniProgram: {
|
||||||
navigateBack: function (e) {
|
navigateBack: function(e) {
|
||||||
e = e || {}, f(function () {
|
e = e || {},
|
||||||
|
f(function() {
|
||||||
i("invokeMiniProgramAPI", {
|
i("invokeMiniProgramAPI", {
|
||||||
name: "navigateBack",
|
name: "navigateBack",
|
||||||
arg: {
|
arg: {
|
||||||
delta: e.delta || 1
|
delta: e.delta || 1
|
||||||
}
|
}
|
||||||
}, e)
|
},
|
||||||
|
e)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
navigateTo: function (e) {
|
navigateTo: function(e) {
|
||||||
f(function () {
|
f(function() {
|
||||||
i("invokeMiniProgramAPI", {
|
i("invokeMiniProgramAPI", {
|
||||||
name: "navigateTo",
|
name: "navigateTo",
|
||||||
arg: {
|
arg: {
|
||||||
url: e.url
|
url: e.url
|
||||||
}
|
}
|
||||||
}, e)
|
},
|
||||||
|
e)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
redirectTo: function (e) {
|
redirectTo: function(e) {
|
||||||
f(function () {
|
f(function() {
|
||||||
i("invokeMiniProgramAPI", {
|
i("invokeMiniProgramAPI", {
|
||||||
name: "redirectTo",
|
name: "redirectTo",
|
||||||
arg: {
|
arg: {
|
||||||
url: e.url
|
url: e.url
|
||||||
}
|
}
|
||||||
}, e)
|
},
|
||||||
|
e)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
switchTab: function (e) {
|
switchTab: function(e) {
|
||||||
f(function () {
|
f(function() {
|
||||||
i("invokeMiniProgramAPI", {
|
i("invokeMiniProgramAPI", {
|
||||||
name: "switchTab",
|
name: "switchTab",
|
||||||
arg: {
|
arg: {
|
||||||
url: e.url
|
url: e.url
|
||||||
}
|
}
|
||||||
}, e)
|
},
|
||||||
|
e)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
reLaunch: function (e) {
|
reLaunch: function(e) {
|
||||||
f(function () {
|
f(function() {
|
||||||
i("invokeMiniProgramAPI", {
|
i("invokeMiniProgramAPI", {
|
||||||
name: "reLaunch",
|
name: "reLaunch",
|
||||||
arg: {
|
arg: {
|
||||||
url: e.url
|
url: e.url
|
||||||
}
|
}
|
||||||
}, e)
|
},
|
||||||
|
e)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
postMessage: function (e) {
|
postMessage: function(e) {
|
||||||
f(function () {
|
f(function() {
|
||||||
i("invokeMiniProgramAPI", {
|
i("invokeMiniProgramAPI", {
|
||||||
name: "postMessage",
|
name: "postMessage",
|
||||||
arg: e.data || {}
|
arg: e.data || {}
|
||||||
}, e)
|
},
|
||||||
|
e)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getEnv: function (n) {
|
getEnv: function(n) {
|
||||||
f(function () {
|
f(function() {
|
||||||
n({
|
n({
|
||||||
miniprogram: "miniprogram" === e.__wxjs_environment
|
miniprogram: "miniprogram" === e.__wxjs_environment
|
||||||
})
|
})
|
||||||
@ -639,26 +776,32 @@
|
|||||||
},
|
},
|
||||||
b = 1,
|
b = 1,
|
||||||
R = {};
|
R = {};
|
||||||
return I.addEventListener("error", function (e) {
|
return S.addEventListener("error",
|
||||||
|
function(e) {
|
||||||
if (!M) {
|
if (!M) {
|
||||||
var n = e.target,
|
var n = e.target,
|
||||||
i = n.tagName,
|
i = n.tagName,
|
||||||
t = n.src;
|
t = n.src;
|
||||||
if (("IMG" == i || "VIDEO" == i || "AUDIO" == i || "SOURCE" == i) && -1 != t.indexOf("wxlocalresource://")) {
|
if (("IMG" == i || "VIDEO" == i || "AUDIO" == i || "SOURCE" == i) && -1 != t.indexOf("wxlocalresource://")) {
|
||||||
e.preventDefault(), e.stopPropagation();
|
e.preventDefault(),
|
||||||
|
e.stopPropagation();
|
||||||
var o = n["wx-id"];
|
var o = n["wx-id"];
|
||||||
if (o || (o = b++, n["wx-id"] = o), R[o]) return;
|
if (o || (o = b++, n["wx-id"] = o), R[o]) return;
|
||||||
R[o] = !0, N.ready(function () {
|
R[o] = !0,
|
||||||
N.getLocalImgData({
|
wx.ready(function() {
|
||||||
|
wx.getLocalImgData({
|
||||||
localId: t,
|
localId: t,
|
||||||
success: function (e) {
|
success: function(e) {
|
||||||
n.src = e.localData
|
n.src = e.localData
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, !0), I.addEventListener("load", function (e) {
|
},
|
||||||
|
!0),
|
||||||
|
S.addEventListener("load",
|
||||||
|
function(e) {
|
||||||
if (!M) {
|
if (!M) {
|
||||||
var n = e.target,
|
var n = e.target,
|
||||||
i = n.tagName;
|
i = n.tagName;
|
||||||
@ -668,6 +811,9 @@
|
|||||||
t && (R[t] = !1)
|
t && (R[t] = !1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, !0), n && (e.wx = e.jWeixin = N), N
|
},
|
||||||
|
!0),
|
||||||
|
n && (e.wx = e.jWeixin = N),
|
||||||
|
N
|
||||||
}
|
}
|
||||||
});
|
});
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user