816 lines
31 KiB
JavaScript
816 lines
31 KiB
JavaScript
require('./hook'),require("@babel/runtime/helpers/Arrayincludes"), require("./common"), require("./vendors"), require("./taro"), require("./runtime"), (wx.webpackJsonp = wx.webpackJsonp || []).push([
|
|
[3524], {
|
|
834: function (e) {
|
|
e.exports = void(Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", {
|
|
value: function (e, t) {
|
|
if (null == this) throw new TypeError('"this" is null or not defined');
|
|
var n = Object(this),
|
|
a = n.length >>> 0;
|
|
if (0 === a) return !1;
|
|
for (var i = 0 | t, o = Math.max(i >= 0 ? i : a - Math.abs(i), 0); o < a;) {
|
|
if (n[o] === e) return !0;
|
|
o++
|
|
}
|
|
return !1
|
|
}
|
|
}))
|
|
},
|
|
929: function (e, t, n) {
|
|
var a = n(3919).window,
|
|
i = n(3919).document;
|
|
! function () {
|
|
if (void 0 !== a && a.vConsole) {
|
|
delete a.vConsole;
|
|
var e = i.getElementById("vConsole") || i.getElementById("vconsole");
|
|
e && e.remove();
|
|
try {
|
|
Object.defineProperty(a, "vConsole", {
|
|
get: function () {},
|
|
set: function () {},
|
|
configurable: !0
|
|
})
|
|
} catch (e) {
|
|
try {
|
|
delete a.vConsole, Object.defineProperty(a, "vConsole", {
|
|
get: function () {},
|
|
set: function () {},
|
|
configurable: !0
|
|
})
|
|
} catch (e) {}
|
|
}
|
|
}
|
|
}()
|
|
},
|
|
2641: function (e, t, n) {
|
|
n.g.Object = Object, n.g.Array = Array, n.g.DataView = DataView, n.g.Date = Date, n.g.Error = Error, n.g.Float32Array = Float32Array, n.g.Float64Array = Float64Array, n.g.Function = Function, n.g.Int8Array = Int8Array, n.g.Int16Array = Int16Array, n.g.Int32Array = Int32Array, n.g.Map = Map, n.g.Math = Math, n.g.Promise = Promise, n.g.RegExp = RegExp, n.g.Set = Set, n.g.String = String, n.g.Symbol = Symbol, n.g.TypeError = TypeError, n.g.Uint8Array = Uint8Array, n.g.Uint8ClampedArray = Uint8ClampedArray, n.g.Uint16Array = Uint16Array, n.g.Uint32Array = Uint32Array, n.g.WeakMap = WeakMap, n.g.clearTimeout = clearTimeout, n.g.isFinite = isFinite, n.g.parseInt = parseInt, n.g.setTimeout = setTimeout
|
|
},
|
|
3985: function (e, t, n) {
|
|
n(1191);
|
|
var a = n(5763),
|
|
i = n(3050);
|
|
|
|
function o(e) {
|
|
return function (t, n) {
|
|
if (t.toLowerCase() in e) {
|
|
var i = e[t];
|
|
(0, a.Kg)(i) ? t = i: (t = i[0], n = i[1][n] || n)
|
|
}
|
|
return [t, n]
|
|
}
|
|
}
|
|
var r = new Set(["i", "abbr", "select", "acronym", "small", "bdi", "kbd", "strong", "big", "sub", "sup", "br", "mark", "meter", "template", "cite", "object", "time", "code", "output", "u", "data", "picture", "tt", "datalist", "var", "dfn", "del", "q", "em", "s", "embed", "samp", "b"]),
|
|
c = new Set(["body", "svg", "address", "fieldset", "li", "span", "article", "figcaption", "main", "aside", "figure", "nav", "blockquote", "footer", "ol", "details", "p", "dialog", "h1", "h2", "h3", "h4", "h5", "h6", "pre", "dd", "header", "section", "div", "hgroup", "table", "dl", "hr", "ul", "dt", "view-block"]),
|
|
s = new Map([
|
|
["slot", "slot"],
|
|
["form", "form"],
|
|
["iframe", "web-view"],
|
|
["img", "image"],
|
|
["audio", "audio"],
|
|
["video", "video"],
|
|
["canvas", "canvas"],
|
|
["a", {
|
|
mapName: function (e) {
|
|
return !e.href || /^javascript/.test(e.href) ? "view" : "navigator"
|
|
},
|
|
mapNameCondition: ["href"],
|
|
mapAttr: o({
|
|
href: "url",
|
|
target: ["openType", {
|
|
_blank: "navigate",
|
|
_self: "redirect"
|
|
}]
|
|
})
|
|
}],
|
|
["input", {
|
|
mapName: function (e) {
|
|
return "checkbox" === e.type ? "checkbox" : "radio" === e.type ? "radio" : "input"
|
|
},
|
|
mapNameCondition: ["type"],
|
|
mapAttr: function (e, t, n) {
|
|
var a = e.toLowerCase();
|
|
return "autofocus" === a ? e = "focus" : "readonly" === a ? (!0 === n.disabled && (t = !0), e = "disabled") : "type" === a && ("password" === t ? (e = "password", t = !0) : "tel" === t && (t = "number")), [e, t]
|
|
}
|
|
}],
|
|
["label", {
|
|
mapName: "label",
|
|
mapAttr: o({
|
|
htmlfor: "for"
|
|
})
|
|
}],
|
|
["textarea", {
|
|
mapName: "textarea",
|
|
mapAttr: o({
|
|
autofocus: "focus",
|
|
readonly: "disabled"
|
|
})
|
|
}],
|
|
["progress", {
|
|
mapName: "progress",
|
|
mapAttr: function (e, t, n) {
|
|
if ("value" === e) {
|
|
var a = n.max || 1;
|
|
e = "percent", t = Math.round(t / a * 100)
|
|
}
|
|
return [e, t]
|
|
}
|
|
}],
|
|
["button", {
|
|
mapName: "button",
|
|
mapAttr: function (e, t) {
|
|
return "type" !== e || "submit" !== t && "reset" !== t || (e = "formType"), [e, t]
|
|
}
|
|
}]
|
|
]);
|
|
|
|
function u(e) {
|
|
return !!(r.has(e) || c.has(e) || s.has(e))
|
|
}
|
|
|
|
function d(e, t) {
|
|
if (r.has(e)) return "text";
|
|
if (s.has(e)) {
|
|
var n = s.get(e);
|
|
if ((0, a.Kg)(n)) return n;
|
|
var i = n.mapName;
|
|
return (0, a.Tn)(i) ? i(t) : i
|
|
}
|
|
return "view"
|
|
}
|
|
|
|
function l(e) {
|
|
return e.charAt(0).toLowerCase() + e.slice(1)
|
|
}
|
|
|
|
function p(e) {
|
|
var t = s.get(e);
|
|
if (!(0, a.Kg)(t)) return null == t ? void 0 : t.mapAttr
|
|
}
|
|
|
|
function f(e, t, n) {
|
|
var i = s.get(e);
|
|
if (i && !(0, a.Kg)(i)) {
|
|
var o = i.mapName,
|
|
r = i.mapNameCondition;
|
|
if (r) return r.indexOf(t) > -1 && !(0, a.Kg)(o) ? o(n) : void 0
|
|
}
|
|
}
|
|
|
|
function h(e, t, n) {
|
|
var a = f(e, t, n.props);
|
|
a && n.enqueueUpdate({
|
|
path: n._path + ".nn",
|
|
value: a
|
|
})
|
|
}
|
|
|
|
function g(e, t) {
|
|
void 0 === t && (t = "");
|
|
var n = t.split(" "),
|
|
a = function () {
|
|
n.includes("tph") || n.push("tph")
|
|
},
|
|
i = "h5-" + e; - 1 === n.indexOf(i) && (n.push(i), a());
|
|
return void 0 !== ["bui-modal"].find((function (e) {
|
|
return -1 !== n.indexOf(e)
|
|
})) && a(), n.join(" ")
|
|
}
|
|
|
|
function m(e, t) {
|
|
void 0 === t && (t = "");
|
|
var n = t,
|
|
a = e.width,
|
|
i = e.height;
|
|
return a && (n = "width: " + a + ";" + n), i && (n = "height: " + i + ";" + n), n
|
|
}
|
|
|
|
function v(e, t, n) {
|
|
Object.defineProperty(e, t, {
|
|
enumerable: !0,
|
|
configurable: !0,
|
|
get: function () {
|
|
return e[n]
|
|
},
|
|
set: function (t) {
|
|
e[n] = t
|
|
}
|
|
})
|
|
}
|
|
var y = {
|
|
modifyHydrateData: function (e) {
|
|
var t, n = e.nn;
|
|
if (u(n)) {
|
|
e.nn = d(n, e);
|
|
var a = p(n);
|
|
for (var i in e) {
|
|
var o = e[i];
|
|
if (-1 !== i.indexOf("miniapp")) delete e[i], e[l(i.replace("miniapp", ""))] = o;
|
|
if (a) {
|
|
var r = a(i, o, e),
|
|
c = r[0],
|
|
s = r[1];
|
|
i !== c ? (delete e[i], e[c] = s) : o !== s && (e[i] = s)
|
|
}
|
|
}
|
|
"br" === n && (e.cn = [(t = {}, t.nn = "#text", t.v = "\n", t)]), e.cl = g(n, e.cl), e.st = m(e, e.st)
|
|
} else {
|
|
var f = e.cl && "string" == typeof e.cl ? e.cl.split(" ") : [];
|
|
["bui-modal"].some((function (e) {
|
|
return f.some((function (t) {
|
|
return t === e
|
|
}))
|
|
})) && (e.cl = g(n, e.cl))
|
|
}
|
|
},
|
|
modifySetAttrPayload: function (e, t, n) {
|
|
var a = e.nodeName,
|
|
i = e._path,
|
|
o = e.props;
|
|
if (u(a)) {
|
|
h(a, t, e);
|
|
var r = p(a);
|
|
if (r) {
|
|
var c = r(t, n.value, o),
|
|
s = c[0],
|
|
d = c[1];
|
|
n.path = i + "." + s, n.value = d
|
|
}
|
|
"cl" === t ? n.value = g(a, n.value) : "st" !== t && "width" !== t && "height" !== t || (n.path = i + ".st", n.value = m(o, e.style.cssText)), /miniapp-/.test(t) && (n.path = i + "." + t.replace("miniapp-", ""))
|
|
}
|
|
},
|
|
modifyRmAttrPayload: function (e, t, n) {
|
|
var a = e.nodeName,
|
|
i = e._path,
|
|
o = e.props;
|
|
if (u(a)) {
|
|
h(a, t, e);
|
|
var r = p(a);
|
|
if (r) {
|
|
var c = r(t, n[t], o)[0];
|
|
n.path = i + "." + c
|
|
}
|
|
"cl" === t ? n.value = g(a, n.value) : "st" !== t && "width" !== t && "height" !== t || (n.path = i + ".st", n.value = m(o, e.style.cssText))
|
|
}
|
|
},
|
|
onAddEvent: function (e, t, n, a) {
|
|
u(a.nodeName) && ("click" === e ? v(a.__handlers, e, "tap") : "input" === a.nodeName && ("change" === e ? "checkbox" === a.props.type || "radio" === a.props.type ? v(a.__handlers, e, "tap") : v(a.__handlers, e, "input") : "keypress" === e && v(a.__handlers, e, "confirm")))
|
|
},
|
|
modifyTaroEvent: function (e, t) {
|
|
var n = t.nodeName,
|
|
a = t.props;
|
|
if ("input" === n && "tap" === e.type && ("checkbox" === a.type ? a.checked = !a.checked : "radio" !== a.type || a.checked || (a.checked = !0), e.mpEvent)) {
|
|
var i = e.mpEvent,
|
|
o = i.currentTarget,
|
|
r = i.target;
|
|
o.checked = a.checked, r.id === o.id && (r.checked = a.checked)
|
|
}
|
|
}
|
|
};
|
|
(0, i.ZG)(y), n(1500);
|
|
var b = n(4754),
|
|
x = n(6262),
|
|
A = n(2573),
|
|
w = n.n(A),
|
|
k = n(469),
|
|
P = n(5652),
|
|
_ = n(2555),
|
|
C = n(29),
|
|
S = n(5517),
|
|
O = n(6703),
|
|
T = n(1925),
|
|
Z = n(758),
|
|
I = n.t(Z, 2),
|
|
J = n(4576),
|
|
N = n(4107),
|
|
E = n(8641),
|
|
V = n(9887),
|
|
R = n(858),
|
|
M = n(3816),
|
|
L = n(7805),
|
|
U = n(7867),
|
|
F = n(9365),
|
|
W = [{
|
|
path: "/subPackages/detail/item",
|
|
argsFromRouter: [
|
|
["itemId", ["id", "itemId"]]
|
|
],
|
|
otherArgs: {
|
|
lat: "",
|
|
lng: ""
|
|
},
|
|
prefetch: function (e) {
|
|
F.A.awsc, w().preload({
|
|
fetchShowDetail: (0, U.ne)(e),
|
|
itemId: e.itemId
|
|
})
|
|
}
|
|
}],
|
|
G = n(6005);
|
|
E.A.set("spmA", L.c), E.A.set("getCity", R.K), E.A.set("prefetchConfigs", W), E.A.set("getPosition", R.E), E.A.set("buiStorageSet", (function (e, t) {
|
|
e && t && w().setStorageSync(e, JSON.stringify(t))
|
|
})), E.A.set("buiStorageGet", (function (e) {
|
|
if (!e) return null;
|
|
var t;
|
|
try {
|
|
t = JSON.parse(w().getStorageSync(e))
|
|
} catch (e) {
|
|
t = null
|
|
}
|
|
return t
|
|
})), E.A.set("mtop", {
|
|
call: function (e) {
|
|
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
|
|
n = function (e) {
|
|
var t = e;
|
|
return t.downgradeOptions && (t.downgradeConfig = t.downgradeOptions || {}, delete t.downgradeOptions), t
|
|
};
|
|
return new Promise((function (a, i) {
|
|
new V.p((0, N.A)((0, N.A)({}, e.requestOptions), n(t))).create({
|
|
valueType: "string"
|
|
}).then((function (e) {
|
|
var t = (0, J.A)(e, 2),
|
|
n = t[0],
|
|
o = t[1];
|
|
n && i(n), a({
|
|
data: o
|
|
})
|
|
}))
|
|
}))
|
|
}
|
|
}), E.A.set("login", {
|
|
login: function (e, t, n) {
|
|
M.A.login().then((function (e, a) {
|
|
e ? null == t || t(a) : null == n || n()
|
|
}))
|
|
},
|
|
isLogin: function () {
|
|
return M.A.isLogin()
|
|
}
|
|
}), E.A.set("autoExpose", G.E0), E.A.set("autoClick", G.MQ);
|
|
var q = n(6432),
|
|
B = n(4752),
|
|
D = n(2531),
|
|
j = n(8477),
|
|
Q = n(7422);
|
|
! function () {
|
|
function e(e, t, n) {
|
|
var a = e;
|
|
if (a[t]) {
|
|
var i = a[t];
|
|
a[t] = function () {
|
|
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
|
|
i.call(this, e), n.call(this, e, t)
|
|
}
|
|
} else a[t] = function (e) {
|
|
n.call(this, e, t)
|
|
}
|
|
}
|
|
var t = null;
|
|
|
|
function n(e, n) {
|
|
var a;
|
|
if (!t) {
|
|
var i = (0, q.Jt)("slogObserver");
|
|
i && (t = i)
|
|
}
|
|
null === (a = t) || void 0 === a || null === (a = a[e]) || void 0 === a || a.call(this, n)
|
|
}
|
|
|
|
function a(e) {
|
|
var t, a = (0, j.t3)(this);
|
|
var route = this.route == 'pages/custom/index' ? 'pages/mine/index' : this.route;
|
|
var i = (0, N.A)({
|
|
_pageRoute: route
|
|
}, a);
|
|
if ((Q.A.sendPageEvent("", (null == this || null === (t = this.config) || void 0 === t ? void 0 : t.navigationBarTitleText) || this.route, i, {
|
|
useTaroSendPv: !0
|
|
}), (0, D.A)().hasOwnProperty(this.route)) && (0, D.A)()[this.route].manualSendPV) return void n.call(this, "onShow", e);
|
|
B.Ay.sendPV({}, i), n.call(this, "onShow", e)
|
|
}
|
|
|
|
function i(e) {
|
|
n.call(this, "onLoad", e)
|
|
}
|
|
|
|
function o(e) {
|
|
n.call(this, "onReady", e)
|
|
}
|
|
|
|
function r(e) {
|
|
n.call(this, "onUnload", e)
|
|
}
|
|
|
|
function c(e) {
|
|
n.call(this, "onHide", e)
|
|
}
|
|
|
|
function s() {}
|
|
|
|
function u() {}
|
|
|
|
function d() {}
|
|
|
|
function l() {}
|
|
|
|
function p() {}
|
|
|
|
function f() {}! function () {
|
|
var t = App,
|
|
n = Page,
|
|
h = Component;
|
|
App = function (n) {
|
|
e(n, "onLaunch", d), e(n, "onShow", l), e(n, "onHide", p), e(n, "onError", f), t(n)
|
|
}, Component = function (t) {
|
|
t.methods && (e(t.methods, "onShow", a), e(t.methods, "onReady", o), e(t.methods, "onLoad", i), e(t.methods, "onUnload", r), e(t.methods, "onHide", c)), h(t)
|
|
}, Page = function (t) {
|
|
e(t, "onLoad", i), e(t, "onReady", o), e(t, "onUnload", r), e(t, "onShow", a), e(t, "onHide", c), e(t, "onReachBottom", s), e(t, "onPullDownRefresh", u), n(t)
|
|
}
|
|
}()
|
|
}(), n(2641), n(834);
|
|
var H = n(7852),
|
|
X = n(334),
|
|
K = n(6516),
|
|
Y = n(4911),
|
|
z = n(2658),
|
|
$ = n(7963),
|
|
ee = (0, S.A)((function e(t) {
|
|
(0, C.A)(this, e), this.capacity = t, this.queue = [], this.hashMap = {}
|
|
}), [{
|
|
key: "updateIndex",
|
|
value: function (e) {
|
|
var t = this.queue.indexOf(e); - 1 !== t && this.queue.splice(t, 1), this.queue.push(e)
|
|
}
|
|
}, {
|
|
key: "get",
|
|
value: function (e) {
|
|
return this.hashMap.hasOwnProperty(e) ? (this.updateIndex(e), this.hashMap[e]) : -1
|
|
}
|
|
}, {
|
|
key: "put",
|
|
value: function (e, t) {
|
|
if (this.hashMap.hasOwnProperty(e)) this.hashMap[e] = t, this.updateIndex(e);
|
|
else if (this.queue.length < this.capacity) this.updateIndex(e), this.hashMap[e] = t;
|
|
else {
|
|
var n = this.queue.shift();
|
|
delete this.hashMap[n], this.updateIndex(e), this.hashMap[e] = t
|
|
}
|
|
}
|
|
}]),
|
|
te = n(3150),
|
|
ne = n(3338),
|
|
ae = n(9148),
|
|
ie = n(2267),
|
|
oe = n(715),
|
|
re = n.n(oe),
|
|
ce = n(4017),
|
|
se = n(3716),
|
|
ue = n(4921);
|
|
n(929), ie.A.isTT && ie.A.isDevTools && ie.A.updateToDouyin(), w().onAppShow((function (e) {
|
|
var t = e.path,
|
|
n = e.query,
|
|
a = void 0 === n ? {} : n,
|
|
i = a.url || a.q,
|
|
o = ["subPackages/sku/index", "pages/sku/index"],
|
|
r = decodeURIComponent(i);
|
|
(0, ae.tp)(r) && !t.includes("pages/home/index") && w().switchTab({
|
|
url: "/pages/home/index"
|
|
}), (~o.indexOf(t) || ~o.indexOf(i)) && ((t === o[1] || i === o[1]) && wx && wx.setStorageSync("intercept_sku", "true"), Y.A.navTo("pages/home/index"), Q.A.sendOtherEvent("/yanchu.black_market.intercept_jump_sku_directly", {
|
|
page: t,
|
|
error: "直接跳转小程序唤sku拦截"
|
|
})), (decodeURIComponent(i).indexOf("/h5-ultron-buy/index.html") > -1 || decodeURIComponent(i).indexOf("/confirmorder/index.html") > -1) && (Q.A.sendOtherEvent("/yanchu.black_market.intercept_jump_order_directly", {
|
|
page: i,
|
|
error: "直接跳转小程序唤确认订单页拦截"
|
|
}), Y.A.navTo("/pages/home/index", {})), (0, q.hZ)("scene", e.scene), F.A.updateLancherParams(e)
|
|
}));
|
|
var de = function (e) {
|
|
function t() {
|
|
return (0, C.A)(this, t), (0, O.A)(this, t, arguments)
|
|
}
|
|
return (0, T.A)(t, e), (0, S.A)(t, [{
|
|
key: "componentDidMount",
|
|
value: function () {
|
|
var e = (0, _.A)((0, P.A)().m((function e() {
|
|
var t, n, a, i, o;
|
|
return (0, P.A)().w((function (e) {
|
|
for (;;) switch (e.p = e.n) {
|
|
case 0:
|
|
if (Y.A.addPrefetchConfig({
|
|
prefetchList: W
|
|
}), this.miniappPerf(), t = !0, e.p = 1, !(i = "function" == typeof wx[(0, q.Jt)("decode")("Z2V0UmVuZGVyZXJVc2VyQWdlbnQ=")])) {
|
|
e.n = 3;
|
|
break
|
|
}
|
|
return e.n = 2, wx[(0, q.Jt)("decode")("Z2V0UmVuZGVyZXJVc2VyQWdlbnQ=")]();
|
|
case 2:
|
|
i = e.v;
|
|
case 3:
|
|
if (a = i) {
|
|
e.n = 4;
|
|
break
|
|
}
|
|
a = "";
|
|
case 4:
|
|
n = a, (![(0, q.Jt)("decode")("aW9z"), (0, q.Jt)("decode")("YW5kcm9pZA=="), (0, q.Jt)("decode")("b2hvcw==")].includes(wx[(0, q.Jt)("decode")("Z2V0RGV2aWNlSW5mbw==")]()[(0, q.Jt)("decode")("cGxhdGZvcm0=")]) || (0, q.Jt)((0, q.Jt)("decode")("ZW52VmVyc2lvbg==")) === (0, q.Jt)("decode")("cmVsZWFzZQ==") && !0 === wx[(0, q.Jt)("decode")("Z2V0QXBwQmFzZUluZm8=")]()[(0, q.Jt)("decode")("ZW5hYmxlRGVidWc=")] || n.indexOf((0, q.Jt)("decode")("d2VjaGF0ZGV2dG9vbHM=")) > -1 || n.indexOf((0, q.Jt)("decode")("TWluaVByb2dyYW1FbnYvTWFj")) > -1 || n.indexOf((0, q.Jt)("decode")("TWluaVByb2dyYW1FbnYvV2luZG93cw==")) > -1) && (wx[(0, q.Jt)("decode")("c2hvd01vZGFs")]({
|
|
title: (0, q.Jt)("decode")("5rip6aao5o+Q56S6"),
|
|
content: (0, q.Jt)("decode")("6K+35Zyo5omL5py65LiK5L2/55So5ZOm"),
|
|
showCancel: !1,
|
|
success: function () {
|
|
return wx[(0, q.Jt)("decode")("ZXhpdE1pbmlQcm9ncmFt")]()
|
|
},
|
|
complete: function () {
|
|
return wx[(0, q.Jt)("decode")("ZXhpdE1pbmlQcm9ncmFt")]()
|
|
}
|
|
}), t = !1), e.n = 6;
|
|
break;
|
|
case 5:
|
|
e.p = 5, o = e.v, "function" == typeof armsReport && armsReport({
|
|
code: 1e3,
|
|
msg: (0, q.Jt)("decode")("aW50ZXJjZXB0LXBj"),
|
|
m1: 1,
|
|
c1: JSON.stringify(o.message)
|
|
});
|
|
case 6:
|
|
if (!1 !== t) {
|
|
e.n = 7;
|
|
break
|
|
}
|
|
return e.a(2, !1);
|
|
case 7:
|
|
this.initGlobalData(), this.initEvent(), (0, j.wW)(), wx.onUnhandledRejection((function (e) {
|
|
var t = e.reason;
|
|
t && (0, te.ZV)(t)
|
|
}));
|
|
case 8:
|
|
return e.a(2)
|
|
}
|
|
}), e, this, [
|
|
[1, 5]
|
|
])
|
|
})));
|
|
return function () {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}()
|
|
}, {
|
|
key: "onLaunch",
|
|
value: function () {
|
|
var e = w().getLaunchOptionsSync();
|
|
F.A.init(e), (0, q.hZ)("launchQuery", e), X.A.checkAppUpdate(), re().mtop.config.$baxiaMiniprogram.init({}), (0, ue.A)(se.A.requireSubPackage.bind(se.A))
|
|
}
|
|
}, {
|
|
key: "onError",
|
|
value: function (e) {
|
|
e && (0, te.ZV)(e)
|
|
}
|
|
}, {
|
|
key: "onPageNotFound",
|
|
value: function (e) {
|
|
var t = (e || {}).path,
|
|
n = void 0 === t ? "" : t;
|
|
if ((0, te.Wx)("onPageNotFound: ".concat(n)), /\/perform\/index/.test(n)) {
|
|
var a = getCurrentPages(),
|
|
i = a.length ? a[a.length - 1].options : {};
|
|
Q.A.sendGoldLog("EXP", "/dianying.fe.wx_perform", i), K.A.show("该项目已失效~"), setTimeout((function () {
|
|
ce.A.switchTab({
|
|
url: "/pages/home/index"
|
|
})
|
|
}), 2e3)
|
|
} else ce.A.switchTab({
|
|
url: "/pages/home/index"
|
|
})
|
|
}
|
|
}, {
|
|
key: "setCdnGlobalConfig",
|
|
value: function () {
|
|
new Promise((function (e) {
|
|
new Promise((function (e, t) {
|
|
w().getBackgroundFetchData({
|
|
fetchType: "pre",
|
|
success: function (n) {
|
|
return (0, _.A)((0, P.A)().m((function a() {
|
|
var i;
|
|
return (0, P.A)().w((function (a) {
|
|
for (;;) switch (a.p = a.n) {
|
|
case 0:
|
|
if (null == n || !n.fetchedData) {
|
|
a.n = 3;
|
|
break
|
|
}
|
|
return a.p = 1, i = JSON.parse(null == n ? void 0 : n.fetchedData), a.a(2, e(i));
|
|
case 2:
|
|
return a.p = 2, a.v, a.a(2, t());
|
|
case 3:
|
|
return a.a(2, t())
|
|
}
|
|
}), a, null, [
|
|
[1, 2]
|
|
])
|
|
})))()
|
|
},
|
|
fail: function (e) {
|
|
return (0, _.A)((0, P.A)().m((function e() {
|
|
return (0, P.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
return e.a(2, t())
|
|
}
|
|
}), e)
|
|
})))()
|
|
}
|
|
})
|
|
})).then((function (t) {
|
|
return e(t)
|
|
})).catch((0, _.A)((0, P.A)().m((function t() {
|
|
var n;
|
|
return (0, P.A)().w((function (t) {
|
|
for (;;) switch (t.n) {
|
|
case 0:
|
|
return t.n = 1, (0, ne.t)();
|
|
case 1:
|
|
if (!(n = t.v)) {
|
|
t.n = 2;
|
|
break
|
|
}
|
|
return t.a(2, e(n));
|
|
case 2:
|
|
return t.a(2, e(null))
|
|
}
|
|
}), t)
|
|
}))))
|
|
})).then((function (e) {
|
|
e && (((null == e ? void 0 : e.configList) || []).forEach((function (e) {
|
|
var t = e || {},
|
|
n = t.name,
|
|
a = t.value,
|
|
i = t.enablePolicy;
|
|
(0, q.hZ)("oss".concat(n), a || ""), i && (0, q.hZ)("oss".concat(n, "Policy"), i)
|
|
})), (0, q.hZ)("cdnGlobalConfig", e))
|
|
}))
|
|
}
|
|
}, {
|
|
key: "initGlobalData",
|
|
value: function () {
|
|
var e = (0, H.LI)(),
|
|
t = e.menuBarHeight,
|
|
n = e.statusBarHeight,
|
|
a = (0, H.DA)();
|
|
(0, q.hZ)("statusBarHeight", n), (0, q.hZ)("menubarHeight", t), (0, q.hZ)("safeAreaInsetBottom", a), this.setCdnGlobalConfig()
|
|
}
|
|
}, {
|
|
key: "miniappPerf",
|
|
value: function () {
|
|
var e = {
|
|
firstPaint: "fp",
|
|
firstContentfulPaint: "fcp",
|
|
largestContentfulPaint: "lcp"
|
|
};
|
|
try {
|
|
var t = new ee(2),
|
|
n = (0, $.A)();
|
|
w().getPerformance().createObserver((function (a) {
|
|
var i, o = a.getEntries(),
|
|
r = (0, k.A)(o);
|
|
try {
|
|
for (r.s(); !(i = r.n()).done;) {
|
|
var c = i.value,
|
|
s = c.pageId,
|
|
u = c.name,
|
|
d = c.startTime,
|
|
l = c.path,
|
|
p = c.duration;
|
|
"firstRender" === u && t.put(s, d), void 0 === p && -1 !== t.get(s) && (p = d - t.get(s)), p > 0 && (n.sendStatusMap = {}, n.sendPerf("mini_".concat(e[u] || u), {
|
|
cost: p,
|
|
route: l
|
|
}))
|
|
}
|
|
} catch (e) {
|
|
r.e(e)
|
|
} finally {
|
|
r.f()
|
|
}
|
|
})).observe({
|
|
entryTypes: ["render", "script", "navigation", "loadPackage"]
|
|
})
|
|
} catch (e) {}
|
|
}
|
|
}, {
|
|
key: "initEvent",
|
|
value: function () {
|
|
ie.A.isWX && wx.onNeedPrivacyAuthorization && wx.onNeedPrivacyAuthorization((function (e, t) {
|
|
var n = getCurrentPages(),
|
|
a = null == n ? void 0 : n[n.length - 1],
|
|
i = null == a ? void 0 : a.options;
|
|
if ("pages/home/index" === (null == a ? void 0 : a.route)) H.iL.trigger(z.Ru.HOME_PRIVACY_POPUP);
|
|
else try {
|
|
Y.A.navTo("/subPackages/privacy-popup/index", {
|
|
redirectPath: encodeURIComponent(a ? "/".concat(a.route) : "/pages/home/index"),
|
|
redirectQuery: encodeURIComponent(JSON.stringify(i || {}))
|
|
}, {
|
|
redirect: !0
|
|
})
|
|
} catch (e) {}
|
|
}))
|
|
}
|
|
}, {
|
|
key: "render",
|
|
value: function () {
|
|
return this.props.children
|
|
}
|
|
}])
|
|
}(Z.Component);
|
|
w().options.html && (w().options.html.transformElement = function (e) {
|
|
var t = e;
|
|
return "image" === t.nodeName && (t.props.mode = "widthFix"), "text" === t.nodeName && (t.nodeName = "view", t.props.class = t.props.class + " h5-inline"), t
|
|
});
|
|
var le = de,
|
|
pe = n(4456),
|
|
fe = {
|
|
pages: ["pages/home/index", "pages/city/index", "pages/detail/item", "pages/mine/index", "pages/pay/index", "pages/sku/index", "pages/baxia/webview/index", "pages/want2see/index", "pages/category/index", "pages/webview/index", "pages/ticket-wallet/index", "pages/video/index", "pages/login/index", "pages/search/index", "pages/notification/index", "pages/ticket/confirm-regift/index", "pages/others/orders/index"],
|
|
workers: "workers",
|
|
subpackages: [{
|
|
root: "utils-packages",
|
|
pages: ["wasm/index"]
|
|
}, {
|
|
root: "subPackages",
|
|
name: "subPackages",
|
|
pages: ["detail/item", "sku/index", "category/index", "alicare-landing/index", "privacy-popup/index", "confirmJoinGroupbuying/index", "setting/index", "video/index", "notification/index", "ticket/confirm-regift/index", "order-pay/index"]
|
|
}],
|
|
window: {
|
|
navigationBarBackgroundColor: "#ffffff",
|
|
navigationBarTextStyle: "black",
|
|
borderStyle: "black",
|
|
backgroundColor: "#ffffff",
|
|
enablePullDownRefresh: !1
|
|
},
|
|
tabBar: {
|
|
color: "#111111",
|
|
selectedColor: "#ff2869",
|
|
backgroundColor: "#ffffff",
|
|
position: "bottom",
|
|
borderStyle: "black",
|
|
list: [{
|
|
pagePath: "pages/home/index",
|
|
selectedIconPath: "images/icon_home_selected.png",
|
|
iconPath: "images/icon_home_normal.png",
|
|
text: "首页"
|
|
}, {
|
|
pagePath: "pages/want2see/index",
|
|
selectedIconPath: "images/icon_want2c_selected.png",
|
|
iconPath: "images/icon_want2c_normal.png",
|
|
text: "想看"
|
|
}, {
|
|
pagePath: "pages/ticket-wallet/index",
|
|
selectedIconPath: "images/icon_ticket_wallet_selected.png",
|
|
iconPath: "images/icon_ticket_wallet_normal.png",
|
|
text: "票夹"
|
|
}, {
|
|
pagePath: "pages/mine/index",
|
|
selectedIconPath: "images/icon_mine_selected.png",
|
|
iconPath: "images/icon_mine_normal.png",
|
|
text: "我的"
|
|
}]
|
|
},
|
|
skeletonConfig: {
|
|
global: {
|
|
templateName: "skeleton"
|
|
}
|
|
},
|
|
navigateToMiniProgramAppIdList: ["wx5abcf700e248b745"],
|
|
permission: {
|
|
"scope.userLocation": {
|
|
desc: "用于提供所在城市的演出赛事信息,帮助你找到附近的演出赛事"
|
|
}
|
|
},
|
|
__usePrivacyCheck__: !0,
|
|
preloadRule: {
|
|
"pages/home/index": {
|
|
packages: ["subPackages"],
|
|
network: "all"
|
|
},
|
|
"pages/search/index": {
|
|
packages: ["utils-packages"],
|
|
network: "all"
|
|
}
|
|
}
|
|
};
|
|
b.mw.__taroAppConfig = fe, App((0, x.ND)(le, I, pe.default, fe)), (0, A.initPxTransform)({
|
|
designWidth: 375,
|
|
deviceRatio: {
|
|
375: 2,
|
|
640: 1.17,
|
|
750: 1,
|
|
828: .905
|
|
},
|
|
baseFontSize: 20,
|
|
unitPrecision: void 0,
|
|
targetUnit: void 0
|
|
})
|
|
}
|
|
},
|
|
function (e) {
|
|
e.O(0, [6907, 8096, 2076], (function () {
|
|
return t = 3985, e(e.s = t);
|
|
var t
|
|
})), e.O()
|
|
}
|
|
]);
|