4699 lines
191 KiB
JavaScript
4699 lines
191 KiB
JavaScript
require("../../@babel/runtime/helpers/Arrayincludes");
|
|
var e = require("../../@babel/runtime/helpers/toConsumableArray"),
|
|
t = require("../../@babel/runtime/helpers/createForOfIteratorHelper"),
|
|
n = Date.now(),
|
|
i = [];
|
|
try {
|
|
var o = wx.getStorageSync("STASH_ROOT_CN__HOME"),
|
|
a = wx.getEnterOptionsSync();
|
|
!(a && a.query && (a.query.url || a.query.q)) && o && "5.2.23" === o.version && (i = o.stashRootCNList || [], console.warn("=====使用序列化缓存数据,获取耗时=====", Date.now() - n, "当前版本号:", "5.2.23"))
|
|
} catch (e) {
|
|
console.warn("index.rootcn.js error", e)
|
|
}(wx.webpackJsonp = wx.webpackJsonp || []).push([
|
|
[1404], {
|
|
144: function (n, o, a) {
|
|
var l = a(4160),
|
|
r = a(8460),
|
|
c = a(9371),
|
|
s = a(4576),
|
|
u = a(3526),
|
|
d = a(2573),
|
|
p = a.n(d),
|
|
m = a(7422),
|
|
v = a(7389),
|
|
h = a(7852),
|
|
f = a(6981),
|
|
g = a(104),
|
|
y = a(872),
|
|
x = a(5215),
|
|
A = a(7698),
|
|
w = a(2614),
|
|
j = a(2201),
|
|
k = a(6005),
|
|
N = {
|
|
exp: [{
|
|
cssSelector: ".home-container >>> .log-ball-item",
|
|
trackInfo: ["item"],
|
|
indexOffset: 1
|
|
}, {
|
|
cssSelector: ".home-container >>> .log-banner-item",
|
|
trackInfo: ["item"],
|
|
indexOffset: 1
|
|
}, {
|
|
cssSelector: ".home-container >>> .log-slider-tab",
|
|
trackInfo: ["tab"],
|
|
indexOffset: 1
|
|
}, {
|
|
cssSelector: ".home-container >>> .log-slider-item",
|
|
trackInfo: ["item"],
|
|
indexOffset: 1
|
|
}, {
|
|
forceIndex: !0,
|
|
cssSelector: ".log-showcard-item",
|
|
trackInfo: ["item"],
|
|
indexOffset: 1
|
|
}, {
|
|
cssSelector: ".home-container >>> .vouchers-popup-bottom-btn",
|
|
spmC: "newpop",
|
|
spmD: "get_coupon",
|
|
logkey: "/yanchu.newpop_getcoupon.exp",
|
|
data: [
|
|
["dispatch_id", ["dispatchId"]]
|
|
]
|
|
}, {
|
|
cssSelector: ".home-container >>> .newcomer-ticket-close-icon",
|
|
spmC: "newpop",
|
|
spmD: "closed",
|
|
logkey: "/yanchu.newpop_closed.exp",
|
|
data: [
|
|
["dispatch_id", ["dispatchId"]]
|
|
]
|
|
}, {
|
|
cssSelector: ".ticket-detail-list >>> .newcomer-ticket-detail-btn",
|
|
spmC: "newpop",
|
|
spmD: "used_item_",
|
|
logkey: "/yanchu.newpop_useditem.exp",
|
|
data: [
|
|
["dispatch_id", ["dispatchId"]]
|
|
]
|
|
}, {
|
|
cssSelector: ".home-container >>> .tip-red-open-icon",
|
|
spmC: "newpop",
|
|
spmD: "lift",
|
|
logkey: "/yanchu.newpop_lift.exp",
|
|
data: [
|
|
["dispatch_id", ["dispatchId"]]
|
|
]
|
|
}, {
|
|
cssSelector: ".show-news-bottom-wrapper .more-btn",
|
|
spmC: "newpop",
|
|
spmD: "more_item",
|
|
logkey: "/yanchu.newpop_moreitem.exp"
|
|
}, {
|
|
cssSelector: ".show-news-container .want-see-btn",
|
|
spmC: "newpop",
|
|
spmD: "wanted_",
|
|
logkey: "/yanchu.newpop_wanted.exp",
|
|
data: ["biz_id"]
|
|
}, {
|
|
cssSelector: ".project-recommend-bottom-wrapper .project-more-btn",
|
|
spmC: "newpop",
|
|
spmD: "more_project",
|
|
logkey: "/yanchu.newpop_moreproject.exp"
|
|
}, {
|
|
cssSelector: ".project-list-wrapper .bui-dm-show-card",
|
|
spmC: "newpop",
|
|
spmD: "project_",
|
|
logkey: "/yanchu.newpop_project.exp",
|
|
data: ["item_id"]
|
|
}, {
|
|
cssSelector: ".project-qr-container",
|
|
spmC: "newpop",
|
|
spmD: "qrcode",
|
|
logkey: "/yanchu.newpop_qrcode.exp",
|
|
data: [
|
|
["dispatch_id", ["dispatchId"]]
|
|
]
|
|
}],
|
|
clk: [{
|
|
cssSelector: ".home-container >>> .log-ball-item",
|
|
trackInfo: ["item"],
|
|
indexOffset: 1
|
|
}, {
|
|
cssSelector: ".home-container >>> .log-banner-item",
|
|
trackInfo: ["item"],
|
|
indexOffset: 1
|
|
}, {
|
|
cssSelector: ".home-container >>> .log-slider-tab",
|
|
trackInfo: ["tab"],
|
|
indexOffset: 1
|
|
}, {
|
|
cssSelector: ".home-container >>> .log-slider-item",
|
|
trackInfo: ["item"],
|
|
indexOffset: 1
|
|
}, {
|
|
forceIndex: !0,
|
|
cssSelector: ".log-showcard-item",
|
|
trackInfo: ["item"],
|
|
indexOffset: 1
|
|
}, {
|
|
cssSelector: ".home-container >>> .vouchers-popup-bottom-btn",
|
|
spmC: "newpop",
|
|
spmD: "get_coupon",
|
|
logkey: "/yanchu.newpop_getcoupon.clk",
|
|
data: [
|
|
["dispatch_id", ["dispatchId"]]
|
|
]
|
|
}, {
|
|
cssSelector: ".home-container >>> .newcomer-ticket-close-icon",
|
|
spmC: "newpop",
|
|
spmD: "closed",
|
|
logkey: "/yanchu.newpop_closed.clk",
|
|
data: [
|
|
["dispatch_id", ["dispatchId"]]
|
|
]
|
|
}, {
|
|
cssSelector: ".ticket-detail-list >>> .newcomer-ticket-detail-btn",
|
|
spmC: "newpop",
|
|
spmD: "used_item_",
|
|
logkey: "/yanchu.newpop_useditem.clk",
|
|
data: [
|
|
["dispatch_id", ["dispatchId"]]
|
|
]
|
|
}, {
|
|
cssSelector: ".home-container >>> .tip-red-open-icon",
|
|
spmC: "newpop",
|
|
spmD: "lift",
|
|
logkey: "/yanchu.newpop_lift.clk",
|
|
data: [
|
|
["dispatch_id", ["dispatchId"]]
|
|
]
|
|
}, {
|
|
cssSelector: ".show-news-bottom-wrapper .more-btn",
|
|
spmC: "newpop",
|
|
spmD: "more_item",
|
|
logkey: "/yanchu.newpop_moreitem.clk"
|
|
}, {
|
|
cssSelector: ".show-news-container .want-see-btn",
|
|
spmC: "newpop",
|
|
spmD: "wanted_",
|
|
logkey: "/yanchu.newpop_wanted.clk",
|
|
data: ["biz_id"]
|
|
}, {
|
|
cssSelector: ".project-recommend-bottom-wrapper .project-more-btn",
|
|
spmC: "newpop",
|
|
spmD: "more_project",
|
|
logkey: "/yanchu.newpop_moreproject.clk"
|
|
}, {
|
|
cssSelector: ".project-list-wrapper .bui-dm-show-card",
|
|
spmC: "newpop",
|
|
spmD: "project_",
|
|
logkey: "/yanchu.newpop_project.clk",
|
|
data: ["item_id"]
|
|
}]
|
|
},
|
|
S = a(4269),
|
|
b = a(758),
|
|
C = a(462),
|
|
I = a.n(C),
|
|
D = a(6868),
|
|
_ = a(2760),
|
|
T = a(4911),
|
|
P = a(9933),
|
|
O = a(6070),
|
|
F = function (e) {
|
|
var t = e.dataList,
|
|
n = e.className,
|
|
i = (0, b.useState)(0),
|
|
o = (0, s.A)(i, 2),
|
|
a = o[0],
|
|
l = o[1],
|
|
r = 1 === t.length;
|
|
return (0, O.jsxs)(y.A, {
|
|
className: (0, u.A)("banner-wrapper", n),
|
|
children: [(0, O.jsx)(D.A, {
|
|
className: "banner-swiper",
|
|
indicatorDots: !1,
|
|
autoplay: !r,
|
|
circular: !r,
|
|
onChange: function (e) {
|
|
var t = e.detail.current;
|
|
l(t)
|
|
},
|
|
children: t.map((function (e, t) {
|
|
return (0, O.jsx)(_.A, {
|
|
children: (0, O.jsx)(y.A, {
|
|
className: "slide-img-wrap log-banner-item",
|
|
onClick: function () {
|
|
return function (e, t) {
|
|
var n;
|
|
T.A.navTo(e.schema, {
|
|
cmsTrackInfo: null == e || null === (n = e.action) || void 0 === n ? void 0 : n.item,
|
|
_d_index: t
|
|
})
|
|
}(e, t)
|
|
},
|
|
dynamicData: null == e ? void 0 : e.action,
|
|
children: 0 === t ? (0, O.jsx)("div", {
|
|
className: "fs-slide-image",
|
|
style: {
|
|
backgroundImage: "url(".concat((0, P.zp)({
|
|
url: e.pic || "",
|
|
width: 960,
|
|
ignorePng: !1
|
|
}), ")")
|
|
}
|
|
}) : (0, O.jsx)(S._V, {
|
|
className: "slide-image",
|
|
src: (0, P.zp)({
|
|
url: e.pic || "",
|
|
width: 960,
|
|
ignorePng: !1
|
|
}),
|
|
lazyLoad: !0,
|
|
mode: "aspectFill"
|
|
})
|
|
})
|
|
}, t)
|
|
}))
|
|
}), (0, O.jsx)(S.Ss, {
|
|
className: "indicator",
|
|
children: t.map((function (e, t) {
|
|
return (0, O.jsx)(S.Ss, {
|
|
className: (0, u.A)("indicator-item", {
|
|
"indicator-item-checked": t === a
|
|
})
|
|
}, "indicator-".concat(t))
|
|
}))
|
|
})]
|
|
})
|
|
},
|
|
E = a(4107),
|
|
L = a(4752),
|
|
M = new Set,
|
|
U = function (e) {
|
|
var t = (0, b.useState)(0),
|
|
n = (0, s.A)(t, 2),
|
|
i = n[0],
|
|
o = n[1];
|
|
(0, b.useEffect)((function () {
|
|
L.Ay.sendGoldLog("EXP", "/dmwechat.home.cityseletor_exp", {
|
|
spmC: "cityselector",
|
|
spmD: "denter"
|
|
}), M.clear()
|
|
}), [e.cityId]);
|
|
(0, b.useEffect)((function () {
|
|
if (e.searchTips.length > 0 && !M.has(i)) {
|
|
var t = e.searchTips[i] || {},
|
|
n = t.comboDispatchId,
|
|
o = void 0 === n ? "0" : n,
|
|
a = t.comboDispatchSystem,
|
|
l = void 0 === a ? "" : a,
|
|
r = t.keyword;
|
|
(function (e) {
|
|
L.Ay.sendGoldLog("EXP", "/dmwechat.home.searchword_exp", (0, E.A)({
|
|
spmC: "searchword",
|
|
spmD: "denter_".concat(e.index)
|
|
}, e))
|
|
})({
|
|
comboDispatchId: o,
|
|
dispatch_id: o,
|
|
dispatch_system: l,
|
|
citycode: e.cityId,
|
|
index: i + 1,
|
|
keyword: r
|
|
}), M.add(i)
|
|
}
|
|
}), [i, e.searchTips]);
|
|
var a, l = "在这里搜你感兴趣的演出吧";
|
|
e.searchTips.length > 0 && (l = null === (a = e.searchTips[i]) || void 0 === a ? void 0 : a.keyword, setTimeout((function () {
|
|
i >= e.searchTips.length - 1 ? o(0) : o(i + 1)
|
|
}), 5e3));
|
|
return (0, O.jsx)(S.Ss, {
|
|
className: "search-bar-wrap",
|
|
children: (0, O.jsxs)(S.Ss, {
|
|
className: "search-bar",
|
|
children: [(0, O.jsx)(S.Ss, {
|
|
className: "main",
|
|
onClick: function () {
|
|
var t = {};
|
|
if (e.searchTips.length > 0) {
|
|
var n = e.searchTips[i] || {},
|
|
o = n.comboDispatchId,
|
|
a = void 0 === o ? "0" : o,
|
|
r = n.comboDispatchSystem,
|
|
c = void 0 === r ? "" : r,
|
|
s = n.keyword,
|
|
u = {
|
|
comboDispatchId: a,
|
|
dispatch_id: a,
|
|
dispatch_system: c,
|
|
citycode: e.cityId,
|
|
cityname: e.cityName,
|
|
index: i + 1,
|
|
keyword: s,
|
|
spmC: "searchword",
|
|
spmD: "denter_".concat(i + 1)
|
|
};
|
|
t = u,
|
|
function (e) {
|
|
L.Ay.sendGoldLog("CLK", "/dmwechat.home.searchword_clk", (0, E.A)({
|
|
spmC: "searchword",
|
|
spmD: "denter_".concat(e.index)
|
|
}, e))
|
|
}(u)
|
|
}
|
|
var d = (0, E.A)({}, t);
|
|
d.cityId = e.cityId, d.hint = l, delete d.keyword, T.A.navTo("pages/search/index", d)
|
|
},
|
|
children: l
|
|
}), (0, O.jsx)(S.Ss, {
|
|
className: "action",
|
|
onClick: function () {
|
|
e.onCityClk(), L.Ay.sendGoldLog("CLK", "/dmwechat.home.cityseletor_clk", {
|
|
spmC: "cityselector",
|
|
spmD: "denter"
|
|
})
|
|
},
|
|
children: e.cityName
|
|
})]
|
|
})
|
|
})
|
|
},
|
|
R = a(5652),
|
|
Y = a(2555),
|
|
V = a(9152),
|
|
W = a(9148),
|
|
q = 7554,
|
|
z = 7553,
|
|
B = 7558,
|
|
G = 9992,
|
|
H = 7562,
|
|
J = 7563,
|
|
X = 7586,
|
|
K = 7571,
|
|
Z = function (e) {
|
|
return e.ZAONIAO = "ZAONIAO", e.COMBINE = "COMBINE", e.SINGLE = "SINGLE", e.COUPON = "COUPON", e.VIP = "VIP", e
|
|
}({}),
|
|
Q = 7,
|
|
$ = 3,
|
|
ee = function (e) {
|
|
var t = e.res,
|
|
n = e.index,
|
|
i = (null == t ? void 0 : t.priceCustom) || (null == t ? void 0 : t.priceLow),
|
|
o = null == t ? void 0 : t.action,
|
|
a = ((null == t ? void 0 : t.marketPromotionTags) || []).filter((function (e) {
|
|
return e.type !== Z.VIP
|
|
})),
|
|
l = null == a ? void 0 : a[0],
|
|
r = "1" === String(null == l ? void 0 : l.subType) && "SINGLE" === (null == l ? void 0 : l.type),
|
|
c = function (e) {
|
|
var t = {
|
|
num: "",
|
|
suffix: ""
|
|
};
|
|
if (e) {
|
|
var n, i = 1;
|
|
e > 1e8 ? (t.suffix = "亿", i = 1e8) : e > 1e4 && (t.suffix = "万", i = 1e4), t.num = function (e) {
|
|
var t, n = e,
|
|
i = null === (t = n) || void 0 === t ? void 0 : t.indexOf(".");
|
|
return "0" === n.slice(i + 1) && (n = n.slice(0, i)), n
|
|
}(null === (n = e / i) || void 0 === n ? void 0 : n.toFixed(1))
|
|
}
|
|
return t
|
|
},
|
|
s = (0, P.zp)({
|
|
url: null == t ? void 0 : t.projectPic,
|
|
width: 300,
|
|
ignorePng: !1
|
|
});
|
|
return (0, O.jsxs)(y.A, {
|
|
className: (0, u.A)("show-card-container", "log-slider-item"),
|
|
onClick: function () {
|
|
return function (e, t) {
|
|
T.A.navTo("/subPackages/detail/item?id=" + (null == e ? void 0 : e.projectId), {
|
|
cmsTrackInfo: null == o ? void 0 : o.item,
|
|
index: t,
|
|
_d_index: t
|
|
})
|
|
}(t, n)
|
|
},
|
|
dynamicData: o,
|
|
children: [(0, O.jsxs)(S.Ss, {
|
|
className: "show-card-picture",
|
|
children: [n < 5 ? (0, O.jsx)(S.Ss, {
|
|
className: "fs-card-picture",
|
|
style: {
|
|
backgroundImage: "url(".concat(s, ")")
|
|
}
|
|
}) : (0, O.jsx)(S._V, {
|
|
className: "card-picture",
|
|
src: s,
|
|
mode: "aspectFill"
|
|
}), (null == t ? void 0 : t.ranking) && (0, O.jsx)(S.Ss, {
|
|
className: (0, u.A)("rank", "order-".concat(null == t ? void 0 : t.ranking))
|
|
}), ((null == t ? void 0 : t.guideSubCategoryName) || (null == t ? void 0 : t.categoryName)) && (0, O.jsx)(S.Ss, {
|
|
className: "tag",
|
|
children: (null == t ? void 0 : t.guideSubCategoryName) || (null == t ? void 0 : t.categoryName)
|
|
}), null != t && t.itemScore ? (0, O.jsx)(S.Ss, {
|
|
className: "bottom-wrap",
|
|
children: (0, O.jsxs)(S.Ss, {
|
|
className: "score",
|
|
children: [null == t ? void 0 : t.itemScore, (0, O.jsx)(S.Ss, {
|
|
className: "unit",
|
|
children: "分"
|
|
})]
|
|
})
|
|
}) : (null == t ? void 0 : t.wantSeeCount) && (0, O.jsx)(S.Ss, {
|
|
className: "bottom-wrap",
|
|
children: (0, O.jsxs)(S.Ss, {
|
|
className: "score",
|
|
children: [c(null == t ? void 0 : t.wantSeeCount).num, (0, O.jsxs)(S.Ss, {
|
|
className: "unit",
|
|
children: [c(null == t ? void 0 : t.wantSeeCount).suffix, "人想看"]
|
|
})]
|
|
})
|
|
})]
|
|
}), (0, O.jsx)(S.Ss, {
|
|
className: "show-card-title",
|
|
children: null == t ? void 0 : t.projectName
|
|
}), (null == t ? void 0 : t.describeName) && (0, O.jsx)(S.Ss, {
|
|
className: "show-card-subtitle",
|
|
children: null == t ? void 0 : t.describeName
|
|
}), (0, O.jsxs)(S.Ss, {
|
|
className: "show-card-price",
|
|
children: [i && ((0, W.kf)(i) ? (0, O.jsxs)(S.Ss, {
|
|
className: "price",
|
|
children: [(0, O.jsx)(S.Ss, {
|
|
className: "unit",
|
|
children: "¥"
|
|
}), (0, O.jsx)(S.Ss, {
|
|
className: "count",
|
|
children: i
|
|
}), (0, O.jsx)(S.Ss, {
|
|
className: "text",
|
|
children: "起"
|
|
})]
|
|
}) : (0, O.jsx)(O.Fragment, {
|
|
children: (0, O.jsx)(S.Ss, {
|
|
className: "price",
|
|
children: (0, O.jsx)(S.Ss, {
|
|
className: "text undetermined",
|
|
children: i
|
|
})
|
|
})
|
|
})), r ? (0, O.jsx)("div", {
|
|
className: "wednesday-tag",
|
|
style: {
|
|
backgroundImage: "url(https://gw.alicdn.com/imgextra/i3/O1CN015SGPSS2A20NZU5wmH_!!6000000008144-2-tps-138-48.png)"
|
|
}
|
|
}) : !!l && (0, O.jsx)(V.A, {
|
|
className: "tag-item tag-gradient-bg",
|
|
variant: "contained",
|
|
children: null == l ? void 0 : l.shortTag
|
|
})]
|
|
})]
|
|
}, n)
|
|
},
|
|
te = a(3490),
|
|
ne = a(8367),
|
|
ie = a(9424),
|
|
oe = a(8773),
|
|
ae = a(5765);
|
|
|
|
function le(e, t) {
|
|
return re.apply(this, arguments)
|
|
}
|
|
|
|
function re() {
|
|
return (re = (0, Y.A)((0, R.A)().m((function e(t, n) {
|
|
var i, o, a, l, r, c;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
if (o = new ae.g(t), T.A.formatCmsTrackInfo(n), n)
|
|
for (a = 0, l = Object.keys(n); a < l.length; a++) r = l[a], o.params[r] = n[r];
|
|
c = null === (i = o.toString()) || void 0 === i ? void 0 : i.trim(), T.A.navTo(c);
|
|
case 1:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
})))).apply(this, arguments)
|
|
}
|
|
var ce = function (e) {
|
|
var t, n, i, o = (0, b.useState)(0),
|
|
a = (0, s.A)(o, 2),
|
|
l = a[0],
|
|
r = a[1],
|
|
c = (0, b.useState)(0),
|
|
u = (0, s.A)(c, 2),
|
|
d = u[0],
|
|
p = u[1],
|
|
m = (0, b.useState)("0"),
|
|
v = (0, s.A)(m, 2),
|
|
h = v[0],
|
|
f = v[1],
|
|
g = e.citySite,
|
|
x = g.cityId,
|
|
A = g.damaiId,
|
|
w = g.name,
|
|
j = g.cityName,
|
|
k = (0, b.useMemo)((function () {
|
|
var t = [],
|
|
n = [];
|
|
return (((null == e ? void 0 : e.data) || []).filter((function (e) {
|
|
return !!((null == e ? void 0 : e.nodes) || []).length
|
|
})) || []).map((function (e, i) {
|
|
var o, a, l;
|
|
e && (n.push((null == e ? void 0 : e.nodes) || []), t.push({
|
|
index: String(i),
|
|
title: (null == e || null === (o = e.data) || void 0 === o ? void 0 : o.title) || "",
|
|
action: null == e || null === (a = e.data) || void 0 === a ? void 0 : a.action,
|
|
keywords: null == e || null === (l = e.data) || void 0 === l || null === (l = l.keywords) || void 0 === l ? void 0 : l[0]
|
|
}))
|
|
})), {
|
|
tabs: t,
|
|
list: n
|
|
}
|
|
}), [e.data]);
|
|
(0, b.useEffect)((function () {
|
|
f("0"), r(0 === l ? -1 : 0), p(0 === d ? -1 : 0)
|
|
}), [e.fetchIndex]);
|
|
var N = function (e) {
|
|
return {
|
|
index: Number(e) + 1,
|
|
_d_index: Number(e) + 1
|
|
}
|
|
},
|
|
C = function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e() {
|
|
var t, n, i, o, a;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
i = (null == k || null === (t = k.tabs) || void 0 === t ? void 0 : t[h]) || {}, o = null == i || null === (n = i.keywords) || void 0 === n ? void 0 : n.action, a = null == o ? void 0 : o.actionUrl, (0, L.kU)(o, N(h)), le(a, (0, E.A)({
|
|
cmsTrackInfo: o,
|
|
cityId: x,
|
|
citycode: A,
|
|
cityName: w || j
|
|
}, N(h)));
|
|
case 1:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
})));
|
|
return function () {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}();
|
|
return (0, O.jsxs)(y.A, {
|
|
className: "show-slider-container",
|
|
children: [(0, O.jsxs)(S.Ss, {
|
|
className: "show-slider-header",
|
|
children: [(0, O.jsx)(S.BM, {
|
|
scrollX: !0,
|
|
enhanced: !0,
|
|
enableFlex: !0,
|
|
scrollLeft: d,
|
|
className: "show-slider-tabs",
|
|
children: (0, O.jsx)(te.A, {
|
|
value: h,
|
|
onChange: function (e, t) {
|
|
var n, i = t.index;
|
|
f(i), r(0 === l ? -1 : 0), (0, L.Th)(null == k || null === (n = k.tabs) || void 0 === n || null === (n = n[i]) || void 0 === n || null === (n = n.keywords) || void 0 === n ? void 0 : n.action, N(i))
|
|
},
|
|
children: null == k ? void 0 : k.tabs.map((function (e, t) {
|
|
return (0, O.jsx)(y.A, {
|
|
Component: ne.A,
|
|
index: e.index,
|
|
className: "log-slider-tab",
|
|
dynamicData: e.action,
|
|
children: e.title
|
|
}, t)
|
|
}))
|
|
})
|
|
}), (0, O.jsxs)(S.Ss, {
|
|
className: "skip-all",
|
|
onClick: C,
|
|
children: [null == k || null === (t = k.tabs) || void 0 === t || null === (t = t[h]) || void 0 === t || null === (t = t.keywords) || void 0 === t ? void 0 : t.text, (null == k || null === (n = k.tabs) || void 0 === n || null === (n = n[h]) || void 0 === n || null === (n = n.keywords) || void 0 === n ? void 0 : n.text) && (0, O.jsx)(ie.A, {})]
|
|
})]
|
|
}), (0, O.jsx)(S.BM, {
|
|
scrollX: !0,
|
|
enhanced: !0,
|
|
enableFlex: !0,
|
|
scrollLeft: l,
|
|
className: "show-slider-content",
|
|
children: null == k || null === (i = k.list) || void 0 === i ? void 0 : i.map((function (e, t) {
|
|
return (0, O.jsx)(y.A, {
|
|
Component: oe.A,
|
|
value: h,
|
|
index: String(t),
|
|
children: null == e ? void 0 : e.map((function (e, n) {
|
|
return (0, O.jsx)(ee, {
|
|
res: null == e ? void 0 : e.data,
|
|
index: n
|
|
}, t + n)
|
|
}))
|
|
}, t)
|
|
}))
|
|
})]
|
|
})
|
|
},
|
|
se = function (e) {
|
|
var t = e.dataList,
|
|
n = e.className,
|
|
i = e.citySite,
|
|
o = i.cityId,
|
|
a = i.damaiId,
|
|
l = i.name,
|
|
r = i.cityName;
|
|
(0, b.useEffect)((function () {
|
|
t.forEach((function (e, t) {
|
|
var n, i = s(t);
|
|
(0, L.Th)(null == e || null === (n = e.action) || void 0 === n ? void 0 : n.item, i)
|
|
}))
|
|
}), [a]);
|
|
var c = function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e(t, n) {
|
|
var i, a, c;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
c = s(n), (0, L.kU)(null == t || null === (i = t.action) || void 0 === i ? void 0 : i.item, c), le(t.schema, (0, E.A)((0, E.A)({
|
|
cmsTrackInfo: null == t || null === (a = t.action) || void 0 === a ? void 0 : a.item
|
|
}, c), {}, {
|
|
cityId: o,
|
|
cityName: l || r
|
|
}));
|
|
case 1:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
})));
|
|
return function (t, n) {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}(),
|
|
s = function (e) {
|
|
return {
|
|
citycode: a,
|
|
index: e + 1,
|
|
_d_index: e + 1
|
|
}
|
|
};
|
|
return (0, O.jsx)(S.Ss, {
|
|
className: (0, u.A)("square-card", n),
|
|
children: t.map((function (e, t) {
|
|
return (0, O.jsxs)(S.Ss, {
|
|
onClick: function () {
|
|
return c(e, t)
|
|
},
|
|
className: "square-card-item",
|
|
style: {
|
|
background: "url(".concat(e.backGroundPic, ") no-repeat"),
|
|
backgroundSize: "auto 100%"
|
|
},
|
|
children: [(0, O.jsx)(S.Ss, {
|
|
className: "square-card-item-title",
|
|
children: null == e ? void 0 : e.title
|
|
}), (0, O.jsx)(S.Ss, {
|
|
className: "square-card-item-subtitle",
|
|
children: null == e ? void 0 : e.subTitle
|
|
})]
|
|
}, t)
|
|
}))
|
|
})
|
|
},
|
|
ue = a(6432),
|
|
de = a(1209),
|
|
pe = a(3021),
|
|
me = a.n(pe),
|
|
ve = function (e, t, n, i) {
|
|
var o = (null == n ? void 0 : n[e]) || [],
|
|
a = o.indexOf(t);
|
|
if (~a) {
|
|
var l = (0, r.A)(o);
|
|
return null == l || l.splice(a, 1), i((0, E.A)((0, E.A)({}, n), {}, (0, c.A)({}, e, l))), (0, E.A)((0, E.A)({}, n), {}, (0, c.A)({}, e, l))
|
|
}
|
|
return i((0, E.A)((0, E.A)({}, n), {}, (0, c.A)({}, e, [].concat((0, r.A)(o), [t])))), (0, E.A)((0, E.A)({}, n), {}, (0, c.A)({}, e, [].concat((0, r.A)(o), [t])))
|
|
},
|
|
he = [{
|
|
value: "0",
|
|
name: "全部时间",
|
|
date: []
|
|
}, {
|
|
value: "4",
|
|
name: "一个月内",
|
|
date: [me()().toDate(), me()().add(29, "day").toDate()]
|
|
}, {
|
|
value: "10",
|
|
name: "一周内",
|
|
date: [me()().toDate(), me()().add(6, "day").toDate()]
|
|
}, {
|
|
value: "9",
|
|
name: "本周末",
|
|
date: [function (e, t) {
|
|
return me()(me()(e).format("YYYYMMDD")).diff(me()(me()(t).format("YYYYMMDD")), "day")
|
|
}(me()().toDate(), me()().startOf("week").add(5, "day").toDate()) < 0 ? me()().startOf("week").add(5, "day").toDate() : me()().toDate(), me()().startOf("week").add(7, "day").toDate()]
|
|
}],
|
|
fe = {
|
|
hot: [],
|
|
category: [],
|
|
calendar: [],
|
|
calendarSlider: "",
|
|
sort: "3",
|
|
rightFilter: {
|
|
price: [],
|
|
service: []
|
|
}
|
|
},
|
|
ge = function (e) {
|
|
var t, n, i, o, a;
|
|
return !(!e || "3" !== (null == e ? void 0 : e.sort) || "" !== (null == e ? void 0 : e.calendarSlider) || 0 !== (null == e || null === (t = e.hot) || void 0 === t ? void 0 : t.length) || 0 !== (null == e || null === (n = e.category) || void 0 === n ? void 0 : n.length) || 0 !== (null == e || null === (i = e.calendar) || void 0 === i ? void 0 : i.length) || 0 !== (null == e || null === (o = e.rightFilter) || void 0 === o || null === (o = o.price) || void 0 === o ? void 0 : o.length) || 0 !== (null == e || null === (a = e.rightFilter) || void 0 === a || null === (a = a.service) || void 0 === a ? void 0 : a.length))
|
|
},
|
|
ye = function (e) {
|
|
var t, n, i, o, a, l, r, c, s, u = [];
|
|
(null == e || null === (t = e.rightFilter) || void 0 === t || null === (t = t.price) || void 0 === t ? void 0 : t.length) > 0 && u.push({
|
|
price: null == e || null === (c = e.rightFilter) || void 0 === c || null === (c = c.price) || void 0 === c ? void 0 : c[0]
|
|
}), (null == e || null === (n = e.rightFilter) || void 0 === n || null === (n = n.service) || void 0 === n ? void 0 : n.length) > 0 && u.push({
|
|
service: null == e || null === (s = e.rightFilter) || void 0 === s || null === (s = s.service) || void 0 === s ? void 0 : s.join("|")
|
|
});
|
|
var d, p = [];
|
|
null == e || null === (i = e.category) || void 0 === i || i.forEach((function (e) {
|
|
return p.push(e)
|
|
})), null == e || null === (o = e.hot) || void 0 === o || o.forEach((function (e) {
|
|
if (!~["price-1", "dateType-9", "service-1"].indexOf(e)) {
|
|
var t = null == e ? void 0 : e.indexOf("-");
|
|
~t && (d = null == e ? void 0 : e.slice(t + 1))
|
|
}
|
|
}));
|
|
var m = null == e || null === (a = e.calendar) || void 0 === a ? void 0 : a[0],
|
|
v = null == e || null === (l = e.calendar) || void 0 === l ? void 0 : l[1];
|
|
m = !(null != e && e.calendarSlider) && m && me()(m).format("YYYY-MM-DD") || void 0, v = !(null != e && e.calendarSlider) && v && me()(v).format("YYYY-MM-DD") || m;
|
|
var h = null != e && null !== (r = e.calendar) && void 0 !== r && r[0] ? "5" : "0";
|
|
return {
|
|
groupId: d,
|
|
dateType: (null == e ? void 0 : e.calendarSlider) || h,
|
|
sortType: (null == e ? void 0 : e.sort) || "10",
|
|
startDate: m,
|
|
latitude: null == e ? void 0 : e.latitude,
|
|
longitude: null == e ? void 0 : e.longitude,
|
|
endDate: v,
|
|
optionParam: (null == u ? void 0 : u.length) > 0 ? JSON.stringify(u) : void 0,
|
|
categoryId: (null == p ? void 0 : p.length) > 0 ? null == p ? void 0 : p.join("|") : 0
|
|
}
|
|
},
|
|
xe = function (e) {
|
|
var t = e.data,
|
|
n = e.onChange,
|
|
i = e.selectedData,
|
|
o = e.trackInfo;
|
|
return (0, b.useEffect)((function () {
|
|
(0, L.Th)(o)
|
|
}), []), (0, O.jsx)(S.Ss, {
|
|
className: "filter-popup-sort",
|
|
children: null == t ? void 0 : t.map((function (e, t) {
|
|
return (0, O.jsx)(S.Ss, {
|
|
className: (0, u.A)("filter-popup-sort-item", (null == e ? void 0 : e.value) === (null == i ? void 0 : i.sort) && "selected"),
|
|
onClick: function () {
|
|
return n(e)
|
|
},
|
|
children: null == e ? void 0 : e.name
|
|
}, t)
|
|
}))
|
|
})
|
|
},
|
|
Ae = a(5718),
|
|
we = function (e) {
|
|
var t = e.data,
|
|
n = e.selectedData,
|
|
i = e.onClick,
|
|
o = e.trackInfo;
|
|
return (0, b.useEffect)((function () {
|
|
(0, L.Th)(o)
|
|
}), []), (0, O.jsx)(S.Ss, {
|
|
className: "filter-popup-category",
|
|
children: null == t ? void 0 : t.map((function (e, t) {
|
|
var o = ~(null == n ? void 0 : n.indexOf(null == e ? void 0 : e.value));
|
|
return (0, O.jsxs)(S.Ss, {
|
|
className: (0, u.A)("cate-popup-item", o && "selected"),
|
|
onClick: function () {
|
|
return i(e)
|
|
},
|
|
children: [(0, O.jsx)(S.Ss, {
|
|
children: null == e ? void 0 : e.name
|
|
}), o ? (0, O.jsx)(Ae.A, {
|
|
style: {
|
|
color: "#ff2869"
|
|
}
|
|
}) : (0, O.jsx)(S.Ss, {
|
|
className: "no-selected"
|
|
})]
|
|
}, t)
|
|
}))
|
|
})
|
|
},
|
|
je = a(127),
|
|
ke = a(2945),
|
|
Ne = function (e) {
|
|
var t = e.index,
|
|
n = e.type,
|
|
i = e.data,
|
|
o = e.trackInfo,
|
|
a = e.selectedData,
|
|
l = e.onClickSlderItem,
|
|
r = "tag" === n ? "tag-item-".concat(t) : "";
|
|
return (0, ke.Ay)(r, (function () {
|
|
"tag" === n && (0, L.Th)(o, {
|
|
tagname: null == i ? void 0 : i.name,
|
|
selectionId: null == i ? void 0 : i.trueValue,
|
|
index: t + 1,
|
|
_d_index: t + 1
|
|
})
|
|
})), (0, O.jsx)(S.Ss, {
|
|
className: (0, u.A)("across-slider-item", r, (null == a ? void 0 : a.length) > 0 && ~a.indexOf(i.value) && "selected"),
|
|
onClick: function () {
|
|
return l(i, t)
|
|
},
|
|
children: null == i ? void 0 : i.name
|
|
})
|
|
},
|
|
Se = function (e) {
|
|
var t = e.type,
|
|
n = e.sliderData,
|
|
i = e.trackInfo,
|
|
o = e.selectedData,
|
|
a = e.onClickSlderItem;
|
|
return (0, O.jsx)(S.BM, {
|
|
scrollX: !0,
|
|
enhanced: !0,
|
|
enableFlex: !0,
|
|
children: (0, O.jsx)(S.Ss, {
|
|
className: (0, u.A)("across-slider"),
|
|
children: null == n ? void 0 : n.map((function (e, n) {
|
|
return (0, O.jsx)(Ne, {
|
|
index: n,
|
|
type: t,
|
|
data: e,
|
|
trackInfo: i,
|
|
selectedData: o,
|
|
onClickSlderItem: a
|
|
}, n)
|
|
}))
|
|
})
|
|
})
|
|
},
|
|
be = function (e) {
|
|
var t = e.onChange,
|
|
n = e.filterData,
|
|
i = e.onClickSilder,
|
|
o = e.trackInfo;
|
|
(0, b.useEffect)((function () {
|
|
(0, L.Th)(o)
|
|
}), []);
|
|
return (0, O.jsxs)(S.Ss, {
|
|
className: (0, u.A)("filter-popup-calendar"),
|
|
children: [(0, O.jsx)(Se, {
|
|
sliderData: he,
|
|
selectedData: [null == n ? void 0 : n.calendarSlider],
|
|
onClickSlderItem: function (e) {
|
|
var t = [],
|
|
o = "",
|
|
a = (0, r.A)((null == n ? void 0 : n.hot) || []);
|
|
(null == n ? void 0 : n.calendarSlider) !== (null == e ? void 0 : e.value) && (t = null == e ? void 0 : e.date, o = null == e ? void 0 : e.value);
|
|
var l = "dateType-9",
|
|
c = null == a ? void 0 : a.indexOf(l);
|
|
"9" === (null == e ? void 0 : e.value) ? ~c ? null == a || a.splice(c, 1) : a.push(l): ~c && (null == a || a.splice(c, 1)), i((0, E.A)((0, E.A)({}, n), {}, {
|
|
hot: a,
|
|
calendar: t,
|
|
calendarSlider: o
|
|
}))
|
|
}
|
|
}), (0, O.jsx)(je.A, {
|
|
mode: "range",
|
|
value: null == n ? void 0 : n.calendar,
|
|
minDate: me()(me()().format("YYYYMM")).add(0, "month").toDate(),
|
|
maxDate: me()(me()().format("YYYYMMDD")).add(11, "month").endOf("month").toDate(),
|
|
disabledDate: function (e) {
|
|
return me()(me()(e).format("YYYYMMDD")).diff(me()(me()().format("YYYYMMDD")), "day") < 0
|
|
},
|
|
onChange: function (e, i) {
|
|
var o, a = null == i ? void 0 : i.value,
|
|
l = (0, r.A)((null == n ? void 0 : n.hot) || []),
|
|
c = null == l ? void 0 : l.indexOf("dateType-9");
|
|
~c && l.splice(c), o = null == a || !a[0] || null != a && a[1] ? (0, E.A)((0, E.A)({}, n), {}, {
|
|
hot: l,
|
|
calendar: a
|
|
}) : (0, E.A)((0, E.A)({}, n), {}, {
|
|
hot: l,
|
|
calendar: a,
|
|
calendarSlider: ""
|
|
}), t(o)
|
|
}
|
|
})]
|
|
})
|
|
},
|
|
Ce = function (e) {
|
|
var t = e.data,
|
|
n = e.onChange,
|
|
i = e.selectedData,
|
|
o = e.trackInfo;
|
|
(0, b.useEffect)((function () {
|
|
(0, L.Th)(o)
|
|
}), []);
|
|
var a = function (e, t) {
|
|
var o, a = t.option,
|
|
l = (0, E.A)({}, null == i ? void 0 : i.rightFilter),
|
|
c = null == i || null === (o = i.rightFilter) || void 0 === o ? void 0 : o[a],
|
|
s = (0, r.A)((null == i ? void 0 : i.hot) || []),
|
|
u = "".concat(a, "-").concat(null == e ? void 0 : e.value);
|
|
if ("price" === a) {
|
|
~(null == c ? void 0 : c.indexOf(null == e ? void 0 : e.value)) ? l[a] = []: l[a] = [null == e ? void 0 : e.value];
|
|
var d = null == s ? void 0 : s.indexOf("price-1");
|
|
~d ? null == s || s.splice(d, 1) : "price-1" === u && s.push(u), n((0, E.A)((0, E.A)({}, i), {}, {
|
|
rightFilter: l,
|
|
hot: s
|
|
}))
|
|
} else if ("service" === a) {
|
|
var p, m = null == c ? void 0 : c.indexOf(null == e ? void 0 : e.value);
|
|
if (~m ? null === (p = l[a]) || void 0 === p || p.splice(m, 1) : l[a] = [].concat((0, r.A)(l[a]), [null == e ? void 0 : e.value]), "service-1" === u) {
|
|
var v = null == s ? void 0 : s.indexOf("service-1");
|
|
~v ? null == s || s.splice(v, 1) : s.push(u)
|
|
}
|
|
n((0, E.A)((0, E.A)({}, i), {}, {
|
|
rightFilter: l,
|
|
hot: s
|
|
}))
|
|
}
|
|
};
|
|
return (0, O.jsx)(S.Ss, {
|
|
className: "filter-popup-filter",
|
|
children: null == t ? void 0 : t.map((function (e, t) {
|
|
var n;
|
|
return (0, O.jsxs)(S.Ss, {
|
|
className: "filter-popup-filter-item",
|
|
children: [(0, O.jsx)(S.Ss, {
|
|
className: "title",
|
|
children: null == e ? void 0 : e.name
|
|
}), (0, O.jsx)(Se, {
|
|
sliderData: null == e ? void 0 : e.lineItem,
|
|
selectedData: null == i || null === (n = i.rightFilter) || void 0 === n ? void 0 : n[null == e ? void 0 : e.option],
|
|
onClickSlderItem: function (t) {
|
|
return a(t, e)
|
|
}
|
|
})]
|
|
}, t)
|
|
}))
|
|
})
|
|
},
|
|
Ie = function (e) {
|
|
var t, n, i, o, a, l = e.data,
|
|
c = e.selectedPopup,
|
|
s = e.setAlreadySort,
|
|
u = e.fetchParams,
|
|
d = e.filterData,
|
|
p = e.setFilterData,
|
|
m = e.setFetchParams,
|
|
v = e.scrollToFilter,
|
|
f = e.setSelectedPopup,
|
|
g = e.onFilterFetchData;
|
|
if (0 === c) return null;
|
|
var y = (null == l || null === (t = l[0]) || void 0 === t ? void 0 : t.primary) || {},
|
|
x = y.category,
|
|
A = void 0 === x ? [] : x,
|
|
w = y.selection,
|
|
j = void 0 === w ? [] : w,
|
|
k = y.sortType,
|
|
N = void 0 === k ? [] : k,
|
|
b = function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e(t) {
|
|
var n, i, o, a, l;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
if (n = {}, i = {}, "4" === (null == d ? void 0 : d.sort) || "4" !== (null == t ? void 0 : t.value)) {
|
|
e.n = 2;
|
|
break
|
|
}
|
|
return e.n = 1, h.Di.getLocation();
|
|
case 1:
|
|
i = e.v;
|
|
case 2:
|
|
a = (o = i).latitude, l = o.longitude, (null == t ? void 0 : t.value) !== (null == d ? void 0 : d.sort) && (n = (0, E.A)((0, E.A)((0, E.A)({}, d), {
|
|
sort: null == t ? void 0 : t.value
|
|
}), {}, {
|
|
latitude: a,
|
|
longitude: l
|
|
}), v(), p(n), m(n), g(ye(n), ge(n))), s(!0), f(0);
|
|
case 3:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
})));
|
|
return function (t) {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}(),
|
|
C = (0, ue.Jt)("statusBarHeight") + (0, ue.Jt)("menubarHeight") + (0, h.e4)(166);
|
|
return (0, O.jsxs)(S.Ss, {
|
|
className: "filter-popup",
|
|
style: {
|
|
top: "".concat(C, "px"),
|
|
height: "calc( 100% - ".concat(C, "px)")
|
|
},
|
|
children: [1 === c && (0, O.jsx)(we, {
|
|
data: A,
|
|
selectedData: null == d ? void 0 : d.category,
|
|
onClick: function (e) {
|
|
ve("category", null == e ? void 0 : e.value, d, p)
|
|
},
|
|
trackInfo: null == l || null === (n = l[0]) || void 0 === n || null === (n = n.action) || void 0 === n ? void 0 : n.category
|
|
}), 2 === c && (0, O.jsx)(be, {
|
|
filterData: d,
|
|
onChange: p,
|
|
onClickSilder: function (e) {
|
|
f(0),
|
|
function (e) {
|
|
e && (p(e), m(e)), v(), g(ye(e), ge(e))
|
|
}(e)
|
|
},
|
|
trackInfo: null == l || null === (i = l[0]) || void 0 === i || null === (i = i.action) || void 0 === i ? void 0 : i.calendar
|
|
}), 3 === c && (0, O.jsx)(xe, {
|
|
data: N,
|
|
selectedData: d,
|
|
onChange: b,
|
|
trackInfo: null == l || null === (o = l[0]) || void 0 === o || null === (o = o.action) || void 0 === o ? void 0 : o.sortType
|
|
}), 4 === c && (0, O.jsx)(Ce, {
|
|
data: j,
|
|
selectedData: d,
|
|
onChange: p,
|
|
trackInfo: null == l || null === (a = l[0]) || void 0 === a || null === (a = a.action) || void 0 === a ? void 0 : a.selection
|
|
}), ~[1, 2, 4].indexOf(c) ? (0, O.jsx)("div", {
|
|
className: "filter-popup-handle",
|
|
children: (0, O.jsxs)("div", {
|
|
className: "filter-popup-handle-wrap",
|
|
children: [(0, O.jsx)(de.A, {
|
|
className: "filter-popup-handle-btn reset",
|
|
onClick: function () {
|
|
if (1 === c) p((0, E.A)((0, E.A)({}, d), {}, {
|
|
category: []
|
|
}));
|
|
else if (2 === c) {
|
|
var e = (0, r.A)((null == d ? void 0 : d.hot) || []);
|
|
if ((null == e ? void 0 : e.length) > 0) {
|
|
var t = null == e ? void 0 : e.indexOf("dateType-9");
|
|
~t && e.splice(t, 1)
|
|
}
|
|
p((0, E.A)((0, E.A)({}, d), {}, {
|
|
hot: e,
|
|
calendar: [],
|
|
calendarSlider: ""
|
|
}))
|
|
} else if (4 === c) {
|
|
var n, i = (0, r.A)((null == d ? void 0 : d.hot) || []);
|
|
i = null === (n = i) || void 0 === n ? void 0 : n.filter((function (e) {
|
|
return "price-1" !== e && "service-1" !== e
|
|
})), p((0, E.A)((0, E.A)({}, d), {}, {
|
|
hot: i,
|
|
rightFilter: {
|
|
price: [],
|
|
service: []
|
|
}
|
|
}))
|
|
}
|
|
},
|
|
children: "重置"
|
|
}), (0, O.jsx)(de.A, {
|
|
className: "filter-popup-handle-btn confirm",
|
|
onClick: function () {
|
|
v(), m(d), f(0), g(ye(d), ge(d))
|
|
},
|
|
children: "确定"
|
|
})]
|
|
})
|
|
}) : null, 0 !== c && (0, O.jsx)(S.Ss, {
|
|
className: "filter-mask",
|
|
onClick: function () {
|
|
p(u), f(0)
|
|
}
|
|
})]
|
|
})
|
|
},
|
|
De = a(3566),
|
|
_e = function (e) {
|
|
var t, n, i, o, a = e.fetchParams,
|
|
l = e.selectedPopup,
|
|
r = e.category,
|
|
c = e.alreadySort,
|
|
s = e.sortType,
|
|
d = e.onClickHeadPopup;
|
|
return (0, O.jsxs)(S.Ss, {
|
|
className: "filter-header-left",
|
|
children: [(0, O.jsxs)(S.Ss, {
|
|
className: (0, u.A)("filter-header-item", (null == a || null === (t = a.category) || void 0 === t ? void 0 : t.length) > 0 && "selected"),
|
|
onClick: function () {
|
|
return d(1)
|
|
},
|
|
children: [function () {
|
|
var e, t = "品类",
|
|
n = null == a || null === (e = a.category) || void 0 === e ? void 0 : e.length;
|
|
if (n > 0) {
|
|
var i, o, l = null == a || null === (i = a.category) || void 0 === i ? void 0 : i[n - 1],
|
|
c = null == r ? void 0 : r.filter((function (e) {
|
|
return e.value === l
|
|
}));
|
|
t = null == c || null === (o = c[0]) || void 0 === o ? void 0 : o.name, n > 1 && (t += ",...")
|
|
}
|
|
return t
|
|
}(), (0, O.jsx)(S.Ss, {
|
|
className: "filter-header-item-icon",
|
|
children: (0, O.jsx)(De.A, {
|
|
className: (0, u.A)("caretup-filled", 1 === l ? "up" : "down"),
|
|
htmlColor: (null == a || null === (n = a.category) || void 0 === n ? void 0 : n.length) > 0 ? "#ff2869" : "#5f6672"
|
|
})
|
|
})]
|
|
}), (0, O.jsxs)(S.Ss, {
|
|
className: (0, u.A)("filter-header-item", (null == a || null === (i = a.calendar) || void 0 === i ? void 0 : i[0]) && "selected"),
|
|
onClick: function () {
|
|
return d(2)
|
|
},
|
|
children: [function () {
|
|
var e, t = "全部时间";
|
|
if (null != a && a.calendarSlider) {
|
|
var n, i = null == he ? void 0 : he.filter((function (e) {
|
|
return (null == e ? void 0 : e.value) === (null == a ? void 0 : a.calendarSlider)
|
|
}));
|
|
t = null == i || null === (n = i[0]) || void 0 === n ? void 0 : n.name
|
|
} else if (null != a && null !== (e = a.calendar) && void 0 !== e && e[0]) {
|
|
var o, l, r;
|
|
t = "".concat(me()(null == a || null === (o = a.calendar) || void 0 === o ? void 0 : o[0]).format("MMDD")).concat(null != a && null !== (l = a.calendar) && void 0 !== l && l[1] ? "-" + me()(null == a || null === (r = a.calendar) || void 0 === r ? void 0 : r[1]).format("MMDD") : "")
|
|
}
|
|
return t
|
|
}(), (0, O.jsx)(S.Ss, {
|
|
className: "filter-header-item-icon",
|
|
children: (0, O.jsx)(De.A, {
|
|
className: (0, u.A)("caretup-filled", 2 === l ? "up" : "down"),
|
|
htmlColor: null != a && null !== (o = a.calendar) && void 0 !== o && o[0] ? "#ff2869" : "#5f6672"
|
|
})
|
|
})]
|
|
}), (0, O.jsxs)(S.Ss, {
|
|
className: (0, u.A)("filter-header-item", c && (null == a ? void 0 : a.sort) && "selected"),
|
|
onClick: function () {
|
|
return d(3)
|
|
},
|
|
children: [function () {
|
|
var e = "推荐排序";
|
|
if (null != a && a.sort) {
|
|
var t, n = null == s ? void 0 : s.filter((function (e) {
|
|
return (null == e ? void 0 : e.value) === (null == a ? void 0 : a.sort)
|
|
}));
|
|
e = null == n || null === (t = n[0]) || void 0 === t ? void 0 : t.name
|
|
}
|
|
return e
|
|
}(), (0, O.jsx)(S.Ss, {
|
|
className: "filter-header-item-icon",
|
|
children: (0, O.jsx)(De.A, {
|
|
className: (0, u.A)("caretup-filled", 3 === l ? "up" : "down"),
|
|
htmlColor: c && null != a && a.sort ? "#ff2869" : "#5f6672"
|
|
})
|
|
})]
|
|
})]
|
|
})
|
|
},
|
|
Te = function (e) {
|
|
var t, n, i, o, a = e.fetchParams,
|
|
l = e.selectedPopup,
|
|
r = e.onClickHeadPopup;
|
|
return (0, O.jsxs)(S.Ss, {
|
|
className: (0, u.A)("filter-header-right", ((null == a || null === (t = a.rightFilter) || void 0 === t || null === (t = t.price) || void 0 === t ? void 0 : t.length) > 0 || (null == a || null === (n = a.rightFilter) || void 0 === n || null === (n = n.service) || void 0 === n ? void 0 : n.length) > 0) && "selected"),
|
|
onClick: function () {
|
|
return r(4)
|
|
},
|
|
children: ["筛选", (0, O.jsx)(S.Ss, {
|
|
className: "filter-header-item-icon",
|
|
children: (0, O.jsx)(De.A, {
|
|
className: (0, u.A)("caretup-filled", 4 === l ? "up" : "down"),
|
|
htmlColor: (null == a || null === (i = a.rightFilter) || void 0 === i || null === (i = i.price) || void 0 === i ? void 0 : i.length) > 0 || (null == a || null === (o = a.rightFilter) || void 0 === o || null === (o = o.service) || void 0 === o ? void 0 : o.length) > 0 ? "#ff2869" : "#5f6672"
|
|
})
|
|
})]
|
|
})
|
|
},
|
|
Pe = function (e) {
|
|
var t, n = e.data,
|
|
i = e.alreadySort,
|
|
o = e.fetchParams,
|
|
a = e.selectedPopup,
|
|
l = e.setFilterData,
|
|
r = e.scrollToFilter,
|
|
c = e.setSelectedPopup,
|
|
s = (null == n || null === (t = n[0]) || void 0 === t ? void 0 : t.primary) || {},
|
|
u = s.category,
|
|
d = void 0 === u ? [] : u,
|
|
p = s.sortType,
|
|
m = void 0 === p ? [] : p,
|
|
v = function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e(t) {
|
|
var i, o, a, l, s, u;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
r(), o = (null == n || null === (i = n[0]) || void 0 === i ? void 0 : i.action) || {}, a = o.category, l = o.calendar, s = o.sortType, u = o.selection, 1 === t ? (0, L.kU)(a) : 2 === t ? (0, L.kU)(l) : 3 === t ? (0, L.kU)(s) : 4 === t && (0, L.kU)(u), c(t);
|
|
case 1:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
})));
|
|
return function (t) {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}(),
|
|
h = function (e) {
|
|
a === e ? (l(o), c(0)) : v(e)
|
|
};
|
|
return (0, O.jsxs)(S.Ss, {
|
|
className: "filter-header",
|
|
children: [(0, O.jsx)(_e, {
|
|
category: d,
|
|
sortType: m,
|
|
alreadySort: i,
|
|
fetchParams: o,
|
|
selectedPopup: a,
|
|
onClickHeadPopup: h
|
|
}), (0, O.jsx)(Te, {
|
|
fetchParams: o,
|
|
selectedPopup: a,
|
|
onClickHeadPopup: h
|
|
})]
|
|
})
|
|
},
|
|
Oe = function (e) {
|
|
var t, n, i = [];
|
|
null == e || null === (t = e.data) || void 0 === t || null === (t = t[0]) || void 0 === t || null === (t = t.secondary) || void 0 === t || t.forEach((function (e) {
|
|
var t, n;
|
|
(null == e || null === (t = e.lineItem) || void 0 === t ? void 0 : t.length) > 0 && (null == e || null === (n = e.lineItem) || void 0 === n || n.forEach((function (t) {
|
|
i.push({
|
|
option: null == e ? void 0 : e.option,
|
|
name: null == t ? void 0 : t.name,
|
|
value: "".concat(null == e ? void 0 : e.option, "-").concat(null == t ? void 0 : t.value),
|
|
trueValue: null == t ? void 0 : t.value
|
|
})
|
|
})))
|
|
}));
|
|
var o = (0, b.useState)(0),
|
|
a = (0, s.A)(o, 2),
|
|
l = a[0],
|
|
c = a[1],
|
|
u = (0, b.useState)(fe),
|
|
d = (0, s.A)(u, 2),
|
|
p = d[0],
|
|
m = d[1],
|
|
v = (0, b.useState)(fe),
|
|
h = (0, s.A)(v, 2),
|
|
f = h[0],
|
|
g = h[1],
|
|
y = (0, b.useState)(!1),
|
|
x = (0, s.A)(y, 2),
|
|
A = x[0],
|
|
w = x[1];
|
|
(0, b.useEffect)((function () {
|
|
c(0), g(fe), m(fe)
|
|
}), [null == e ? void 0 : e.cityCode]);
|
|
var j = function (t) {
|
|
t && (g(t), m(t)), k(), e.onFilterFetchData(ye(t), ge(t))
|
|
},
|
|
k = function () {
|
|
null == e || e.setScrollIntoView(""), setTimeout((function () {
|
|
null == e || e.setScrollIntoView("filter-placeholader")
|
|
}))
|
|
},
|
|
N = function (e, t) {
|
|
var n, i, o, a = (0, E.A)({}, null == f ? void 0 : f.rightFilter),
|
|
l = null == a || null === (n = a[e]) || void 0 === n || null === (i = n.indexOf) || void 0 === i ? void 0 : i.call(n, null == t ? void 0 : t.trueValue);
|
|
return ~l ? null == a || null === (o = a[e]) || void 0 === o || o.splice(l, 1) : "price" === e ? a[e] = [null == t ? void 0 : t.trueValue] : "service" === e && (a[e] = [].concat((0, r.A)((null == a ? void 0 : a[e]) || []), [null == t ? void 0 : t.trueValue])), a
|
|
};
|
|
return (0, O.jsxs)(O.Fragment, {
|
|
children: [(0, O.jsx)(S.Ss, {
|
|
id: "filter-placeholader"
|
|
}), (0, O.jsxs)(S.Ss, {
|
|
className: "filter-wrap",
|
|
catchMove: !0,
|
|
children: [(0, O.jsx)(Pe, {
|
|
data: e.data,
|
|
alreadySort: A,
|
|
fetchParams: p,
|
|
selectedPopup: l,
|
|
setSelectedPopup: c,
|
|
setFilterData: g,
|
|
scrollToFilter: k
|
|
}), (0, O.jsx)(Ie, {
|
|
data: e.data,
|
|
setAlreadySort: w,
|
|
selectedPopup: l,
|
|
setSelectedPopup: c,
|
|
fetchParams: p,
|
|
setFetchParams: m,
|
|
filterData: f,
|
|
setFilterData: g,
|
|
scrollToFilter: k,
|
|
onFilterFetchData: null == e ? void 0 : e.onFilterFetchData
|
|
}), (0, O.jsx)(Se, {
|
|
type: "tag",
|
|
trackInfo: null == e || null === (n = e.data) || void 0 === n || null === (n = n[0]) || void 0 === n || null === (n = n.action) || void 0 === n ? void 0 : n.tag,
|
|
sliderData: i,
|
|
selectedData: null == f ? void 0 : f.hot,
|
|
onClickSlderItem: function (t, n) {
|
|
var i, o = null,
|
|
a = function (e) {
|
|
var t, n = (null == f ? void 0 : f.hot) || [],
|
|
i = n.indexOf(null == e ? void 0 : e.value),
|
|
o = {};
|
|
return ~i ? null === (t = o = (0, r.A)(n)) || void 0 === t || t.splice(i, 1) : o = [].concat((0, r.A)(n), [null == e ? void 0 : e.value]), o
|
|
},
|
|
l = function (e, t) {
|
|
var n = N(e, t),
|
|
i = a(t);
|
|
return (0, E.A)((0, E.A)({}, f), {}, {
|
|
hot: i,
|
|
rightFilter: n
|
|
})
|
|
};
|
|
if ("price" === (null == t ? void 0 : t.option)) o = l("price", t);
|
|
else if ("service" === (null == t ? void 0 : t.option)) o = l("service", t);
|
|
else if ("dateType" === (null == t ? void 0 : t.option)) {
|
|
var c = "",
|
|
s = [];
|
|
if ((null == f ? void 0 : f.calendarSlider) !== (null == t ? void 0 : t.trueValue)) {
|
|
var u;
|
|
c = null == t ? void 0 : t.trueValue;
|
|
var d = he.filter((function (e) {
|
|
return (null == e ? void 0 : e.value) === (null == t ? void 0 : t.trueValue)
|
|
}));
|
|
s = null == d || null === (u = d[0]) || void 0 === u ? void 0 : u.date
|
|
}
|
|
var p = a(t);
|
|
o = (0, E.A)((0, E.A)({}, f), {}, {
|
|
hot: p,
|
|
calendar: s,
|
|
calendarSlider: c
|
|
})
|
|
} else {
|
|
var m = (0, r.A)((null == f ? void 0 : f.hot) || []),
|
|
v = null == m ? void 0 : m.indexOf(null == t ? void 0 : t.value);
|
|
if (~v) null == m || m.splice(v, 1), o = (0, E.A)((0, E.A)({}, f), {}, {
|
|
hot: m
|
|
});
|
|
else {
|
|
var h = [];
|
|
null == m || m.forEach((function (e) {
|
|
"price-1" !== e && "dateType-9" !== e && "service-1" !== e || h.push(e)
|
|
})), h.push(null == t ? void 0 : t.value), o = (0, E.A)((0, E.A)({}, f), {}, {
|
|
hot: [].concat(h)
|
|
})
|
|
}
|
|
}
|
|
var g = null == e || null === (i = e.data) || void 0 === i || null === (i = i[0]) || void 0 === i || null === (i = i.action) || void 0 === i ? void 0 : i.tag;
|
|
(0, L.kU)(g, {
|
|
tagname: null == t ? void 0 : t.name,
|
|
selectionId: null == t ? void 0 : t.trueValue,
|
|
index: n + 1,
|
|
_d_index: n + 1
|
|
}), j(o)
|
|
}
|
|
})]
|
|
})]
|
|
})
|
|
},
|
|
Fe = a(8641),
|
|
Ee = a(8799),
|
|
Le = a(6454),
|
|
Me = a(8870),
|
|
Ue = Object.defineProperty,
|
|
Re = Object.getOwnPropertySymbols,
|
|
Ye = Object.prototype.hasOwnProperty,
|
|
Ve = Object.prototype.propertyIsEnumerable,
|
|
We = function (e, t, n) {
|
|
return t in e ? Ue(e, t, {
|
|
enumerable: !0,
|
|
configurable: !0,
|
|
writable: !0,
|
|
value: n
|
|
}) : e[t] = n
|
|
},
|
|
qe = "bui-multiline-ballarea",
|
|
ze = (0, b.forwardRef)((function (n, i) {
|
|
var o = n,
|
|
a = o.className,
|
|
l = o.style,
|
|
r = o.countPerLine,
|
|
c = void 0 === r ? 5 : r,
|
|
s = o.onClick,
|
|
u = void 0 === s ? function () {} : s,
|
|
d = o.children,
|
|
p = function (e, n) {
|
|
var i = {};
|
|
for (var o in e) Ye.call(e, o) && n.indexOf(o) < 0 && (i[o] = e[o]);
|
|
if (null != e && Re) {
|
|
var a, l = t(Re(e));
|
|
try {
|
|
for (l.s(); !(a = l.n()).done;) {
|
|
o = a.value;
|
|
n.indexOf(o) < 0 && Ve.call(e, o) && (i[o] = e[o])
|
|
}
|
|
} catch (e) {
|
|
l.e(e)
|
|
} finally {
|
|
l.f()
|
|
}
|
|
}
|
|
return i
|
|
}(o, ["className", "style", "countPerLine", "onClick", "children"]),
|
|
m = b.Children.count(d),
|
|
v = [],
|
|
h = b.Children.toArray(d);
|
|
return v = e(new Array(Math.ceil(m / c))).map((function (t, n) {
|
|
var i = h.slice(n * c, (n + 1) * c),
|
|
o = i.length;
|
|
return o < c && (i = [].concat(e(i), e(new Array(c - o))).map((function (e, t) {
|
|
return e || b.createElement("div", {
|
|
key: t,
|
|
className: "bui-ball-area-item null-fill"
|
|
})
|
|
}))), i
|
|
})), b.createElement(Me.L, {
|
|
value: {
|
|
direction: "vertical"
|
|
}
|
|
}, b.createElement("div", function (e, n) {
|
|
for (var i in n || (n = {})) Ye.call(n, i) && We(e, i, n[i]);
|
|
if (Re) {
|
|
var o, a = t(Re(n));
|
|
try {
|
|
for (a.s(); !(o = a.n()).done;) {
|
|
i = o.value;
|
|
Ve.call(n, i) && We(e, i, n[i])
|
|
}
|
|
} catch (e) {
|
|
a.e(e)
|
|
} finally {
|
|
a.f()
|
|
}
|
|
}
|
|
return e
|
|
}({
|
|
ref: i,
|
|
onClick: u,
|
|
className: (0, Le.A)(qe, "".concat(qe, "-multi"), a),
|
|
style: l
|
|
}, p), v.map((function (e, t) {
|
|
return b.createElement("div", {
|
|
className: (0, Le.A)("".concat(qe, "-multi-line")),
|
|
key: t
|
|
}, e.map((function (e) {
|
|
return e
|
|
})))
|
|
}))))
|
|
}));
|
|
ze.displayName = "BuiMultiLineBallArea";
|
|
var Be = ze,
|
|
Ge = a(1841),
|
|
He = a(5059),
|
|
Je = Fe.A.event,
|
|
Xe = function (e) {
|
|
var t, n = (null == e || null === (t = e.split("?")) || void 0 === t || null === (t = t[1]) || void 0 === t ? void 0 : t.split("&")) || [],
|
|
i = {};
|
|
return n.forEach((function (e) {
|
|
var t = (null == e ? void 0 : e.split("=")) || [],
|
|
n = (0, s.A)(t, 2),
|
|
o = n[0],
|
|
a = n[1];
|
|
o && a && (i[o] = decodeURIComponent(a))
|
|
})), i
|
|
},
|
|
Ke = function (e) {
|
|
var t = e.dataList,
|
|
n = e.className,
|
|
i = e.cityCode,
|
|
o = e.cityName,
|
|
a = function (e, t) {
|
|
var n, i = l(t),
|
|
o = e.schema,
|
|
a = Xe(o),
|
|
r = (0, Ee.jE)({
|
|
context: Fe.A,
|
|
queryParams: (0, E.A)((0, E.A)((0, E.A)({}, a), i), {}, {
|
|
comboChannel: "4",
|
|
dmChannel: (0, He.JV)()
|
|
}),
|
|
getCity: h.KM,
|
|
getPosition: h.E9
|
|
}, !0);
|
|
p().preload({
|
|
categoryPrefetchDataPromise: r
|
|
}), Je.emit("resetTouristCityIdCache"), T.A.navTo(o, (0, E.A)({
|
|
cmsTrackInfo: null == e || null === (n = e.action) || void 0 === n ? void 0 : n.item
|
|
}, i))
|
|
},
|
|
l = function (e) {
|
|
return {
|
|
citycode: i,
|
|
cityname: o,
|
|
index: e + 1,
|
|
_d_index: e + 1
|
|
}
|
|
},
|
|
r = function (e, t) {
|
|
return Array.isArray(e) ? e.some((function (e) {
|
|
return (0, h.PP)(e, t).overLength
|
|
})) : (0, h.PP)(e, t).overLength
|
|
};
|
|
return (0, O.jsx)(S.Ss, {
|
|
className: "vajra-position-container",
|
|
children: (0, O.jsx)(Be, {
|
|
className: (0, u.A)("vajra-position", n),
|
|
multiLine: !0,
|
|
style: {
|
|
"--bui-html-background-color": "transparent"
|
|
},
|
|
children: t.map((function (e, t) {
|
|
var n = function (e) {
|
|
if (Array.isArray(e.subscriptTitleList)) {
|
|
var t = e.subscriptTitleList.filter((function (e) {
|
|
return e
|
|
})).map((function (e) {
|
|
return (0, h.PP)(e, 8, !1).text
|
|
}));
|
|
if (!t.length) return;
|
|
return 1 === t.length ? t[0] : t.slice(0, 2)
|
|
}
|
|
return (0, h.PP)(e.subscriptTitleList, 8, !1).text
|
|
}(e),
|
|
l = "50%";
|
|
return (t + 1) % 5 || (r(n, 10) ? l = "1%" : r(n, 8) ? l = "15%" : r(n, 6) && (l = "36%")), (0, O.jsx)(y.A, {
|
|
className: "bui-ball-area-item log-ball-item",
|
|
dynamicData: (0, E.A)((0, E.A)({}, (null == e ? void 0 : e.action) || {}), {}, {
|
|
citycode: i,
|
|
cityname: o
|
|
}),
|
|
children: (0, O.jsx)(Ge.A, {
|
|
imgUrl: (0, P.zp)({
|
|
url: (null == e ? void 0 : e.pic) || ""
|
|
}),
|
|
size: "medium",
|
|
subTitle: n,
|
|
onClick: function () {
|
|
return a(e, t)
|
|
},
|
|
flagAnimation: "scale",
|
|
style: {
|
|
"--bui-html-flag-background-image": "linear-gradient(270deg, #ff3572 0%, #ff86c3 100%)",
|
|
"--bui-html-flag-left": l
|
|
},
|
|
children: e.title
|
|
})
|
|
}, t)
|
|
}))
|
|
})
|
|
})
|
|
},
|
|
Ze = a(469),
|
|
Qe = a(29),
|
|
$e = a(5517),
|
|
et = (0, $e.A)((function e(t, n) {
|
|
(0, Qe.A)(this, e), (0, c.A)(this, "popStack", void 0), (0, c.A)(this, "data", void 0), (0, c.A)(this, "callback", void 0), (0, c.A)(this, "currentIndex", void 0), this.data = t, this.callback = n, this.popStack = [], this.currentIndex = 0
|
|
}), [{
|
|
key: "start",
|
|
value: function () {
|
|
var e = this;
|
|
return this.popStack.reduce((function (t, n, i) {
|
|
return t.then((function (t) {
|
|
return e.currentIndex = i, n.execute(t, e.callback)
|
|
})).catch((function (e) {}))
|
|
}), Promise.resolve(this.data)).then((function (t) {
|
|
return e.callback(null, t)
|
|
}))
|
|
}
|
|
}, {
|
|
key: "next",
|
|
value: function () {
|
|
this.popStack = this.popStack.slice(this.currentIndex + 1), this.start()
|
|
}
|
|
}, {
|
|
key: "add",
|
|
value: function (e) {
|
|
Array.isArray(e) ? this.popStack = this.popStack.concat(e) : this.popStack.push(e)
|
|
}
|
|
}, {
|
|
key: "destroy",
|
|
value: function () {
|
|
this.popStack.forEach((function (e) {
|
|
"function" == typeof e.destroy && e.destroy()
|
|
})), this.popStack = []
|
|
}
|
|
}]),
|
|
tt = (0, $e.A)((function e(t) {
|
|
var n = this,
|
|
i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [];
|
|
(0, Qe.A)(this, e), (0, c.A)(this, "data", void 0), (0, c.A)(this, "cityCode", void 0), (0, c.A)(this, "context", void 0), (0, c.A)(this, "execute", (function (e, t) {
|
|
return n.context = e, new Promise(function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e(i) {
|
|
var o;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
if (!!!n.data) {
|
|
e.n = 1;
|
|
break
|
|
}
|
|
return o = {
|
|
type: "weixin_home_coupon",
|
|
showTime: Date.now(),
|
|
data: (0, E.A)((0, E.A)({}, n.data), {}, {
|
|
cityCode: n.cityCode
|
|
})
|
|
}, t({}, o), e.a(2);
|
|
case 1:
|
|
i();
|
|
case 2:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
})));
|
|
return function (t) {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}().bind(n))
|
|
})), this.data = i, this.cityCode = t
|
|
})),
|
|
nt = a(3816),
|
|
it = (0, $e.A)((function e(t) {
|
|
var n = this,
|
|
i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [];
|
|
(0, Qe.A)(this, e), (0, c.A)(this, "data", void 0), (0, c.A)(this, "cityCode", void 0), (0, c.A)(this, "context", void 0), (0, c.A)(this, "execute", (function (e, t) {
|
|
return n.context = e, new Promise(function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e(i) {
|
|
var o, a, l;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
if (!(a = !(null === (o = n.data) || void 0 === o || !o.qrCode))) {
|
|
e.n = 1;
|
|
break
|
|
}
|
|
return l = {
|
|
type: "weixin_home_guide",
|
|
data: (0, E.A)((0, E.A)({}, n.data), {}, {
|
|
cityCode: n.cityCode,
|
|
isShow: a
|
|
})
|
|
}, t(l, n.context), e.a(2);
|
|
case 1:
|
|
i(n.context);
|
|
case 2:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
})));
|
|
return function (t) {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}().bind(n))
|
|
})), this.data = i, this.cityCode = t
|
|
}), [{
|
|
key: "canPop",
|
|
value: function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e() {
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.p = e.n) {
|
|
case 0:
|
|
return e.p = 0, e.n = 1, nt.A.isLogin();
|
|
case 1:
|
|
return e.a(2, !1);
|
|
case 2:
|
|
return e.p = 2, e.v, e.a(2, !0)
|
|
}
|
|
}), e, null, [
|
|
[0, 2]
|
|
])
|
|
})));
|
|
return function () {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}()
|
|
}]),
|
|
ot = (0, $e.A)((function e(t) {
|
|
var n = this,
|
|
i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [];
|
|
(0, Qe.A)(this, e), (0, c.A)(this, "data", void 0), (0, c.A)(this, "cityCode", void 0), (0, c.A)(this, "context", void 0), (0, c.A)(this, "execute", (function (e, t) {
|
|
return n.context = e, new Promise(function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e(i) {
|
|
var o, a, l;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
if (!(a = !!n.data && (null === (o = n.data) || void 0 === o || null === (o = o.dataList) || void 0 === o ? void 0 : o.length) > 0)) {
|
|
e.n = 1;
|
|
break
|
|
}
|
|
return l = {
|
|
type: "dm_home_nearby_item",
|
|
showTime: Date.now(),
|
|
data: (0, E.A)((0, E.A)({}, n.data), {}, {
|
|
cityCode: n.cityCode,
|
|
isShow: a
|
|
})
|
|
}, t(l, n.context), e.a(2);
|
|
case 1:
|
|
i(n.context);
|
|
case 2:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
})));
|
|
return function (t) {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}().bind(n))
|
|
})), this.data = i, this.cityCode = t
|
|
}), [{
|
|
key: "canPop",
|
|
value: function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e() {
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.p = e.n) {
|
|
case 0:
|
|
return e.p = 0, e.n = 1, nt.A.isLogin();
|
|
case 1:
|
|
return e.a(2, !1);
|
|
case 2:
|
|
return e.p = 2, e.v, e.a(2, !0)
|
|
}
|
|
}), e, null, [
|
|
[0, 2]
|
|
])
|
|
})));
|
|
return function () {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}()
|
|
}]),
|
|
at = (0, $e.A)((function e(t) {
|
|
var n = this,
|
|
i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [];
|
|
(0, Qe.A)(this, e), (0, c.A)(this, "data", void 0), (0, c.A)(this, "cityCode", void 0), (0, c.A)(this, "context", void 0), (0, c.A)(this, "execute", (function (e, t) {
|
|
return n.context = e, new Promise(function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e(i) {
|
|
var o, a, l;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
if (!(a = !!n.data && (null === (o = n.data) || void 0 === o || null === (o = o.mainArea) || void 0 === o ? void 0 : o.length) > 0)) {
|
|
e.n = 1;
|
|
break
|
|
}
|
|
return l = {
|
|
type: "weixin_home_newperson_guide_trend",
|
|
showTime: Date.now(),
|
|
data: (0, E.A)((0, E.A)({}, n.data), {}, {
|
|
cityCode: n.cityCode,
|
|
isShow: a
|
|
})
|
|
}, t(l, n.context), e.a(2);
|
|
case 1:
|
|
i(n.context);
|
|
case 2:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
})));
|
|
return function (t) {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}().bind(n))
|
|
})), this.data = i, this.cityCode = t
|
|
}), [{
|
|
key: "canPop",
|
|
value: function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e() {
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.p = e.n) {
|
|
case 0:
|
|
return e.p = 0, e.n = 1, nt.A.isLogin();
|
|
case 1:
|
|
return e.a(2, !1);
|
|
case 2:
|
|
return e.p = 2, e.v, e.a(2, !0)
|
|
}
|
|
}), e, null, [
|
|
[0, 2]
|
|
])
|
|
})));
|
|
return function () {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}()
|
|
}]),
|
|
lt = (0, $e.A)((function e(t) {
|
|
var n = this,
|
|
i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [];
|
|
(0, Qe.A)(this, e), (0, c.A)(this, "data", void 0), (0, c.A)(this, "cityCode", void 0), (0, c.A)(this, "context", void 0), (0, c.A)(this, "execute", (function (e, t) {
|
|
return n.context = e, new Promise(function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e(t) {
|
|
var i;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
!!n.data && (i = {
|
|
type: "weixin_home_coupon_float",
|
|
showTime: Date.now(),
|
|
data: (0, E.A)((0, E.A)({}, n.data), {}, {
|
|
cityCode: n.cityCode
|
|
})
|
|
}, t(i));
|
|
case 1:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
})));
|
|
return function (t) {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}().bind(n))
|
|
})), this.data = i, this.cityCode = t
|
|
})),
|
|
rt = (0, $e.A)((function e(t) {
|
|
var n = this,
|
|
i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [];
|
|
(0, Qe.A)(this, e), (0, c.A)(this, "data", void 0), (0, c.A)(this, "cityCode", void 0), (0, c.A)(this, "context", void 0), (0, c.A)(this, "execute", (function (e, t) {
|
|
return n.context = e, new Promise(function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e(i) {
|
|
var o;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
if (!n.data) {
|
|
e.n = 1;
|
|
break
|
|
}
|
|
return o = {
|
|
type: "want_guide",
|
|
showTime: Date.now(),
|
|
data: {
|
|
result: n.data,
|
|
cityCode: n.cityCode
|
|
}
|
|
}, t(o, n.context), e.a(2);
|
|
case 1:
|
|
i(n.context);
|
|
case 2:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
})));
|
|
return function (t) {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}().bind(n))
|
|
})), this.data = i, this.cityCode = t
|
|
}), [{
|
|
key: "canPop",
|
|
value: function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e() {
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.p = e.n) {
|
|
case 0:
|
|
return e.p = 0, e.n = 1, nt.A.isLogin();
|
|
case 1:
|
|
return e.a(2, !1);
|
|
case 2:
|
|
return e.p = 2, e.v, e.a(2, !0)
|
|
}
|
|
}), e, null, [
|
|
[0, 2]
|
|
])
|
|
})));
|
|
return function () {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}()
|
|
}]),
|
|
ct = function () {},
|
|
st = function (e, t, n) {
|
|
var i, o = (null == e ? void 0 : e.show) || [],
|
|
a = {
|
|
dm_home_nearby_item: function (e) {
|
|
return new ot(t, e)
|
|
},
|
|
weixin_home_guide: function (e) {
|
|
return new it(t, e)
|
|
},
|
|
weixin_home_coupon: function (e) {
|
|
return new tt(t, e)
|
|
},
|
|
weixin_home_newperson_guide_trend: function (e) {
|
|
return new at(t, e)
|
|
},
|
|
weixin_home_coupon_float: function (e) {
|
|
return new lt(t, e)
|
|
},
|
|
want_guide: function (e) {
|
|
return new rt(t, e)
|
|
}
|
|
},
|
|
l = (0, Ze.A)(o);
|
|
try {
|
|
for (l.s(); !(i = l.n()).done;) {
|
|
var r, c = i.value;
|
|
a[c.eventType] && n.add(a[c.eventType]((0, E.A)((0, E.A)({}, null == c || null === (r = c.item) || void 0 === r ? void 0 : r.value), {}, {
|
|
pkId: null == c ? void 0 : c.pkId,
|
|
needReport: null == c ? void 0 : c.needReport,
|
|
serverTime: Number(null == e ? void 0 : e.serverTime)
|
|
})))
|
|
}
|
|
} catch (e) {
|
|
l.e(e)
|
|
} finally {
|
|
l.f()
|
|
}
|
|
};
|
|
var ut = a(24);
|
|
|
|
function dt() {
|
|
var e = (0, b.useState)(),
|
|
t = (0, s.A)(e, 2),
|
|
n = t[0],
|
|
i = t[1],
|
|
o = (0, b.useState)(),
|
|
a = (0, s.A)(o, 2),
|
|
l = a[0],
|
|
r = a[1],
|
|
c = function (e, t) {
|
|
! function (e) {
|
|
var t = e.cityCode,
|
|
n = e.advertises,
|
|
i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : ct;
|
|
new Promise((function (e) {
|
|
var o = new et({}, (function () {
|
|
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
|
|
n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : void 0;
|
|
i(t, n), e()
|
|
}));
|
|
o.popStack = [], st(n, t, o), o.start()
|
|
})).catch((function (e) {}))
|
|
}({
|
|
cityCode: e,
|
|
advertises: t
|
|
}, (function (e, t) {
|
|
i(e), r(t)
|
|
}))
|
|
};
|
|
return {
|
|
popupModule: n,
|
|
tipsModule: l,
|
|
handlePopupFlow: function (e) {
|
|
(function (e) {
|
|
return ut.M.getPopUp((0, E.A)({}, e)).then((function (e) {
|
|
return (0, s.A)(e, 2)[1]
|
|
}))
|
|
})({
|
|
comboChannel: "4",
|
|
comboCityId: "".concat(e),
|
|
sceneType: "weixin_home",
|
|
popVersion: "1.1",
|
|
args: JSON.stringify({
|
|
dmChannel: (0, He.JV)()
|
|
})
|
|
}).then(function () {
|
|
var t = (0, Y.A)((0, R.A)().m((function t(n) {
|
|
var i, o, a, l, r, s, u, d, p, m, v, h, f, g, y;
|
|
return (0, R.A)().w((function (t) {
|
|
for (;;) switch (t.n) {
|
|
case 0:
|
|
if (s = ((r = n) || {}).show, -1 === (u = void 0 === s ? [] : s).findIndex((function (e) {
|
|
return "weixin_home_coupon" === e.eventType
|
|
}))) {
|
|
t.n = 1;
|
|
break
|
|
}
|
|
return c(e, r), t.a(2);
|
|
case 1:
|
|
return d = {
|
|
cityId: e,
|
|
queryType: "1",
|
|
dmChannel: (0, He.JV)()
|
|
}, t.n = 2, ut.M.getHomeFloat((0, E.A)({}, d));
|
|
case 2:
|
|
if (p = t.v, m = p[1], v = [], ((null == m || null === (i = m.item) || void 0 === i ? void 0 : i.couponList) || []).forEach((function (e) {
|
|
return v = v.concat(null == e ? void 0 : e.couponDetail)
|
|
})), h = (null == m || null === (o = m.item) || void 0 === o ? void 0 : o.apply) && -1 !== v.findIndex((function (e) {
|
|
return 0 === (null == e ? void 0 : e.status)
|
|
})), f = !(null != m && null !== (a = m.item) && void 0 !== a && a.apply) && (null == m || null === (l = m.item) || void 0 === l ? void 0 : l.countDown) > Date.now(), null != m && m.item && (h || f) && (u.unshift({
|
|
eventType: "weixin_home_coupon_float",
|
|
item: {
|
|
value: (0, E.A)((0, E.A)({}, null == m ? void 0 : m.item), {}, {
|
|
isFloat: !0
|
|
})
|
|
},
|
|
needReport: !0,
|
|
pkId: "",
|
|
sceneType: "weixin_home"
|
|
}), r.show = u), null == u || !u.length) {
|
|
t.n = 3;
|
|
break
|
|
}
|
|
return c(e, r), t.a(2);
|
|
case 3:
|
|
return t.n = 4, ut.M.getWantGuide({
|
|
cityId: e,
|
|
type: Q,
|
|
subType: $,
|
|
pageSize: 1,
|
|
pageNo: 1
|
|
});
|
|
case 4:
|
|
g = t.v, y = g[1], u.push({
|
|
eventType: "want_guide",
|
|
item: {
|
|
value: y
|
|
}
|
|
}), r.show = u, c(e, r);
|
|
case 5:
|
|
return t.a(2)
|
|
}
|
|
}), t)
|
|
})));
|
|
return function (e) {
|
|
return t.apply(this, arguments)
|
|
}
|
|
}())
|
|
}
|
|
}
|
|
}
|
|
var pt = function (e) {
|
|
var t = (e || {}).cityId,
|
|
n = dt(),
|
|
i = n.popupModule,
|
|
o = void 0 === i ? {} : i,
|
|
a = n.tipsModule,
|
|
l = void 0 === a ? {} : a,
|
|
r = n.handlePopupFlow,
|
|
c = (0, b.useState)(),
|
|
u = (0, s.A)(c, 2),
|
|
d = u[0],
|
|
m = void 0 === d ? {} : d,
|
|
v = u[1];
|
|
return (0, b.useEffect)((function () {
|
|
p().getSetting({
|
|
success: function (e) {
|
|
var n;
|
|
void 0 !== t && void 0 !== (null === (n = e.authSetting) || void 0 === n ? void 0 : n["scope.userLocation"]) && r(t)
|
|
}
|
|
})
|
|
}), [t]), (0, b.useEffect)((function () {
|
|
if ("want_guide" === (null == o ? void 0 : o.type)) {
|
|
var e, t = (((null == o || null === (e = o.data) || void 0 === e ? void 0 : e.result) || {}).items || [])[0] || {},
|
|
n = t.tipDesc,
|
|
i = t.verticalPic,
|
|
a = t.id,
|
|
l = "home_want_guide_item_".concat(a),
|
|
r = "home_want_guide_today",
|
|
c = (0, h.Yq)(new Date, "YYYY-MM-DD"),
|
|
s = p().getStorageSync(l),
|
|
u = p().getStorageSync(r) === c;
|
|
n && (!u && !s) ? (v({
|
|
id: a,
|
|
tipDesc: "".concat((0, h.PP)(n, 30).text, "在这哦"),
|
|
projectPic: (0, P.zp)({
|
|
url: i,
|
|
width: 300
|
|
})
|
|
}), p().setStorageSync(l, 1), p().setStorageSync(r, c)) : v(null)
|
|
}
|
|
}), [o]), {
|
|
tipsInfo: m,
|
|
popupModule: o,
|
|
tipsModule: l
|
|
}
|
|
},
|
|
mt = a(6924),
|
|
vt = a(1942),
|
|
ht = a(2499),
|
|
ft = a(8273),
|
|
gt = a(3323),
|
|
yt = function (e) {
|
|
var t = e.sourceData,
|
|
n = e.apply,
|
|
i = e.closeDetail,
|
|
o = void 0 === i ? function () {} : i,
|
|
a = e.oneClickCollection,
|
|
l = void 0 === a ? function () {} : a,
|
|
r = function (e, t) {
|
|
var n = (null == t ? void 0 : t.length) > 3 ? "more" : null == t ? void 0 : t.length;
|
|
return (0, O.jsxs)("div", {
|
|
className: "more" === n ? "item-scroll" : "item-detail-item",
|
|
style: {
|
|
backgroundImage: "url(".concat({
|
|
1: "https://gw.alicdn.com/imgextra/i2/O1CN01igKV4u28KfQFvBZ9o_!!6000000007914-2-tps-963-240.png",
|
|
2: "https://gw.alicdn.com/imgextra/i3/O1CN01Zb73mg1H0MDxQsMal_!!6000000000695-2-tps-468-240.png",
|
|
3: "https://gw.alicdn.com/imgextra/i3/O1CN01k5dG2s270E8C32h0g_!!6000000007734-2-tps-297-240.png",
|
|
more: "https://gw.alicdn.com/imgextra/i3/O1CN01k5dG2s270E8C32h0g_!!6000000007734-2-tps-297-240.png"
|
|
} [n], ")"),
|
|
backgroundRepeat: "no-repeat",
|
|
backgroundSize: "100% 100%"
|
|
},
|
|
children: [(0, O.jsxs)("div", {
|
|
className: "ticket-item-content",
|
|
children: [(0, O.jsx)("span", {
|
|
className: "ticket-item-content-symbol",
|
|
children: "¥"
|
|
}), (0, O.jsx)("span", {
|
|
className: "ticket-item-content-price-num",
|
|
children: null == e ? void 0 : e.value
|
|
})]
|
|
}), (0, O.jsx)("div", {
|
|
className: "ticket-item-detail",
|
|
children: (0, O.jsx)("span", {
|
|
className: "ticket-item-detail-text",
|
|
children: null == e ? void 0 : e.tag
|
|
})
|
|
}), (0, O.jsx)(vt.A, {
|
|
lazy: !0,
|
|
className: "ticket-item-status",
|
|
width: "30px",
|
|
fit: "widthFix",
|
|
src: {
|
|
0: "https://gw.alicdn.com/imgextra/i1/O1CN01GGdxVK1bLgzPoZcUV_!!6000000003449-2-tps-87-87.png",
|
|
success: "https://gw.alicdn.com/imgextra/i1/O1CN01GGdxVK1bLgzPoZcUV_!!6000000003449-2-tps-87-87.png",
|
|
fail: "https://gw.alicdn.com/imgextra/i2/O1CN01EueRtf22gkpSd2Dyy_!!6000000007150-2-tps-87-87.png",
|
|
"-1": "https://gw.alicdn.com/imgextra/i4/O1CN01x2gaXK1ujUGdzJ1qR_!!6000000006073-2-tps-87-87.png",
|
|
99: "https://gw.alicdn.com/imgextra/i3/O1CN01ecHei51gXD1tsW9NS_!!6000000004151-2-tps-87-87.png"
|
|
} [(null == e ? void 0 : e.luckyDrawStatus) || (null == e ? void 0 : e.status)]
|
|
})]
|
|
})
|
|
};
|
|
return (0, O.jsxs)("div", {
|
|
className: "newcomer-ticket",
|
|
children: [(0, O.jsx)(vt.A, {
|
|
lazy: !0,
|
|
className: "top-img",
|
|
width: "100%",
|
|
fit: "widthFix",
|
|
onClick: function () {
|
|
T.A.navTo(null == t ? void 0 : t.backGroundJumpUrl, {
|
|
spm: "".concat(m.A.spmA, ".home.popup.top")
|
|
})
|
|
},
|
|
src: (0, P.zp)({
|
|
url: "https://gw.alicdn.com/imgextra/i2/O1CN011VuAWT1VKQCF8p73N_!!6000000002634-2-tps-1125-540.png",
|
|
width: 960,
|
|
ignorePng: !1
|
|
})
|
|
}), (0, O.jsx)(y.A, {
|
|
Component: vt.A,
|
|
onClick: o,
|
|
className: "newcomer-ticket-close-icon",
|
|
dynamicData: {
|
|
dispatchId: null == t ? void 0 : t.activityId
|
|
},
|
|
alt: "",
|
|
src: "https://gw.alicdn.com/imgextra/i4/O1CN01yrWU7A27N7w1iuCFE_!!6000000007784-2-tps-69-69.png"
|
|
}), (0, O.jsx)(ht.A, {
|
|
scrollY: !0,
|
|
style: {
|
|
backgroundColor: "#FFF5F5",
|
|
maxHeight: "420px",
|
|
paddingBottom: "12px"
|
|
},
|
|
children: n ? (0, O.jsx)(y.A, {
|
|
className: "ticket-detail-list",
|
|
children: ((null == t ? void 0 : t.couponList) || []).map((function (e, n) {
|
|
return (0, O.jsxs)("div", {
|
|
className: "ticket-detail-list-item",
|
|
children: [(0, O.jsxs)("div", {
|
|
className: "item-top",
|
|
children: [(0, O.jsxs)("div", {
|
|
className: "detail-price",
|
|
children: [(0, O.jsx)("span", {
|
|
className: "symbol",
|
|
children: "¥"
|
|
}), (0, O.jsx)("span", {
|
|
children: null == e ? void 0 : e.totalAmount
|
|
})]
|
|
}), (0, O.jsxs)("div", {
|
|
className: "detail-content",
|
|
children: [(0, O.jsxs)("div", {
|
|
className: "detail-content-title",
|
|
children: [(0, O.jsx)(V.A, {
|
|
className: "detail-tag",
|
|
variant: "contained",
|
|
color: "business" === (null == e ? void 0 : e.couponType) ? "warning" : "primary",
|
|
children: null == e ? void 0 : e.subScript
|
|
}), null == e ? void 0 : e.title]
|
|
}), (0, O.jsx)("div", {
|
|
className: "detail-type",
|
|
children: null == e ? void 0 : e.subTitle
|
|
})]
|
|
}), (0, O.jsx)(y.A, {
|
|
Component: de.A,
|
|
dynamicData: {
|
|
dispatchId: null == t ? void 0 : t.activityId
|
|
},
|
|
color: "primary",
|
|
className: "newcomer-ticket-detail-btn",
|
|
onClick: function () {
|
|
T.A.navTo(e.jumpUrl, {
|
|
spm: "".concat(m.A.spmA, ".home.popup.ticket_").concat(n)
|
|
})
|
|
},
|
|
children: "去使用"
|
|
})]
|
|
}), (0, O.jsx)(vt.A, {
|
|
lazy: !0,
|
|
className: "item-line",
|
|
width: "100%",
|
|
fit: "widthFix",
|
|
src: "https://gw.alicdn.com/imgextra/i2/O1CN01HxojVa1XLSK4Akw3f_!!6000000002907-2-tps-1053-27.png"
|
|
}), (0, O.jsx)("div", {
|
|
className: "item-bottom",
|
|
children: ((null == e ? void 0 : e.couponDetail) || []).length <= 3 ? (0, O.jsx)("div", {
|
|
className: "item-bottom-no-scroll",
|
|
children: ((null == e ? void 0 : e.couponDetail) || []).map((function (t) {
|
|
return r(t, (null == e ? void 0 : e.couponDetail) || [])
|
|
}))
|
|
}) : (0, O.jsx)(ht.A, {
|
|
scrollX: !0,
|
|
className: "item-bottom-scroll",
|
|
children: (0, O.jsx)(gt.A, {
|
|
direction: "row",
|
|
spacing: "8px",
|
|
flexWrap: "nowrap",
|
|
style: {
|
|
width: "max-content"
|
|
},
|
|
children: ((null == e ? void 0 : e.couponDetail) || []).map((function (t) {
|
|
return r(t, (null == e ? void 0 : e.couponDetail) || [])
|
|
}))
|
|
})
|
|
})
|
|
})]
|
|
}, null == e ? void 0 : e.lotteryMixId)
|
|
}))
|
|
}) : (0, O.jsx)("div", {
|
|
className: "ticket-list",
|
|
children: ((null == t ? void 0 : t.couponList) || []).map((function (e) {
|
|
return (0, O.jsx)(ft.A, {
|
|
className: "ticket-item",
|
|
children: (0, O.jsxs)("div", {
|
|
style: {
|
|
display: "flex",
|
|
alignItems: "center"
|
|
},
|
|
children: [(0, O.jsxs)("div", {
|
|
className: "price",
|
|
children: [(0, O.jsx)("span", {
|
|
className: "symbol",
|
|
children: "¥"
|
|
}), (0, O.jsx)("span", {
|
|
children: null == e ? void 0 : e.totalAmount
|
|
})]
|
|
}), (0, O.jsxs)("div", {
|
|
style: {
|
|
flex: 1
|
|
},
|
|
children: [(0, O.jsxs)("div", {
|
|
className: "ticket-title",
|
|
children: [(0, O.jsx)(V.A, {
|
|
className: "ticket-tag",
|
|
variant: "contained",
|
|
color: "business" === (null == e ? void 0 : e.couponType) ? "warning" : "primary",
|
|
children: null == e ? void 0 : e.subScript
|
|
}), null == e ? void 0 : e.title]
|
|
}), (0, O.jsx)("div", {
|
|
className: "ticket-type",
|
|
children: null == e ? void 0 : e.subTitle
|
|
})]
|
|
})]
|
|
})
|
|
}, null == e ? void 0 : e.couponType)
|
|
}))
|
|
})
|
|
}), !n && (0, O.jsx)("div", {
|
|
className: "bottom-box",
|
|
children: (0, O.jsx)(y.A, {
|
|
className: "vouchers-popup-bottom-btn",
|
|
dynamicData: {
|
|
dispatchId: null == t ? void 0 : t.activityId
|
|
},
|
|
onClick: function () {
|
|
l()
|
|
}
|
|
})
|
|
})]
|
|
})
|
|
},
|
|
xt = a(3438),
|
|
At = function (e) {
|
|
var t = e.style,
|
|
n = e.isApply,
|
|
i = e.isFold,
|
|
o = e.sourceData,
|
|
a = void 0 === o ? {} : o,
|
|
l = e.countDownChange,
|
|
r = void 0 === l ? function () {} : l,
|
|
c = e.openNewcomerTicket,
|
|
u = void 0 === c ? function () {} : c,
|
|
d = e.closePop,
|
|
p = void 0 === d ? function () {} : d,
|
|
m = (0, b.useState)(0),
|
|
v = (0, s.A)(m, 2),
|
|
h = v[0],
|
|
f = v[1],
|
|
g = (0, b.useState)(Date.now()),
|
|
x = (0, s.A)(g, 2),
|
|
A = x[0],
|
|
w = x[1],
|
|
j = (0, b.useState)(),
|
|
k = (0, s.A)(j, 2),
|
|
N = k[0],
|
|
S = k[1];
|
|
return (0, b.useEffect)((function () {
|
|
! function () {
|
|
if (n) {
|
|
var e, t, i, o = {};
|
|
null == a || a.couponList.some((function (e) {
|
|
var t = e.couponDetail.filter((function (e) {
|
|
return !(null == e || !e.code) && 0 === (null == e ? void 0 : e.status)
|
|
}));
|
|
if (t.sort((function (e, t) {
|
|
var n = null != a && a.isFloat ? "expireTime" : "gmtExpireTime";
|
|
return e[n] - t[n]
|
|
})), -1 !== t.findIndex((function (e) {
|
|
return 0 === Number(e.status)
|
|
}))) return o = t[t.findIndex((function (e) {
|
|
return 0 === e.status
|
|
}))], !0
|
|
}));
|
|
var l;
|
|
l = parseFloat(Number((null === (e = o) || void 0 === e ? void 0 : e.value) || 0).toFixed(2)), f(l), S((null != a && a.isFloat ? null === (t = o) || void 0 === t ? void 0 : t.expireTime : null === (i = o) || void 0 === i ? void 0 : i.gmtExpireTime) || Date.now()), w(a.serverTime || Date.now())
|
|
} else {
|
|
var r, c = 0;
|
|
null === (r = (null == a ? void 0 : a.couponList) || []) || void 0 === r || r.map((function (e) {
|
|
c += Number(null == e ? void 0 : e.totalAmount)
|
|
})), f(parseFloat(c.toFixed(2))), null != a && a.isFloat ? S((null == a ? void 0 : a.countDown) || Date.now()) : S((null == a ? void 0 : a.effectiveLimit) || Date.now()), w((null == a ? void 0 : a.serverTime) || Date.now())
|
|
}
|
|
}()
|
|
}), [a, i, n]), (0, O.jsxs)(y.A, {
|
|
onClick: u,
|
|
dynamicData: {
|
|
dispatchId: null == a ? void 0 : a.activityId
|
|
},
|
|
className: "newcomer-ticket-tips",
|
|
style: (0, E.A)({}, t),
|
|
children: [(0, O.jsxs)("div", {
|
|
className: "newcomer-ticket-tips-content",
|
|
children: [(0, O.jsxs)("div", {
|
|
className: "newcomer-ticket-tips-content-top",
|
|
children: [(0, O.jsx)("span", {
|
|
className: "newcomer-ticket-tips-content-top-symbol",
|
|
children: "¥"
|
|
}), (0, O.jsx)("span", {
|
|
className: "newcomer-ticket-tips-content-top-num",
|
|
children: h
|
|
}), (0, O.jsx)("span", {
|
|
className: "newcomer-ticket-tips-content-top-text",
|
|
children: "优惠券"
|
|
}), !n && !(null != a && a.isFloat) && (0, O.jsx)(xt.A, {
|
|
remainingTime: N,
|
|
onFinish: function () {
|
|
r(), i && p()
|
|
},
|
|
renderContent: function (e) {
|
|
var t = e.days,
|
|
n = e.hoursWithDays,
|
|
i = e.minutes,
|
|
o = e.seconds;
|
|
return (0, O.jsx)("span", {
|
|
className: "newcomer-ticket-tips-content-top-countdown",
|
|
children: "仅限".concat(Number(t), "天").concat(n, ":").concat(i, ":").concat(o, "\n 内领取哦")
|
|
})
|
|
}
|
|
}), (n || (null == a ? void 0 : a.isFloat)) && (0, O.jsx)(xt.A, {
|
|
serverTimestamp: A,
|
|
endTimestamp: N,
|
|
onFinish: function () {
|
|
r(), i && p()
|
|
},
|
|
renderContent: function (e) {
|
|
var t = e.days,
|
|
i = e.hoursWithDays,
|
|
o = e.minutes,
|
|
a = e.seconds;
|
|
return (0, O.jsx)("span", {
|
|
className: "newcomer-ticket-tips-content-top-countdown",
|
|
children: n ? "".concat(Number(t), "天").concat(i, ":").concat(o, ":").concat(a, "\n 后将失效哦") : "仅限".concat(Number(t), "天").concat(i, ":").concat(o, ":").concat(a, "\n 内领取哦")
|
|
})
|
|
}
|
|
})]
|
|
}), (0, O.jsx)("div", {
|
|
className: "newcomer-ticket-tips-content-bottom",
|
|
children: "海量精彩演出可用"
|
|
})]
|
|
}), !(null != t && t.height) && (0, O.jsx)(vt.A, {
|
|
lazy: !0,
|
|
className: "tip-red-icon",
|
|
width: "55px",
|
|
height: "55px",
|
|
src: "https://gw.alicdn.com/imgextra/i3/O1CN01LEcO7k1tnmMMygs1V_!!6000000005947-2-tps-165-165.png"
|
|
}), (0, O.jsx)(vt.A, {
|
|
lazy: !0,
|
|
className: "tip-red-open-icon",
|
|
width: "12px",
|
|
height: "12px",
|
|
src: "https://gw.alicdn.com/imgextra/i2/O1CN01A1lpPx1PxueTxiLri_!!6000000001908-2-tps-26-33.png"
|
|
})]
|
|
})
|
|
},
|
|
wt = (0, b.memo)((function (e) {
|
|
var t, n = e.cityId,
|
|
i = e.tipsPopupData,
|
|
o = (0, b.useState)(!1),
|
|
a = (0, s.A)(o, 2),
|
|
l = a[0],
|
|
r = a[1],
|
|
c = (0, b.useState)(!1),
|
|
m = (0, s.A)(c, 2),
|
|
v = m[0],
|
|
h = m[1],
|
|
f = (0, b.useState)(),
|
|
g = (0, s.A)(f, 2),
|
|
y = g[0],
|
|
x = g[1],
|
|
A = (0, b.useState)(!1),
|
|
w = (0, s.A)(A, 2),
|
|
j = w[0],
|
|
k = w[1],
|
|
N = (0, b.useState)(!1),
|
|
S = (0, s.A)(N, 2),
|
|
C = S[0],
|
|
I = S[1],
|
|
D = (0, b.useState)(!1),
|
|
_ = (0, s.A)(D, 2),
|
|
T = _[0],
|
|
P = _[1];
|
|
(0, b.useEffect)((function () {
|
|
var e, t;
|
|
i && null != i && i.showTime && (null != i && null !== (e = i.data) && void 0 !== e && e.isFloat ? h(!0) : (P(!0), h(!1), F()), x(null == i ? void 0 : i.data), k(null == i || null === (t = i.data) || void 0 === t ? void 0 : t.apply), r(!0))
|
|
}), [i]);
|
|
var F = function () {
|
|
var e;
|
|
ut.M.reportPopup({
|
|
comboDamaiCityId: n,
|
|
pkId: null == i || null === (e = i.data) || void 0 === e ? void 0 : e.pkId,
|
|
comboChannel: "4"
|
|
})
|
|
},
|
|
L = function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e() {
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.p = e.n) {
|
|
case 0:
|
|
return e.p = 0, e.n = 1, nt.A.isLogin();
|
|
case 1:
|
|
e.v || r(!1), e.n = 3;
|
|
break;
|
|
case 2:
|
|
e.p = 2, e.v;
|
|
case 3:
|
|
return e.a(2)
|
|
}
|
|
}), e, null, [
|
|
[0, 2]
|
|
])
|
|
})));
|
|
return function () {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}();
|
|
return (0, d.useDidShow)((function () {
|
|
L()
|
|
})), (0, O.jsxs)(mt.A, {
|
|
className: (0, u.A)("vouchers-popup-drawer"),
|
|
style: {
|
|
height: "fit-content"
|
|
},
|
|
disablePortal: !0,
|
|
hideBackdrop: v,
|
|
open: l,
|
|
onClose: function () {
|
|
h(!v)
|
|
},
|
|
children: [!v && (0, O.jsx)(yt, {
|
|
sourceData: y,
|
|
apply: j,
|
|
oneClickCollection: function () {
|
|
var e = {
|
|
lotteryMixIds: null == y ? void 0 : y.lotteryMixIds,
|
|
platform: 42,
|
|
bizId: null == y ? void 0 : y.activityId,
|
|
bizType: 13,
|
|
cityCode: n
|
|
};
|
|
ut.M.getBatchLotteryDraw((0, E.A)({}, e)).then((function (e) {
|
|
var t, i = (0, s.A)(e, 2)[1];
|
|
if ("fail" === (null === (t = i.returnValue) || void 0 === t ? void 0 : t.batchStatus)) p().showToast({
|
|
title: "领取失败,请重新试试吧~",
|
|
icon: "none"
|
|
});
|
|
else {
|
|
var o = ((null == y ? void 0 : y.couponList) || []).map((function (e) {
|
|
var t = e;
|
|
return t.couponDetail = ((null == t ? void 0 : t.couponDetail) || []).map((function (e) {
|
|
var t, n = null == e ? void 0 : e.lotteryMixId,
|
|
o = null === (t = i.returnValue) || void 0 === t || null === (t = t.drawResults.filter((function (e) {
|
|
return e.lotteryMixId === n
|
|
}))) || void 0 === t ? void 0 : t[0];
|
|
return null != o && o.rewards ? (0, E.A)((0, E.A)((0, E.A)({}, null == o ? void 0 : o.rewards[0]), e), {}, {
|
|
luckyDrawStatus: "success",
|
|
status: 0,
|
|
serverTimestamp: null == i ? void 0 : i.timestamp
|
|
}) : (0, E.A)((0, E.A)({}, e), {}, {
|
|
luckyDrawStatus: "fail",
|
|
serverTimestamp: null == i ? void 0 : i.timestamp
|
|
})
|
|
})), t.couponDetail.sort((function (e, t) {
|
|
return "fail" === e.luckyDrawStatus && "fail" !== t.luckyDrawStatus ? 1 : "fail" === t.luckyDrawStatus && "fail" !== e.luckyDrawStatus ? -1 : t.value - e.value
|
|
})), t
|
|
}));
|
|
x((0, E.A)((0, E.A)({}, y), {}, {
|
|
couponList: o,
|
|
isFloat: !1,
|
|
serverTime: (null == i ? void 0 : i.timestamp) || Date.now()
|
|
})), I(!1), k(!0), P(!1), ut.M.floatReport({
|
|
comboDamaiCityId: n,
|
|
activityId: null == y ? void 0 : y.activityId,
|
|
lotteryMixIds: null == y ? void 0 : y.lotteryMixIds,
|
|
couponBatchTime: null == y ? void 0 : y.couponBatchTime
|
|
}).then((function (e) {}))
|
|
}
|
|
}))
|
|
},
|
|
closeDetail: function () {
|
|
T && F(), C ? r(!1) : h(!v)
|
|
}
|
|
}), (0, O.jsx)(At, {
|
|
sourceData: y,
|
|
cityId: null == i || null === (t = i.data) || void 0 === t ? void 0 : t.cityCode,
|
|
effectiveLimit: null == y ? void 0 : y.effectiveLimit,
|
|
style: v ? {} : {
|
|
height: "0px"
|
|
},
|
|
isApply: j,
|
|
isFold: v,
|
|
countDownChange: function () {
|
|
I(!C)
|
|
},
|
|
closePop: function () {
|
|
r(!1)
|
|
},
|
|
openNewcomerTicket: function () {
|
|
h(!v)
|
|
}
|
|
})]
|
|
})
|
|
})),
|
|
jt = a(7266),
|
|
kt = function (e) {
|
|
var t = e.pic,
|
|
n = void 0 === t ? "https://gw.alicdn.com/imgextra/i4/O1CN01oDgNow1aufcb9xYtO_!!6000000003390-2-tps-1125-540.png" : t,
|
|
i = e.backGroundColor,
|
|
o = void 0 === i ? "#DCD8FF" : i,
|
|
a = e.schema,
|
|
l = e.closeIcon,
|
|
r = void 0 === l ? "https://gw.alicdn.com/imgextra/i4/O1CN01yrWU7A27N7w1iuCFE_!!6000000007784-2-tps-69-69.png" : l,
|
|
c = e.dataList,
|
|
s = void 0 === c ? [] : c,
|
|
u = e.onClose;
|
|
return s && 0 !== s.length ? (0, O.jsxs)("div", {
|
|
className: "project-recommend-container",
|
|
children: [(0, O.jsxs)("div", {
|
|
className: "header-wrapper",
|
|
children: [(0, O.jsx)(vt.A, {
|
|
className: "header-img",
|
|
src: n
|
|
}), (0, O.jsx)(vt.A, {
|
|
className: "close-btn",
|
|
alt: "",
|
|
src: r,
|
|
onClick: u
|
|
})]
|
|
}), (0, O.jsx)("div", {
|
|
className: "project-list-out-wrapper",
|
|
children: (0, O.jsx)(y.A, {
|
|
Component: ht.A,
|
|
scrollY: !0,
|
|
className: "project-list-wrapper",
|
|
style: {
|
|
backgroundColor: o
|
|
},
|
|
children: null == s ? void 0 : s.map((function (e, t) {
|
|
return (0, O.jsx)(w.A, {
|
|
dynamicData: {
|
|
item_id: e.id
|
|
},
|
|
type: "shop",
|
|
data: (0, jt.G)(e),
|
|
onClick: function () {
|
|
! function (e) {
|
|
e && T.A.navTo("/subPackages/detail/item?id=" + e, {
|
|
spm: "".concat(m.A.spmA, ".home.popup.project")
|
|
})
|
|
}(null == e ? void 0 : e.id)
|
|
}
|
|
}, t)
|
|
}))
|
|
})
|
|
}), (0, O.jsx)(y.A, {
|
|
className: "project-recommend-bottom-wrapper",
|
|
style: {
|
|
backgroundColor: o
|
|
},
|
|
children: (0, O.jsx)(y.A, {
|
|
className: "project-more-btn",
|
|
onClick: function () {
|
|
null == u || u(!1), a && T.A.navTo(a, {
|
|
spm: "".concat(m.A.spmA, ".home.popup.moreproject")
|
|
})
|
|
}
|
|
})
|
|
})]
|
|
}) : null
|
|
},
|
|
Nt = Object.defineProperty,
|
|
St = Object.getOwnPropertySymbols,
|
|
bt = Object.prototype.hasOwnProperty,
|
|
Ct = Object.prototype.propertyIsEnumerable,
|
|
It = function (e, t, n) {
|
|
return t in e ? Nt(e, t, {
|
|
enumerable: !0,
|
|
configurable: !0,
|
|
writable: !0,
|
|
value: n
|
|
}) : e[t] = n
|
|
},
|
|
Dt = function (e, n) {
|
|
for (var i in n || (n = {})) bt.call(n, i) && It(e, i, n[i]);
|
|
if (St) {
|
|
var o, a = t(St(n));
|
|
try {
|
|
for (a.s(); !(o = a.n()).done;) {
|
|
i = o.value;
|
|
Ct.call(n, i) && It(e, i, n[i])
|
|
}
|
|
} catch (e) {
|
|
a.e(e)
|
|
} finally {
|
|
a.f()
|
|
}
|
|
}
|
|
return e
|
|
},
|
|
_t = function (e, n) {
|
|
var i = {};
|
|
for (var o in e) bt.call(e, o) && n.indexOf(o) < 0 && (i[o] = e[o]);
|
|
if (null != e && St) {
|
|
var a, l = t(St(e));
|
|
try {
|
|
for (l.s(); !(a = l.n()).done;) {
|
|
o = a.value;
|
|
n.indexOf(o) < 0 && Ct.call(e, o) && (i[o] = e[o])
|
|
}
|
|
} catch (e) {
|
|
l.e(e)
|
|
} finally {
|
|
l.f()
|
|
}
|
|
}
|
|
return i
|
|
},
|
|
Tt = "bui-progress";
|
|
|
|
function Pt(e) {
|
|
return !e || e < 0 ? 0 : e > 100 ? 100 : e
|
|
}
|
|
var Ot = function (e) {
|
|
var t = e,
|
|
n = t.from,
|
|
i = t.to,
|
|
o = t.direction,
|
|
a = void 0 === o ? "to right" : o,
|
|
l = _t(t, ["from", "to", "direction"]);
|
|
if (0 !== Object.keys(l).length) {
|
|
var r = function (e) {
|
|
var t = [];
|
|
return Object.keys(e).forEach((function (n) {
|
|
var i = parseFloat(n.replace(/%/g, ""));
|
|
Number.isNaN(i) || t.push({
|
|
key: i,
|
|
value: e[n]
|
|
})
|
|
})), (t = t.sort((function (e, t) {
|
|
return e.key - t.key
|
|
}))).map((function (e) {
|
|
var t = e.key,
|
|
n = e.value;
|
|
return "".concat(n, " ").concat(t, "%")
|
|
})).join(", ")
|
|
}(l);
|
|
return {
|
|
backgroundImage: "linear-gradient(".concat(a, ", ").concat(r, ")")
|
|
}
|
|
}
|
|
return {
|
|
backgroundImage: "linear-gradient(".concat(a, ", ").concat(n, ", ").concat(i, ")")
|
|
}
|
|
},
|
|
Ft = b.forwardRef((function (e, t) {
|
|
var n = e,
|
|
i = n.className,
|
|
o = n.percent,
|
|
a = n.strokeWidth,
|
|
l = n.strokeColor,
|
|
r = n.trailColor,
|
|
c = _t(n, ["className", "percent", "strokeWidth", "strokeColor", "trailColor"]),
|
|
s = l && "string" != typeof l ? Ot(l) : {
|
|
background: l
|
|
},
|
|
u = Dt({
|
|
width: "".concat(Pt(o), "%"),
|
|
height: a
|
|
}, s),
|
|
d = {
|
|
background: r || void 0
|
|
};
|
|
return b.createElement("div", Dt({
|
|
className: (0, Le.A)(Tt, i),
|
|
ref: t
|
|
}, c), b.createElement("div", {
|
|
className: "".concat(Tt, "-inner"),
|
|
style: d
|
|
}, b.createElement("div", {
|
|
className: "".concat(Tt, "-bg"),
|
|
style: u
|
|
})))
|
|
}));
|
|
Ft.displayName = "BuiProgress";
|
|
var Et, Lt = Ft,
|
|
Mt = function (e) {
|
|
var t = e.artistPic,
|
|
n = void 0 === t ? "" : t,
|
|
i = e.artistIP,
|
|
o = void 0 === i ? "" : i,
|
|
a = e.artistWantSee,
|
|
l = void 0 === a ? 0 : a,
|
|
r = e.wantSeeStatus,
|
|
c = void 0 === r ? "0" : r,
|
|
u = e.artistIpId,
|
|
d = e.maxWantNum,
|
|
m = (0, b.useState)(Number(l)),
|
|
v = (0, s.A)(m, 2),
|
|
h = v[0],
|
|
f = v[1],
|
|
g = (0, b.useState)(c),
|
|
x = (0, s.A)(g, 2),
|
|
A = x[0],
|
|
w = x[1],
|
|
j = function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e() {
|
|
var t;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
return e.n = 1, nt.A.isLogin();
|
|
case 1:
|
|
if (e.v) {
|
|
e.n = 2;
|
|
break
|
|
}
|
|
return p().showToast({
|
|
title: "请先登录~",
|
|
icon: "none"
|
|
}), e.a(2);
|
|
case 2:
|
|
t = {
|
|
group: "IP_GROUP",
|
|
targetType: "IP",
|
|
operateType: "1" === A ? 0 : 1,
|
|
targetId: u,
|
|
pageName: "WX_APP_HOME"
|
|
}, ut.M.relationUpdate(t).then((function (e) {
|
|
var t = null == e ? void 0 : e[1];
|
|
null != t && t.success && (f(1 === t.status ? h + 1 : h - 1), w("".concat(t.status)))
|
|
})).catch((function (e) {}));
|
|
case 3:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
})));
|
|
return function () {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}(),
|
|
k = (0, b.useMemo)((function () {
|
|
return 100 * (.3 + Math.log(Number(h)) / Math.log(Number(d)) * .7)
|
|
}), [h, d]),
|
|
N = function (e) {
|
|
return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")
|
|
}(h);
|
|
return "0" !== N ? (0, O.jsxs)(ft.A, {
|
|
className: "show-item-wrapper",
|
|
children: [(0, O.jsx)(vt.A, {
|
|
className: "artist-avatar",
|
|
src: n
|
|
}), (0, O.jsxs)("div", {
|
|
className: "desc-wrapper",
|
|
children: [(0, O.jsx)("div", {
|
|
className: "title",
|
|
children: o
|
|
}), (0, O.jsxs)("div", {
|
|
className: "progress-wrapper",
|
|
children: [(0, O.jsx)(Lt, {
|
|
strokeWidth: 12,
|
|
percent: Math.max(k, 50),
|
|
trailColor: "#fff",
|
|
strokeColor: "linear-gradient(270deg, rgba(255,143,63,0.65) 0%, rgba(255,143,63,0.00) 100%);"
|
|
}), (0, O.jsxs)("div", {
|
|
className: "want-text",
|
|
children: [N, " 人想看"]
|
|
})]
|
|
})]
|
|
}), (0, O.jsx)(y.A, {
|
|
dynamicData: {
|
|
biz_id: u
|
|
},
|
|
Component: de.A,
|
|
className: "want-see-btn ".concat("1" === A ? "wanted" : "not-want"),
|
|
onClick: j,
|
|
children: "".concat("1" === A ? "已" : "", "想看")
|
|
})]
|
|
}) : null
|
|
},
|
|
Ut = function (e) {
|
|
var t, n, i = e.loopData,
|
|
o = (0, b.useState)(null == i || null === (t = i[0]) || void 0 === t ? void 0 : t.title),
|
|
a = (0, s.A)(o, 2),
|
|
l = a[0],
|
|
r = a[1],
|
|
c = (0, b.useState)(null == i || null === (n = i[0]) || void 0 === n ? void 0 : n.artistPic),
|
|
u = (0, s.A)(c, 2),
|
|
d = u[0],
|
|
p = u[1];
|
|
return (0, b.useEffect)((function () {
|
|
var e = 0;
|
|
return Et = setInterval((function () {
|
|
e = e + 1 > i.length - 1 ? 0 : e + 1, r(i[e].title), p("".concat(i[e].artistPic))
|
|
}), 5e3),
|
|
function () {
|
|
clearInterval(Et)
|
|
}
|
|
}), []), l && d ? (0, O.jsxs)(ft.A, {
|
|
className: "more-item-wrapper",
|
|
children: [(0, O.jsx)(vt.A, {
|
|
className: "header-img",
|
|
src: d
|
|
}, d), (0, O.jsx)("div", {
|
|
className: "title",
|
|
children: l
|
|
})]
|
|
}) : null
|
|
},
|
|
Rt = function (e) {
|
|
var t = e.backGroundColor,
|
|
n = e.pic,
|
|
i = void 0 === n ? "https://gw.alicdn.com/imgextra/i4/O1CN011gUH3I1ewjsGdUM0I_!!6000000003936-2-tps-1125-540.png" : n,
|
|
o = e.closeIcon,
|
|
a = void 0 === o ? "https://gw.alicdn.com/imgextra/i4/O1CN01yrWU7A27N7w1iuCFE_!!6000000007784-2-tps-69-69.png" : o,
|
|
l = e.onClose,
|
|
r = e.schema,
|
|
c = e.mainArea,
|
|
s = e.loopArea,
|
|
u = (0, b.useMemo)((function () {
|
|
return null == c ? void 0 : c.reduce((function (e, t) {
|
|
return Math.max(e, Number(t.artistWantSee))
|
|
}), 0)
|
|
}), [c]);
|
|
return c && 0 !== c.length ? (0, O.jsxs)(y.A, {
|
|
className: "show-news-container",
|
|
children: [(0, O.jsxs)("div", {
|
|
className: "header-wrapper",
|
|
children: [(0, O.jsx)(vt.A, {
|
|
className: "header-img",
|
|
src: i
|
|
}), (0, O.jsx)(vt.A, {
|
|
className: "close-btn",
|
|
alt: "",
|
|
src: a,
|
|
onClick: l
|
|
})]
|
|
}), (0, O.jsx)("div", {
|
|
className: "show-news-list-out-wrapper",
|
|
children: (0, O.jsx)(y.A, {
|
|
Component: ht.A,
|
|
ScrollView: !0,
|
|
scrollY: !0,
|
|
className: "show-news-list-wrapper",
|
|
style: {
|
|
backgroundColor: t
|
|
},
|
|
children: (c || []).map((function (e, t) {
|
|
return (0, O.jsx)(Mt, (0, E.A)((0, E.A)({}, e), {}, {
|
|
maxWantNum: u
|
|
}), t)
|
|
}))
|
|
})
|
|
}), (0, O.jsxs)(y.A, {
|
|
className: "show-news-bottom-wrapper",
|
|
style: {
|
|
backgroundColor: t
|
|
},
|
|
children: [s && (null == s ? void 0 : s.length) > 0 && (0, O.jsx)(Ut, {
|
|
loopData: s
|
|
}), (0, O.jsx)(y.A, {
|
|
className: "more-btn",
|
|
onClick: function () {
|
|
null == l || l(!1), r && T.A.navTo(r, {
|
|
spm: "".concat(m.A.spmA, ".home.popup.moreitem")
|
|
})
|
|
}
|
|
})]
|
|
})]
|
|
}) : null
|
|
},
|
|
Yt = function (e) {
|
|
var t = e.backGroundPic,
|
|
n = void 0 === t ? "https://gw.alicdn.com/imgextra/i4/O1CN01oDgNow1aufcb9xYtO_!!6000000003390-2-tps-1125-540.png" : t,
|
|
i = e.closeIcon,
|
|
o = void 0 === i ? "https://gw.alicdn.com/imgextra/i4/O1CN01yrWU7A27N7w1iuCFE_!!6000000007784-2-tps-69-69.png" : i,
|
|
a = e.qrCode,
|
|
l = e.profitPic,
|
|
r = e.onClose,
|
|
c = e.comboDispatchId;
|
|
return (0, O.jsxs)(y.A, {
|
|
className: "project-qr-container",
|
|
dynamicData: {
|
|
dispatchId: c
|
|
},
|
|
children: [(0, O.jsx)(vt.A, {
|
|
lazy: !0,
|
|
className: "header-img",
|
|
width: "100%",
|
|
fit: "widthFix",
|
|
src: n
|
|
}), (0, O.jsx)(vt.A, {
|
|
className: "close-btn",
|
|
alt: "",
|
|
src: o,
|
|
onClick: r
|
|
}), (0, O.jsx)(vt.A, {
|
|
className: "profit-pic",
|
|
width: "100%",
|
|
fit: "widthFix",
|
|
alt: "",
|
|
src: l
|
|
}), (0, O.jsx)(vt.A, {
|
|
className: "qrcode-pic",
|
|
fit: "contain",
|
|
showMenu: !0,
|
|
alt: "",
|
|
src: a,
|
|
onTouchStart: function () {
|
|
L.Ay.sendGoldLog("CLK", "/yanchu.newpop_qrcode.clk", {
|
|
spmC: "newpop",
|
|
spmD: "qrcode",
|
|
dispatch_id: c
|
|
})
|
|
}
|
|
}), (0, O.jsx)("div", {
|
|
className: "bottom-wrapper"
|
|
})]
|
|
})
|
|
},
|
|
Vt = (0, b.memo)((function (e) {
|
|
var t, n = e.popupData,
|
|
i = (0, b.useState)(null == n || null === (t = n.data) || void 0 === t ? void 0 : t.isShow),
|
|
o = (0, s.A)(i, 2),
|
|
a = o[0],
|
|
l = o[1],
|
|
r = function () {
|
|
l(!1)
|
|
},
|
|
c = (null == n ? void 0 : n.data) || {},
|
|
d = c.cityCode,
|
|
p = c.pkId,
|
|
m = (0, b.useCallback)((function () {
|
|
ut.M.reportPopup({
|
|
comboChannel: "4",
|
|
comboCityId: d,
|
|
pkId: p
|
|
})
|
|
}), [d, p]);
|
|
return (0, b.useEffect)((function () {
|
|
m()
|
|
}), [m]), (0, O.jsx)(mt.A, {
|
|
className: (0, u.A)("popup-drawer"),
|
|
disablePortal: !0,
|
|
open: a,
|
|
onClose: r,
|
|
children: function () {
|
|
var e = n.data,
|
|
t = void 0 === e ? {} : e;
|
|
switch (null == n ? void 0 : n.type) {
|
|
case "dm_home_nearby_item":
|
|
return (0, O.jsx)(kt, (0, E.A)((0, E.A)({}, t), {}, {
|
|
onClose: r
|
|
}));
|
|
case "weixin_home_newperson_guide_trend":
|
|
return (0, O.jsx)(Rt, (0, E.A)((0, E.A)({}, t), {}, {
|
|
onClose: r
|
|
}));
|
|
case "weixin_home_guide":
|
|
return (0, O.jsx)(Yt, (0, E.A)((0, E.A)({}, t), {}, {
|
|
onClose: r
|
|
}))
|
|
}
|
|
}()
|
|
})
|
|
})),
|
|
Wt = function (e) {
|
|
var t = pt(e),
|
|
n = t.tipsInfo,
|
|
i = t.popupModule,
|
|
o = t.tipsModule,
|
|
a = (0, b.useState)(!0),
|
|
l = (0, s.A)(a, 2),
|
|
r = l[0],
|
|
c = l[1];
|
|
return (0, b.useEffect)((function () {
|
|
r && n && L.Ay.sendGoldLog("EXP", "/dmwechat.home.favoritetips_exp", {
|
|
item_id: n.id,
|
|
spmC: "favorite",
|
|
spmD: "dtips"
|
|
})
|
|
}), [r, n]), (0, b.useEffect)((function () {
|
|
n && setTimeout((function () {
|
|
return c(!1)
|
|
}), 7e3)
|
|
}), [n]), (0, O.jsxs)(O.Fragment, {
|
|
children: ["want_guide" === (null == i ? void 0 : i.type) && n && r && (0, O.jsx)(S.Ss, {
|
|
className: (0, u.A)("want-guide-popup", r ? "guide-show" : "guide-hide"),
|
|
onClick: function () {
|
|
L.Ay.sendGoldLog("CLK", "/dmwechat.home.favoritetips_clk", {
|
|
item_id: n.id,
|
|
spmC: "favorite",
|
|
spmD: "dtips"
|
|
}), p().switchTab({
|
|
url: "/pages/want2see/index"
|
|
})
|
|
},
|
|
children: (0, O.jsxs)(S.Ss, {
|
|
className: "content",
|
|
children: [(0, O.jsx)(S.Ss, {
|
|
className: "poster-wrap",
|
|
children: (0, O.jsx)(S._V, {
|
|
className: "poster",
|
|
mode: "aspectFill",
|
|
src: n.projectPic
|
|
})
|
|
}), (0, O.jsx)(S.Ss, {
|
|
className: "tips",
|
|
children: n.tipDesc
|
|
}), (0, O.jsx)(S.Ss, {
|
|
className: "arrow",
|
|
children: (0, O.jsx)(S.EY, {
|
|
className: "arrow-border"
|
|
})
|
|
})]
|
|
})
|
|
}), (null == o ? void 0 : o.type) && (0, O.jsx)(wt, {
|
|
cityId: null == e ? void 0 : e.cityId,
|
|
tipsPopupData: o
|
|
}), (null == i ? void 0 : i.type) && "want_guide" !== (null == i ? void 0 : i.type) && (0, O.jsx)(Vt, {
|
|
popupData: i
|
|
})]
|
|
})
|
|
},
|
|
qt = "float-window-exp-cls",
|
|
zt = function (e) {
|
|
var t = e.isFloatWindowCollapse,
|
|
n = e.data,
|
|
i = (null == n ? void 0 : n[0]) || {},
|
|
o = i.action,
|
|
a = i.pic,
|
|
l = void 0 === a ? "" : a,
|
|
r = i.schema,
|
|
c = i.bottomMargin;
|
|
(0, ke.Ay)(qt, (function () {
|
|
(0, L.Th)(null == o ? void 0 : o.item)
|
|
}));
|
|
return (0, O.jsx)(S.Ss, {
|
|
className: (0, u.A)("float-window-container", {
|
|
"float-window-collapse": t
|
|
}),
|
|
style: {
|
|
bottom: c ? "".concat(c, "rpx") : void 0
|
|
},
|
|
onClick: function () {
|
|
(0, L.kU)(null == o ? void 0 : o.item), r && T.A.navTo(r)
|
|
},
|
|
children: l && (0, O.jsx)(vt.A, {
|
|
className: (0, u.A)("float-window-image", qt),
|
|
src: l,
|
|
placeholder: (0, O.jsx)(O.Fragment, {})
|
|
})
|
|
})
|
|
},
|
|
Bt = a(3903),
|
|
Gt = a(7427),
|
|
Ht = a(5598),
|
|
Jt = function (e) {
|
|
var t = e.data,
|
|
n = t.promotionTag,
|
|
i = void 0 === n ? {} : n,
|
|
o = t.categoryName,
|
|
a = t.picUrl,
|
|
l = t.actionUrl,
|
|
r = t.trackInfo,
|
|
c = "ZAONIAO" === i.type,
|
|
s = i.value || i.desc;
|
|
return (0, b.useEffect)((function () {
|
|
return (0, L.Th)({
|
|
trackInfo: r
|
|
})
|
|
}), [a]), (0, O.jsxs)(S.Ss, {
|
|
className: "poster",
|
|
onClick: function () {
|
|
(0, L.kU)({
|
|
trackInfo: r
|
|
}), l && T.A.navTo(l)
|
|
},
|
|
children: [o ? (0, O.jsx)(S.EY, {
|
|
className: "category-tag",
|
|
children: o
|
|
}) : null, c ? (0, O.jsx)(S.Ss, {
|
|
className: "marketing-tag",
|
|
children: (0, O.jsx)(S._V, {
|
|
className: "zaoniao-icon",
|
|
src: "//gw.alicdn.com/imgextra/i3/O1CN01L1Py5v1VKsSCgi9oV_!!6000000002635-2-tps-92-30.png"
|
|
})
|
|
}) : s ? (0, O.jsxs)(S.Ss, {
|
|
className: "marketing-tag",
|
|
children: [(0, O.jsx)(S.EY, {
|
|
className: "marketing-tag-num",
|
|
children: i.value
|
|
}), (0, O.jsx)(S.EY, {
|
|
className: "marketing-tag-desc",
|
|
children: i.desc
|
|
})]
|
|
}) : null, (0, O.jsx)("div", {
|
|
className: "fs-pic",
|
|
style: {
|
|
backgroundImage: "url(".concat(a || "", ")")
|
|
}
|
|
})]
|
|
})
|
|
},
|
|
Xt = a(9476),
|
|
Kt = function (e) {
|
|
var t = e.data,
|
|
n = t.artistName,
|
|
i = void 0 === n ? "" : n,
|
|
o = t.projectName,
|
|
a = void 0 === o ? "" : o,
|
|
l = t.picUrl,
|
|
r = void 0 === l ? "" : l,
|
|
c = t.wantSeeNum,
|
|
d = void 0 === c ? "" : c,
|
|
p = t.wantSeeDesc,
|
|
m = void 0 === p ? "" : p,
|
|
v = t.priceLow,
|
|
h = void 0 === v ? "" : v,
|
|
f = t.priceCustom,
|
|
g = void 0 === f ? "" : f,
|
|
y = t.priceTag,
|
|
x = t.actionUrl,
|
|
A = t.type,
|
|
w = void 0 === A ? "" : A,
|
|
j = t.isBroadcast,
|
|
k = t.renderHotBuy,
|
|
N = t.trackInfo,
|
|
C = g || h,
|
|
I = !new RegExp("[一-龥]+").test(C),
|
|
D = "string" == typeof y ? y : "object" === (0, Xt.A)(y) && "VIP" !== y.type && "VIP_PRIVILEGE" !== y.type ? "".concat(y.prefix || "").concat(y.shortTag || y.tag || "") : "",
|
|
_ = (0, b.useState)(!0),
|
|
P = (0, s.A)(_, 2),
|
|
F = P[0],
|
|
E = P[1];
|
|
return (0, b.useEffect)((function () {
|
|
E(!0)
|
|
}), [k]), (0, O.jsxs)(S.Ss, {
|
|
className: "broadcast-card",
|
|
onClick: function () {
|
|
(0, L.kU)({
|
|
trackInfo: N
|
|
}), x && T.A.navTo(x, {
|
|
cmsTrackInfo: {
|
|
trackInfo: N
|
|
}
|
|
})
|
|
},
|
|
children: [(0, O.jsx)(S.Ss, {
|
|
className: "left",
|
|
children: "ARTIST" === w ? (0, O.jsxs)(S.Ss, {
|
|
className: "pic-border",
|
|
children: [(0, O.jsx)("div", {
|
|
className: "fs-artist-pic",
|
|
style: {
|
|
backgroundImage: "url(".concat(r, ")")
|
|
}
|
|
}), i ? (0, O.jsx)(S.Ss, {
|
|
className: "artist-name",
|
|
children: i
|
|
}) : null]
|
|
}) : (0, O.jsx)(Jt, {
|
|
data: {
|
|
picUrl: r
|
|
}
|
|
})
|
|
}), (0, O.jsxs)(S.Ss, {
|
|
className: "right",
|
|
children: [(0, O.jsxs)(S.Ss, {
|
|
children: [(0, O.jsx)(S.Ss, {
|
|
className: "card-title",
|
|
children: a
|
|
}), F ? (0, O.jsxs)(S.Ss, {
|
|
className: "want-see",
|
|
children: [(0, O.jsx)(S.EY, {
|
|
className: "want-see-num",
|
|
children: d
|
|
}), m]
|
|
}) : null]
|
|
}), j && k && (0, O.jsx)(S.Ss, {
|
|
className: "hot-buy",
|
|
children: k((function () {
|
|
E(!1)
|
|
}))
|
|
}), !j && C ? (0, O.jsxs)(S.Ss, {
|
|
className: "price-info",
|
|
children: [I ? (0, O.jsx)(S.EY, {
|
|
className: "symbol",
|
|
children: "¥"
|
|
}) : null, (0, O.jsx)(S.EY, {
|
|
className: (0, u.A)(I ? "num" : "desc"),
|
|
children: C
|
|
}), I ? (0, O.jsx)(S.EY, {
|
|
className: "qi",
|
|
children: "起"
|
|
}) : null, D ? (0, O.jsx)(S.EY, {
|
|
className: "tag",
|
|
children: D
|
|
}) : null]
|
|
}) : null]
|
|
})]
|
|
})
|
|
},
|
|
Zt = function (e) {
|
|
var t = e.className,
|
|
n = void 0 === t ? "" : t,
|
|
i = e.subtitleList,
|
|
o = void 0 === i ? [] : i,
|
|
a = e.subtitleColor,
|
|
l = void 0 === a ? "#2e333e" : a,
|
|
r = e.titlePic,
|
|
c = void 0 === r ? "" : r,
|
|
s = e.bgPic,
|
|
d = void 0 === s ? "" : s,
|
|
p = e.posters,
|
|
m = void 0 === p ? [] : p,
|
|
v = e.content,
|
|
h = void 0 === v ? [] : v,
|
|
f = e.cityCode,
|
|
g = {
|
|
backgroundImage: "url(".concat(c || "//gw.alicdn.com/imgextra/i2/O1CN01jXZtgG1b1zuzh28jb_!!6000000003406-2-tps-167-42.png", ")")
|
|
},
|
|
y = h.length > 0 && h[0].isBroadcast ? "//gw.alicdn.com/imgextra/i2/O1CN01wISXQF1eOqQpUuL12_!!6000000003862-2-tps-426-426.png" : "";
|
|
return (0, b.useEffect)((function () {
|
|
var e, t;
|
|
(0, L.Th)({
|
|
trackInfo: null === (e = o[0]) || void 0 === e ? void 0 : e.trackInfo
|
|
}), (0, L.Th)({
|
|
trackInfo: null === (t = h[0]) || void 0 === t ? void 0 : t.trackInfo
|
|
})
|
|
}), [f]), (0, O.jsx)(S.Ss, {
|
|
className: (0, u.A)("broadcast-wrapper", n),
|
|
children: (0, O.jsxs)(ft.A, {
|
|
className: (0, u.A)("card", y && "ARTIST" === h[0].type ? "artist-cnt" : ""),
|
|
style: {
|
|
backgroundImage: "url(".concat(y, "),url(").concat(d, ")")
|
|
},
|
|
children: [(0, O.jsx)(Bt.A, {
|
|
className: "card-header",
|
|
title: (0, O.jsx)(S.Ss, {
|
|
className: "title-bg",
|
|
style: g
|
|
}),
|
|
extra: (0, O.jsxs)(S.Ss, {
|
|
className: "subtitle-wrapper",
|
|
children: [(0, O.jsx)(S.Ss, {
|
|
className: (0, u.A)("extra-btn pdr", h.length > 0 ? "short-size" : ""),
|
|
style: {
|
|
color: l
|
|
},
|
|
children: (0, O.jsx)(S.RC, {
|
|
className: "subtitle-swiper",
|
|
autoplay: !0,
|
|
circular: !0,
|
|
vertical: !0,
|
|
onChange: function (e) {
|
|
var t;
|
|
return (0, L.Th)({
|
|
trackInfo: null === (t = o[e.detail.current]) || void 0 === t ? void 0 : t.trackInfo
|
|
})
|
|
},
|
|
children: o.map((function (e, t) {
|
|
return (0, O.jsx)(S.wu, {
|
|
children: (0, O.jsx)(S.Ss, {
|
|
className: "title",
|
|
onClick: function () {
|
|
(0, L.kU)({
|
|
trackInfo: e.trackInfo
|
|
}), e.actionUrl && T.A.navTo(e.actionUrl, {
|
|
cmsTrackInfo: e
|
|
})
|
|
},
|
|
children: e.title
|
|
})
|
|
}, t)
|
|
}))
|
|
})
|
|
}), (0, O.jsx)(Gt.A, {
|
|
className: "subtitle-arrow",
|
|
style: {
|
|
color: l
|
|
}
|
|
})]
|
|
})
|
|
}), h.length > 0 ? (0, O.jsx)(S.RC, {
|
|
interval: 4e3,
|
|
className: "broadcast-swiper",
|
|
autoplay: !0,
|
|
circular: !0,
|
|
onChange: function (e) {
|
|
var t;
|
|
return (0, L.Th)({
|
|
trackInfo: null === (t = h[e.detail.current]) || void 0 === t ? void 0 : t.trackInfo
|
|
})
|
|
},
|
|
children: h.map((function (e, t) {
|
|
return (0, O.jsx)(S.wu, {
|
|
children: (0, O.jsx)(Ht.A, {
|
|
className: "card-content",
|
|
children: (0, O.jsx)(Kt, {
|
|
data: e
|
|
})
|
|
})
|
|
}, t)
|
|
}))
|
|
}) : null, m.length > 0 ? (0, O.jsx)(Ht.A, {
|
|
className: "card-content",
|
|
children: (0, O.jsx)(S.Ss, {
|
|
className: "poster-list",
|
|
children: m.slice(0, 3).map((function (e, t) {
|
|
return (0, O.jsx)(Jt, {
|
|
data: e
|
|
}, t)
|
|
}))
|
|
})
|
|
}) : null]
|
|
})
|
|
})
|
|
},
|
|
Qt = function (e, t) {
|
|
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {
|
|
defaultData: {
|
|
total: 0,
|
|
day: 0,
|
|
hours: "00",
|
|
minutes: "00",
|
|
seconds: "00"
|
|
},
|
|
format: function (e) {
|
|
return e < 10 ? "0".concat(e) : "".concat(e)
|
|
}
|
|
},
|
|
i = e || 0,
|
|
o = (0, b.useState)(n.defaultData),
|
|
a = (0, s.A)(o, 2),
|
|
l = a[0],
|
|
r = a[1],
|
|
c = (0, b.useState)(!1),
|
|
u = (0, s.A)(c, 2),
|
|
d = u[0],
|
|
p = u[1],
|
|
m = (0, b.useRef)(0);
|
|
return (0, b.useEffect)((function () {
|
|
if (p(!1), i <= 0 || t <= 0 || t <= i) return p(!0),
|
|
function () {
|
|
return clearInterval(m.current)
|
|
};
|
|
var e = Date.now(),
|
|
o = i - e;
|
|
return m.current = setInterval((function () {
|
|
var e = Date.now(),
|
|
i = t - e - o,
|
|
a = i < 0 ? 0 : i,
|
|
l = Math.floor(a / 1e3 % 60),
|
|
c = Math.floor(a / 1e3 / 60 % 60),
|
|
s = Math.floor(a / 36e5) % 24,
|
|
u = Math.floor(a / 864e5);
|
|
r({
|
|
total: a,
|
|
day: u,
|
|
hours: null == n ? void 0 : n.format(s),
|
|
minutes: null == n ? void 0 : n.format(c),
|
|
seconds: null == n ? void 0 : n.format(l)
|
|
}), (a <= 1e3 || !t) && (p(!0), clearInterval(m.current))
|
|
}), 200),
|
|
function () {
|
|
return clearInterval(m.current)
|
|
}
|
|
}), [t, i]), {
|
|
time: l,
|
|
setTime: r,
|
|
isEnd: d
|
|
}
|
|
},
|
|
$t = function (e) {
|
|
var t = e.serverTime,
|
|
n = e.upTime,
|
|
i = e.hotProjectSubTitle,
|
|
o = void 0 === i ? "" : i,
|
|
a = e.timeEndCallback,
|
|
l = Qt(t, n),
|
|
r = l.isEnd,
|
|
c = l.time;
|
|
return (0, b.useEffect)((function () {
|
|
r && a && a()
|
|
}), [r, a]), n ? (0, O.jsx)("div", {
|
|
children: r ? o : "".concat(c.day ? "".concat(c.day, "天") : "").concat(c.hours, ":").concat(c.minutes, ":").concat(c.seconds)
|
|
}) : (0, O.jsx)(O.Fragment, {
|
|
children: o
|
|
})
|
|
},
|
|
en = a(898),
|
|
tn = 7552,
|
|
nn = 7567,
|
|
on = 7532,
|
|
an = 7533,
|
|
ln = function (e, t, n, i) {
|
|
var o;
|
|
return (t || []).map((function (e, t) {
|
|
var o, a, l;
|
|
return {
|
|
title: null !== (o = null == e || null === (a = e.title) || void 0 === a ? void 0 : a.substring(0, 6)) && void 0 !== o ? o : "",
|
|
actionUrl: null !== (l = null == e ? void 0 : e.schema) && void 0 !== l ? l : "",
|
|
trackInfo: cn(n, i, t)
|
|
}
|
|
})) || [{
|
|
title: null !== (o = e.substring(0, 6)) && void 0 !== o ? o : "",
|
|
actionUrl: "",
|
|
trackInfo: cn(n, i, 0)
|
|
}]
|
|
},
|
|
rn = function (e, t, n, i) {
|
|
return (0, E.A)((0, E.A)((0, E.A)({}, e), {
|
|
args: (0, E.A)((0, E.A)({}, e.args), {}, {
|
|
city: i
|
|
})
|
|
}), {}, {
|
|
clickEventName: t ? "/yanchu.home.snatchticketitem_clk" : "/yanchu.home.hotrecommend_clk",
|
|
exposeEventName: t ? "/yanchu.home.snatchticketitem_exp" : "/yanchu.home.hotrecommend_exp",
|
|
spmd: "".concat(e.spmd).concat(e.spmd.endsWith("_") ? n : "")
|
|
})
|
|
},
|
|
cn = function (e, t, n) {
|
|
var i;
|
|
return (0, E.A)((0, E.A)({}, e), {}, {
|
|
args: {
|
|
city: t
|
|
},
|
|
clickEventName: "/yanchu.home.snatchticketmore_clk",
|
|
exposeEventName: "/yanchu.home.snatchticketmore_exp",
|
|
spmd: "".concat(e.spmd).concat(null != e && null !== (i = e.spmd) && void 0 !== i && i.endsWith("_") ? n : "")
|
|
})
|
|
},
|
|
sn = (0, b.memo)((function (e) {
|
|
var t = e.data,
|
|
n = void 0 === t ? [] : t,
|
|
i = e.cityCode,
|
|
o = void 0 === i ? "" : i,
|
|
a = e.comboDegrade,
|
|
l = void 0 !== a && a,
|
|
r = function (e, t) {
|
|
var n, i, o, a, l, r, c = null == e ? void 0 : e.data;
|
|
if (!c) return null;
|
|
var s = null !== (n = null == e ? void 0 : e.nodes) && void 0 !== n ? n : [],
|
|
u = en.Di.getUserSelectedCitySite().damaiId;
|
|
return {
|
|
titlePic: (0, P.zp)({
|
|
url: null !== (i = null == c ? void 0 : c.titlePic) && void 0 !== i ? i : "",
|
|
width: 300
|
|
}),
|
|
bgPic: (0, P.zp)({
|
|
url: null !== (o = null == c ? void 0 : c.bgPic) && void 0 !== o ? o : ""
|
|
}),
|
|
subtitleList: ln(null !== (a = null == c ? void 0 : c.subTitle) && void 0 !== a ? a : "", (null == c ? void 0 : c.noticeList) || [], null !== (l = null == c || null === (r = c.action) || void 0 === r || null === (r = r.item) || void 0 === r ? void 0 : r.trackInfo) && void 0 !== l ? l : {}, u),
|
|
content: s.map((function (e, n) {
|
|
var i, o, a, l, r, s, d, p, m, v, h = e.data,
|
|
f = function () {
|
|
var e, t, n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
|
|
i = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
|
|
if (i) return {
|
|
wantSeeNum: "",
|
|
wantSeeDesc: ""
|
|
};
|
|
var o = null !== (e = null === (t = n.match(/\d*\.?\d*/g)) || void 0 === t ? void 0 : t[0]) && void 0 !== e ? e : "",
|
|
a = n.replace(o, "");
|
|
return {
|
|
wantSeeNum: o,
|
|
wantSeeDesc: a
|
|
}
|
|
}(null !== (i = null == h ? void 0 : h.wantCountDesc) && void 0 !== i ? i : "", t),
|
|
g = f.wantSeeNum,
|
|
y = f.wantSeeDesc,
|
|
x = e.type === on || e.type === an;
|
|
return {
|
|
trackInfo: rn(null !== (o = null == h || null === (a = h.action) || void 0 === a || null === (a = a.item) || void 0 === a ? void 0 : a.trackInfo) && void 0 !== o ? o : {}, x, n, u),
|
|
artistName: null !== (l = null == h ? void 0 : h.artistName) && void 0 !== l ? l : "",
|
|
projectName: null !== (r = null == h ? void 0 : h.name) && void 0 !== r ? r : "",
|
|
picUrl: (0, P.zp)({
|
|
url: null !== (s = null == h ? void 0 : h.verticalPic) && void 0 !== s ? s : "",
|
|
width: 300,
|
|
ignorePng: !1
|
|
}),
|
|
wantSeeNum: g,
|
|
wantSeeDesc: y,
|
|
type: null !== (d = null == h ? void 0 : h.broadcastProjectType) && void 0 !== d ? d : "",
|
|
priceLow: null !== (p = null == h ? void 0 : h.priceLow) && void 0 !== p ? p : "",
|
|
priceCustom: null !== (m = null == h ? void 0 : h.priceCustom) && void 0 !== m ? m : "",
|
|
priceTag: null == h || null === (v = h.marketPromotionTags) || void 0 === v ? void 0 : v[0],
|
|
actionUrl: null != h && h.itemId ? "https://m.damai.cn/damai/detail/item.html?itemId=".concat(h.itemId) : "",
|
|
isBroadcast: x,
|
|
renderHotBuy: function (e) {
|
|
return !t && (0, O.jsx)($t, {
|
|
serverTime: null != c && c.serverTime ? Number(c.serverTime) : Date.now(),
|
|
upTime: null == h ? void 0 : h.upTime,
|
|
hotProjectSubTitle: null == h ? void 0 : h.hotProjectSubTitle,
|
|
timeEndCallback: e
|
|
})
|
|
}
|
|
}
|
|
}))
|
|
}
|
|
}(n.find((function (e) {
|
|
return e.type === tn
|
|
})), l),
|
|
c = function (e) {
|
|
var t, n, i, o, a, l = null == e ? void 0 : e.data;
|
|
if (!l) return null;
|
|
var r = null !== (t = null == e ? void 0 : e.nodes) && void 0 !== t ? t : [];
|
|
return {
|
|
titlePic: null == l ? void 0 : l.titlePic,
|
|
bgPic: (0, P.zp)({
|
|
url: null !== (n = null == l ? void 0 : l.bgPic) && void 0 !== n ? n : "",
|
|
width: 300
|
|
}),
|
|
subtitleList: [{
|
|
title: null !== (i = null == l ? void 0 : l.subTitle) && void 0 !== i ? i : "",
|
|
actionUrl: null !== (o = null == l || null === (a = l.keywords) || void 0 === a || null === (a = a[0]) || void 0 === a || null === (a = a.action) || void 0 === a ? void 0 : a.actionUrl) && void 0 !== o ? o : ""
|
|
}],
|
|
posters: r.map((function (e) {
|
|
var t, n, i, o, a, l, r = e.data;
|
|
return {
|
|
trackInfo: null !== (t = null == r || null === (n = r.action) || void 0 === n || null === (n = n.item) || void 0 === n ? void 0 : n.trackInfo) && void 0 !== t ? t : null,
|
|
picUrl: (0, P.zp)({
|
|
url: null !== (i = null == r ? void 0 : r.verticalPic) && void 0 !== i ? i : "",
|
|
width: 300,
|
|
ignorePng: !1
|
|
}),
|
|
categoryName: null !== (o = null == r ? void 0 : r.guideSubCategoryName) && void 0 !== o ? o : "",
|
|
promotionTag: null !== (a = null == r ? void 0 : r.marketPromotionTag) && void 0 !== a ? a : [],
|
|
actionUrl: null !== (l = null == r ? void 0 : r.actionUrl) && void 0 !== l ? l : ""
|
|
}
|
|
}))
|
|
}
|
|
}(n.find((function (e) {
|
|
return e.type === nn
|
|
})));
|
|
return r && c ? (0, O.jsxs)("div", {
|
|
className: "broadcast-container",
|
|
children: [r && (0, O.jsx)(Zt, {
|
|
subtitleList: r.subtitleList,
|
|
subtitleColor: "#ff5991",
|
|
titlePic: r.titlePic,
|
|
bgPic: r.bgPic,
|
|
content: r.content,
|
|
cityCode: o
|
|
}), c && (0, O.jsx)(Zt, {
|
|
subtitleList: c.subtitleList,
|
|
subtitleColor: "#ffae48",
|
|
titlePic: c.titlePic,
|
|
bgPic: c.bgPic,
|
|
posters: c.posters,
|
|
cityCode: o
|
|
})]
|
|
}) : null
|
|
})),
|
|
un = a(8655),
|
|
dn = a(208),
|
|
pn = {
|
|
api: "mtop.damai.mec.aristotle.get",
|
|
v: "2.0",
|
|
data: {}
|
|
},
|
|
mn = a(9887),
|
|
vn = function () {
|
|
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
|
|
return new mn.p((0, E.A)((0, E.A)({}, pn), e)).create()
|
|
},
|
|
hn = a(3919).location;
|
|
|
|
function fn(e) {
|
|
var t, n = {};
|
|
Object.defineProperty(this, "params", {
|
|
set: function (e) {
|
|
if ("object" === (0, Xt.A)(e)) {
|
|
for (var t = 0, i = Object.keys(n); t < i.length; t++) {
|
|
var o = i[t];
|
|
delete n[o]
|
|
}
|
|
for (var a = 0, l = Object.keys(e); a < l.length; a++) {
|
|
var r = l[a];
|
|
n[r] = e[r]
|
|
}
|
|
}
|
|
},
|
|
get: function () {
|
|
return n
|
|
},
|
|
enumerable: !0
|
|
}), Object.defineProperty(this, "search", {
|
|
set: function (e) {
|
|
var t = e;
|
|
if ("string" == typeof t) {
|
|
0 === t.indexOf("?") && (t = t.substr(1));
|
|
for (var i = t.split("&"), o = 0, a = Object.keys(n); o < a.length; o++) {
|
|
var l = a[o];
|
|
delete n[l]
|
|
}
|
|
for (var r = 0; r < i.length; r++) {
|
|
var c = i[r].split("=");
|
|
if (void 0 !== c[1] && (c[1] = c[1].toString()), c[0]) try {
|
|
n[decodeURIComponent(c[0])] = decodeURIComponent(c[1])
|
|
} catch (e) {
|
|
n[c[0]] = c[1]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
get: function () {
|
|
var e = [];
|
|
for (var t in n)
|
|
if (void 0 !== n[t])
|
|
if ("" !== n[t]) try {
|
|
e.push(encodeURIComponent(t) + "=" + encodeURIComponent(n[t]))
|
|
} catch (i) {
|
|
e.push(t + "=" + n[t])
|
|
} else try {
|
|
e.push(encodeURIComponent(t))
|
|
} catch (n) {
|
|
e.push(t)
|
|
}
|
|
return e.length ? "?" + e.join("&") : ""
|
|
},
|
|
enumerable: !0
|
|
}), Object.defineProperty(this, "hash", {
|
|
set: function (e) {
|
|
var n = e;
|
|
"string" == typeof n && (n && n.indexOf("#") < 0 && (n = "#" + n), t = n || "")
|
|
},
|
|
get: function () {
|
|
return t
|
|
},
|
|
enumerable: !0
|
|
}), this.set = function () {
|
|
var e, t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "";
|
|
if (!(e = t.match(new RegExp("^([a-z0-9-]+:)?[/]{2}(?:([^@/:?]+)(?::([^@/:]+))?@)?([^:/?#]+)(?:[:]([0-9]+))?([/][^?#;]*)?(?:[?]([^#]*))?([#][^?]*)?$", "i")))) throw new Error("Wrong uri scheme:" + t);
|
|
this.protocol = e[1] || ("object" === (void 0 === hn ? "undefined" : (0, Xt.A)(hn)) ? hn.protocol : ""), this.username = e[2] || "", this.password = e[3] || "", this.hostname = e[4], this.host = e[4], this.port = e[5] || "", this.pathname = e[6] || "/", this.search = e[7] || "", this.hash = e[8] || "", this.origin = this.protocol + "//" + this.hostname
|
|
}, this.toString = function () {
|
|
var e = this.protocol + "//";
|
|
return this.username && (e += this.username, this.password && (e += ":" + this.password), e += "@"), e += this.host, this.port && "80" !== this.port && (e += ":" + this.port), this.pathname && (e += this.pathname), this.search && (e += this.search), this.hash && (e += this.hash), e
|
|
}, e && this.set(e.toString())
|
|
}
|
|
var gn = new((0, $e.A)((function e() {
|
|
(0, Qe.A)(this, e)
|
|
}), [{
|
|
key: "handleShare",
|
|
value: function (e) {
|
|
if (e) {
|
|
var t = e.url;
|
|
if (t) {
|
|
var n = decodeURIComponent(t),
|
|
i = !1,
|
|
o = !1;
|
|
n.startsWith("http") && !this.isDetailUrl(n) && (i = !n.includes("t.piao.cn"), o = !0), setTimeout((0, Y.A)((0, R.A)().m((function e() {
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
return e.n = 1, T.A.navTo(n, void 0, {
|
|
needLogin: i,
|
|
alertRetry: o,
|
|
showLoading: !1
|
|
});
|
|
case 1:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
}))), 0)
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
key: "isDetailUrl",
|
|
value: function (e) {
|
|
var t = new fn(e);
|
|
return "/damai/detail/item.html" === t.pathname || "/damai/detail/mini.html" === t.pathname
|
|
}
|
|
}, {
|
|
key: "handleScancode",
|
|
value: function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e(t) {
|
|
var n, i, o, a, l;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
if (t && t.q) {
|
|
e.n = 1;
|
|
break
|
|
}
|
|
return e.a(2);
|
|
case 1:
|
|
n = decodeURIComponent(t.q), i = new fn(n), o = i.params.url, a = !1, l = !1, o ? (o.startsWith("http") && !this.isDetailUrl(o) && (a = !0, l = !0), setTimeout((0, Y.A)((0, R.A)().m((function e() {
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
return e.n = 1, T.A.navTo(o, {}, {
|
|
needLogin: a,
|
|
alertRetry: l,
|
|
showLoading: !1
|
|
});
|
|
case 1:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
}))), 0)) : setTimeout((0, Y.A)((0, R.A)().m((function e() {
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.n) {
|
|
case 0:
|
|
return e.n = 1, T.A.navTo(n, {}, {
|
|
needLogin: a,
|
|
alertRetry: l,
|
|
showLoading: !1
|
|
});
|
|
case 1:
|
|
return e.a(2)
|
|
}
|
|
}), e)
|
|
}))), 0);
|
|
case 2:
|
|
return e.a(2)
|
|
}
|
|
}), e, this)
|
|
})));
|
|
return function (t) {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}()
|
|
}, {
|
|
key: "hasNext",
|
|
value: function (e) {
|
|
return !(!e || !e.q && !e.url)
|
|
}
|
|
}, {
|
|
key: "handleNext",
|
|
value: function (e) {
|
|
var t = e.url || e.q || "",
|
|
n = e.liveviewType;
|
|
decodeURIComponent(t).indexOf("/h5-ultron-buy/index.html") > -1 || decodeURIComponent(t).indexOf("/confirmorder/index.html") > -1 ? m.A.sendOtherEvent("/yanchu.black_market.intercept_jump_order_directly", {
|
|
page: t,
|
|
error: "直接跳转小程序唤确认订单页拦截"
|
|
}) : (n && m.A.sendOtherEvent("/yanchu.liveview.dm_miniapp", {
|
|
liveviewType: n
|
|
}), this.hasNext(e) || nt.A.trySilentLogin(), this.handleShare(e), this.handleScancode(e))
|
|
}
|
|
}])),
|
|
yn = a(2645),
|
|
xn = a.n(yn),
|
|
An = a(8477),
|
|
wn = "key_fav_damai_mini",
|
|
jn = function () {
|
|
var e = (0, ue.Jt)("scene"),
|
|
t = "true" === p().getStorageSync(wn);
|
|
return 1001 !== e && !t
|
|
},
|
|
kn = function () {
|
|
p().setStorageSync(wn, "true")
|
|
},
|
|
Nn = a(7963),
|
|
Sn = a(9892),
|
|
bn = a(4694),
|
|
Cn = function () {
|
|
var e, t, n, i, o = p().getCurrentInstance().router,
|
|
a = (null == o || null === (e = o.params) || void 0 === e ? void 0 : e.url) || (null == o || null === (t = o.params) || void 0 === t ? void 0 : t.q) || "",
|
|
l = !1,
|
|
r = !1;
|
|
return (decodeURIComponent(a).indexOf("/h5-ultron-buy/index.html") > -1 || decodeURIComponent(a).indexOf("/confirmorder/index.html") > -1) && (l = !0), decodeURIComponent(a).indexOf("piao.cn/m/home") > -1 && (r = !0), !(r || l || (null == o || null === (n = o.params) || void 0 === n || !n.url) && (null == o || null === (i = o.params) || void 0 === i || !i.q))
|
|
},
|
|
In = function () {
|
|
var e = T.A.getTabParams("/pages/home/index", !0) || {},
|
|
t = p().getCurrentInstance().router;
|
|
return (0, E.A)((0, E.A)((0, E.A)({}, e), t), {}, {
|
|
shouldJumpPage: Cn()
|
|
})
|
|
},
|
|
Dn = a(334),
|
|
_n = function (e) {
|
|
var t, n = e.isShowPrivacyModal,
|
|
i = e.isErrorPage,
|
|
o = null === (t = (0, d.getCurrentPages)()) || void 0 === t ? void 0 : t[0];
|
|
"pages/home/index" === (null == o ? void 0 : o.route) && setTimeout((function () {
|
|
var e;
|
|
if (!n && !i) {
|
|
var t = (null == o || null === (e = o.__data__) || void 0 === e || null === (e = e.root) || void 0 === e ? void 0 : e.cn) || [];
|
|
(t = (0, f.rI)(t, {
|
|
scrollViewX: ["show-slider-tabs", "show-slider-content"],
|
|
popup: ["popup-drawer"]
|
|
})).length && p().setStorage({
|
|
key: "STASH_ROOT_CN__HOME",
|
|
data: {
|
|
version: Dn.A.appVersion,
|
|
stashRootCNList: t
|
|
},
|
|
fail: function (e) {}
|
|
})
|
|
}
|
|
}), 1500)
|
|
},
|
|
Tn = a(3338),
|
|
Pn = (0, Nn.A)({
|
|
spmB: "home"
|
|
}),
|
|
On = 1,
|
|
Fn = 0,
|
|
En = 0,
|
|
Ln = "weixin_home",
|
|
Mn = "1.0",
|
|
Un = !0;
|
|
|
|
function Rn() {
|
|
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
|
|
t = e.routerParams,
|
|
n = (0, b.useState)(0),
|
|
i = (0, s.A)(n, 2),
|
|
o = i[0],
|
|
a = i[1],
|
|
l = (0, b.useState)(h.Di.getUserSelectedCitySite()),
|
|
c = (0, s.A)(l, 2),
|
|
u = c[0],
|
|
m = c[1],
|
|
f = (0, b.useState)(null),
|
|
g = (0, s.A)(f, 2),
|
|
y = g[0],
|
|
x = g[1],
|
|
A = (0, b.useState)([]),
|
|
w = (0, s.A)(A, 2),
|
|
j = w[0],
|
|
k = w[1],
|
|
N = (0, b.useState)(),
|
|
S = (0, s.A)(N, 2),
|
|
C = S[0],
|
|
I = S[1],
|
|
D = (0, b.useState)(!0),
|
|
_ = (0, s.A)(D, 2),
|
|
T = _[0],
|
|
P = _[1],
|
|
O = (0, b.useState)(!0),
|
|
F = (0, s.A)(O, 2),
|
|
M = F[0],
|
|
U = F[1],
|
|
V = (0, b.useState)(!1),
|
|
W = (0, s.A)(V, 2),
|
|
q = W[0],
|
|
z = W[1],
|
|
B = (0, b.useState)(),
|
|
G = (0, s.A)(B, 2),
|
|
H = G[0],
|
|
X = G[1],
|
|
K = (0, b.useState)("init"),
|
|
Z = (0, s.A)(K, 2),
|
|
Q = Z[0],
|
|
$ = Z[1],
|
|
ee = (0, b.useState)(),
|
|
te = (0, s.A)(ee, 2),
|
|
ne = te[0],
|
|
ie = te[1],
|
|
oe = (0, b.useState)({}),
|
|
ae = (0, s.A)(oe, 2),
|
|
le = ae[0],
|
|
re = ae[1],
|
|
ce = (0, b.useState)(!1),
|
|
se = (0, s.A)(ce, 2),
|
|
ue = se[0],
|
|
de = se[1],
|
|
pe = (0, b.useRef)(!1);
|
|
(0, d.useLoad)((function () {
|
|
Un = !0, En = 0
|
|
})), (0, b.useEffect)((function () {
|
|
gn.handleNext(t)
|
|
}), []), (0, Sn.A)((function () {
|
|
var e;
|
|
P(!0), ie({}), y || null == Pn || null === (e = Pn.sendFCP) || void 0 === e || e.call(Pn), fe(), je()
|
|
}), [o]), (0, b.useEffect)((function () {
|
|
pe.current = ue
|
|
}), [ue]), (0, d.useDidShow)((function () {
|
|
Pn.initStartTime(Date.now(), !1), Object.keys(t).length && (0, An.H)(t), Cn() && (En += 1), 1 !== En && (y || a((function (e) {
|
|
return e + 1
|
|
})), L.Ay.sendPV({}, (0, E.A)({
|
|
_pageRoute: "pages/home/index"
|
|
}, t)), bn.Ay.isWX && wx.getPrivacySetting ? wx.getPrivacySetting({
|
|
success: function (e) {
|
|
e.needAuthorization ? de(!0) : me()
|
|
},
|
|
fail: function () {
|
|
me()
|
|
}
|
|
}) : me()), z(jn())
|
|
})), (0, d.useDidHide)((function () {
|
|
de(!1), Un = !1
|
|
}));
|
|
var me = function () {
|
|
h.Di.checkUserLocationChange().then((function (e) {
|
|
m(e), a((function (e) {
|
|
return e + 1
|
|
}))
|
|
})).catch((function (e) {}))
|
|
},
|
|
ve = function () {
|
|
kn(), z(!1)
|
|
},
|
|
he = function () {
|
|
var e, t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
|
|
n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {
|
|
isFilter: !1
|
|
},
|
|
i = (0, E.A)({
|
|
currentCityId: null == u ? void 0 : u.damaiId,
|
|
comboDamaiCityId: null == u ? void 0 : u.damaiId,
|
|
dmChannel: (0, He.JV)(),
|
|
categoryId: 0,
|
|
latitude: 0,
|
|
longitude: 0,
|
|
cityOption: Fn,
|
|
dateType: void 0,
|
|
sortType: "3",
|
|
isNeedUseLocation: void 0,
|
|
startDate: void 0,
|
|
endDate: void 0,
|
|
groupId: void 0,
|
|
pageIndex: On,
|
|
pageSize: 15,
|
|
optionParam: void 0,
|
|
comboChannel: "4"
|
|
}, t),
|
|
o = {
|
|
args: JSON.stringify(i),
|
|
dr: e,
|
|
patternName: Ln,
|
|
patternVersion: Mn
|
|
};
|
|
return (1 !== On || 1 === Fn || n.isFilter) && (e = JSON.stringify([{
|
|
targetSectionId: null == le ? void 0 : le.nodeId,
|
|
targetLayerId: null == le ? void 0 : le.floorId
|
|
}])), (0, E.A)((0, E.A)({}, o), {}, {
|
|
dr: e
|
|
})
|
|
},
|
|
fe = function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e() {
|
|
var t, n, i, o, a, l, r, c, u, d, p, m;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.p = e.n) {
|
|
case 0:
|
|
return e.p = 0, Ne(), t = [we()], 1 === On && t.push((0, Tn.w)()), e.n = 1, Promise.all(t);
|
|
case 1:
|
|
if (n = e.v, i = (0, s.A)(n, 2), o = i[0], a = i[1], o.requestParams, l = o.responseData, r = o.responseError, e.p = 2, !Array.isArray(null == a ? void 0 : a.patternNames)) {
|
|
e.n = 3;
|
|
break
|
|
}
|
|
if ("1" !== (null == (c = a.patternNames.find((function (e) {
|
|
return e.patternName === Ln && e.patternVersion === Mn
|
|
}))) ? void 0 : c.on)) {
|
|
e.n = 3;
|
|
break
|
|
}
|
|
throw {
|
|
returnCode: v.bo.FLOW_CONTROL, trackData: {
|
|
on: "1"
|
|
}
|
|
};
|
|
case 3:
|
|
if (!r) {
|
|
e.n = 4;
|
|
break
|
|
}
|
|
throw {
|
|
returnCode: v.bo.FLOW_CONTROL, trackData: {
|
|
ret_type: null == l ? void 0 : l.retType
|
|
}
|
|
};
|
|
case 4:
|
|
return ye(l), e.a(2);
|
|
case 5:
|
|
if (e.p = 5, p = e.v, !(On > 1 || p.returnCode !== v.bo.FLOW_CONTROL)) {
|
|
e.n = 6;
|
|
break
|
|
}
|
|
throw p;
|
|
case 6:
|
|
return e.p = 7, e.n = 8, ge();
|
|
case 8:
|
|
e.n = 10;
|
|
break;
|
|
case 9:
|
|
throw e.p = 9, e.v;
|
|
case 10:
|
|
e.n = 12;
|
|
break;
|
|
case 11:
|
|
e.p = 11, (null == (m = e.v) ? void 0 : m.errorCode) !== v.bo.CDN_ERROR ? ge() : X(m);
|
|
case 12:
|
|
return e.p = 12, null == Pn || null === (u = Pn.sendFMP) || void 0 === u || u.call(Pn), null == Pn || null === (d = Pn.sendFLT) || void 0 === d || d.call(Pn), e.f(12);
|
|
case 13:
|
|
return e.a(2)
|
|
}
|
|
}), e, null, [
|
|
[7, 9],
|
|
[2, 5],
|
|
[0, 11, 12, 13]
|
|
])
|
|
})));
|
|
return function () {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}(),
|
|
ge = function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e() {
|
|
var t, n;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.p = e.n) {
|
|
case 0:
|
|
return t = "https://oss.taopiaopiao.com/combo/".concat(Ln, "_").concat(Mn, "_bak_").concat(null == u ? void 0 : u.damaiId, ".json"), (0, L.kU)({
|
|
trackInfo: {
|
|
clickEventName: "/dmwechat.fe.downgrade",
|
|
spmc: "addtominiapp",
|
|
spmd: "dtip"
|
|
}
|
|
}, {
|
|
url: t
|
|
}), e.p = 1, e.n = 2, p().request({
|
|
url: t
|
|
});
|
|
case 2:
|
|
if (200 !== (null == (n = e.v) ? void 0 : n.statusCode)) {
|
|
e.n = 3;
|
|
break
|
|
}
|
|
return ye(n.data), e.a(2);
|
|
case 3:
|
|
e.n = 5;
|
|
break;
|
|
case 4:
|
|
throw e.p = 4, e.v, {
|
|
errorCode: v.bo.CDN_ERROR
|
|
};
|
|
case 5:
|
|
return e.a(2)
|
|
}
|
|
}), e, null, [
|
|
[1, 4]
|
|
])
|
|
})));
|
|
return function () {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}(),
|
|
ye = function (e) {
|
|
if (e) {
|
|
var t = new dn.WX(e);
|
|
x(t), _n({
|
|
isShowPrivacyModal: pe.current,
|
|
isErrorPage: "init" === Q && (null == H ? void 0 : H.errorCode)
|
|
});
|
|
var n = null == t ? void 0 : t.byComponentType(J);
|
|
re({
|
|
floorId: null == n ? void 0 : n.floorId,
|
|
nodeId: null == n ? void 0 : n.nodeId
|
|
}), I(n)
|
|
}
|
|
},
|
|
xe = xn()((0, Y.A)((0, R.A)().m((function e() {
|
|
var t, n, i, o, a, l, c, s, u;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.p = e.n) {
|
|
case 0:
|
|
if (e.p = 0, $("scroll"), T && (null == H || !H.errorCode)) {
|
|
e.n = 1;
|
|
break
|
|
}
|
|
return e.a(2);
|
|
case 1:
|
|
return U(!0), On += 1, e.n = 2, we(ne);
|
|
case 2:
|
|
if (c = e.v, s = new dn.WX(null === (t = c) || void 0 === t ? void 0 : t.responseData), u = null === (n = s) || void 0 === n ? void 0 : n.byComponentType(J), null !== (i = u) && void 0 !== i && null !== (i = i.listData) && void 0 !== i && i.length || 0 !== Fn) {
|
|
e.n = 4;
|
|
break
|
|
}
|
|
return Fn = 1, On = 1, e.n = 3, we(ne);
|
|
case 3:
|
|
c = e.v;
|
|
case 4:
|
|
if (s = new dn.WX(null === (o = c) || void 0 === o ? void 0 : o.responseData), u = null === (a = s) || void 0 === a ? void 0 : a.byComponentType(J), (null !== (l = u) && void 0 !== l && null !== (l = l.listData) && void 0 !== l && l.length || 1 !== Fn) && 10 !== On) {
|
|
e.n = 5;
|
|
break
|
|
}
|
|
return P(!1), e.a(2);
|
|
case 5:
|
|
I((function (e) {
|
|
var t, n = [].concat((0, r.A)((null == e ? void 0 : e.listData) || []), (0, r.A)((null === (t = u) || void 0 === t ? void 0 : t.listData) || []));
|
|
return (0, E.A)((0, E.A)((0, E.A)({}, e), u), {}, {
|
|
listData: n
|
|
})
|
|
})), e.n = 7;
|
|
break;
|
|
case 6:
|
|
e.p = 6, e.v, (0, d.showToast)({
|
|
title: v.n5.error,
|
|
icon: "none"
|
|
});
|
|
case 7:
|
|
return e.p = 7, U(!1), e.f(7);
|
|
case 8:
|
|
return e.a(2)
|
|
}
|
|
}), e, null, [
|
|
[0, 6, 7, 8]
|
|
])
|
|
}))), 100),
|
|
Ae = function () {
|
|
var e = (0, Y.A)((0, R.A)().m((function e() {
|
|
var t, n, i, o, a, l, r, c, s = arguments;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.p = e.n) {
|
|
case 0:
|
|
return t = s.length > 0 && void 0 !== s[0] ? s[0] : {}, n = s.length > 1 && void 0 !== s[1] && s[1], e.p = 1, ie(t), $("filter"), U(!1), Ne(), p().showLoading({
|
|
title: "加载中"
|
|
}), e.n = 2, we(t, {
|
|
isFilter: !0
|
|
});
|
|
case 2:
|
|
if (null != (a = e.v) && a.responseData) {
|
|
e.n = 3;
|
|
break
|
|
}
|
|
return e.a(2);
|
|
case 3:
|
|
l = new dn.WX(null == a ? void 0 : a.responseData), r = null == l ? void 0 : l.byComponentType(J), I(r), P(!(null == r || null === (i = r.listData) || void 0 === i || !i.length) && (null == r || null === (o = r.listData) || void 0 === o ? void 0 : o.length) >= 15 || n), e.n = 5;
|
|
break;
|
|
case 4:
|
|
e.p = 4, c = e.v, X(c);
|
|
case 5:
|
|
return e.p = 5, p().hideLoading(), e.f(5);
|
|
case 6:
|
|
return e.a(2)
|
|
}
|
|
}), e, null, [
|
|
[1, 4, 5, 6]
|
|
])
|
|
})));
|
|
return function () {
|
|
return e.apply(this, arguments)
|
|
}
|
|
}(),
|
|
we = (0, b.useCallback)((0, Y.A)((0, R.A)().m((function e() {
|
|
var t, n, i, o, a, l, r, c, u, d = arguments;
|
|
return (0, R.A)().w((function (e) {
|
|
for (;;) switch (e.p = e.n) {
|
|
case 0:
|
|
return t = d.length > 0 && void 0 !== d[0] ? d[0] : {}, n = d.length > 1 && void 0 !== d[1] ? d[1] : {}, i = t, o = {
|
|
errorCode: v.bo.FLOW_CONTROL,
|
|
returnMessage: v.n5.error
|
|
}, a = nt.A.getUtdid(), e.p = 1, X({}), i = he((0, E.A)((0, E.A)({}, i), {}, {
|
|
pci: a
|
|
}), n), e.n = 2, vn(i);
|
|
case 2:
|
|
return l = e.v, r = (0, s.A)(l, 2), c = r[0], u = r[1], e.a(2, {
|
|
responseData: u,
|
|
requestParams: i,
|
|
responseError: c ? o : null
|
|
});
|
|
case 3:
|
|
throw e.p = 3, e.v, {
|
|
responseData: {},
|
|
requestParams: i,
|
|
responseError: o
|
|
};
|
|
case 4:
|
|
return e.a(2)
|
|
}
|
|
}), e, null, [
|
|
[1, 3]
|
|
])
|
|
}))), [u, o, he]),
|
|
je = function () {
|
|
ut.M.wechatglobalconfig({
|
|
cityId: null == u ? void 0 : u.damaiId,
|
|
dmChannel: (0, He.JV)()
|
|
}).then((function (e) {
|
|
var t = (0, s.A)(e, 2),
|
|
n = t[0],
|
|
i = t[1];
|
|
if (!n) {
|
|
var o = Array.isArray((i || {}).searchTips) ? i.searchTips : [];
|
|
o = o.filter((function (e) {
|
|
return void 0 !== (null == e ? void 0 : e.keyword)
|
|
})), k(o)
|
|
}
|
|
})).catch((function (e) {}))
|
|
},
|
|
ke = function (e) {
|
|
var t;
|
|
return null == y || null === (t = y.byComponentType(e)) || void 0 === t ? void 0 : t.listData
|
|
},
|
|
Ne = function () {
|
|
On = 1, Fn = 0
|
|
};
|
|
return {
|
|
operation: Q,
|
|
filterParams: ne,
|
|
showFavTips: q,
|
|
homeData: y,
|
|
showData: C,
|
|
citySite: u,
|
|
fetchIndex: o,
|
|
searchTips: j,
|
|
hasMore: T,
|
|
loading: M,
|
|
errorData: H,
|
|
isFirstEnter: Un,
|
|
isShowPrivacyModal: ue,
|
|
setIsShowPrivacyModal: de,
|
|
setFetchIndex: a,
|
|
setCitySite: m,
|
|
componentData: ke,
|
|
initFetchData: fe,
|
|
onScrollFetchData: xe,
|
|
onFilterFetchData: Ae,
|
|
closeFavTips: ve
|
|
}
|
|
}
|
|
var Yn, Vn = a(9977),
|
|
Wn = a(1091),
|
|
qn = a(2658),
|
|
zn = !1,
|
|
Bn = !1,
|
|
Gn = function () {
|
|
var e, t = In(),
|
|
n = t.params,
|
|
i = t.shouldJumpPage;
|
|
(null == n ? void 0 : n.utm) && (0, ue.hZ)("utm_value", null == n ? void 0 : n.utm), (null == n ? void 0 : n.sqm) && (0, ue.hZ)("sqm_value", null == n ? void 0 : n.sqm);
|
|
var o = Rn({
|
|
routerParams: n || {},
|
|
shouldJumpPage: i
|
|
}),
|
|
a = o.operation,
|
|
l = o.filterParams,
|
|
C = o.showFavTips,
|
|
D = o.homeData,
|
|
_ = o.showData,
|
|
T = o.searchTips,
|
|
P = o.citySite,
|
|
E = o.fetchIndex,
|
|
M = o.hasMore,
|
|
R = o.loading,
|
|
Y = o.errorData,
|
|
V = o.isFirstEnter,
|
|
W = o.isShowPrivacyModal,
|
|
Z = o.setIsShowPrivacyModal,
|
|
Q = o.setFetchIndex,
|
|
$ = o.setCitySite,
|
|
ee = o.componentData,
|
|
te = o.initFetchData,
|
|
ne = o.onScrollFetchData,
|
|
ie = o.closeFavTips,
|
|
oe = o.onFilterFetchData,
|
|
ae = (0, b.useState)(0),
|
|
le = (0, s.A)(ae, 2),
|
|
re = le[0],
|
|
de = le[1],
|
|
pe = (0, b.useState)(!1),
|
|
me = (0, s.A)(pe, 2),
|
|
ve = me[0],
|
|
he = me[1],
|
|
fe = (0, b.useState)(""),
|
|
ge = (0, s.A)(fe, 2),
|
|
ye = ge[0],
|
|
xe = ge[1],
|
|
Ae = (0, b.useState)(!1),
|
|
we = (0, s.A)(Ae, 2),
|
|
je = we[0],
|
|
ke = we[1];
|
|
(0, d.useLoad)((function () {
|
|
if (!Bn) {
|
|
Bn = !0;
|
|
h.iL.on(qn.Ru.HOME_PRIVACY_POPUP, (function () {
|
|
Z(!0)
|
|
}))
|
|
}
|
|
})), (0, d.useDidShow)((function () {
|
|
var e = h.Di.getUserSelectedCitySite();
|
|
P.damaiId !== e.damaiId && (de(1), setTimeout((function () {
|
|
de(0)
|
|
})), $(e), Q((function (e) {
|
|
return e + 1
|
|
}))), (0, An.wW)();
|
|
var t = Se();
|
|
"pages/home/index" === (null == t ? void 0 : t.route) && (0, d.showTabBar)()
|
|
})), (0, b.useEffect)((function () {
|
|
var e = Se();
|
|
"pages/home/index" === (null == e ? void 0 : e.route) && (W ? (0, d.hideTabBar)() : (0, d.showTabBar)())
|
|
}), [W]);
|
|
var Ne = function () {
|
|
Z(!1);
|
|
var e = Se(),
|
|
t = null == e ? void 0 : e.options;
|
|
(0, d.reLaunch)({
|
|
url: V && e ? "/".concat(e.route).concat(Object.keys(t).length ? "?" : "").concat(Object.keys(t).map((function (e) {
|
|
return "".concat(e, "=").concat(t[e])
|
|
})).join("&")) : "/pages/home/index"
|
|
})
|
|
},
|
|
Se = function () {
|
|
var e = getCurrentPages();
|
|
return null == e ? void 0 : e[e.length - 1]
|
|
},
|
|
be = function () {
|
|
p().exitMiniProgram({
|
|
complete: function () {
|
|
m.A.sendGoldLog("OTHER", "/dianying.fe.events", {
|
|
name: "privacy-exit"
|
|
})
|
|
}
|
|
})
|
|
},
|
|
Ce = (0, b.useMemo)((function () {
|
|
return ((null == _ ? void 0 : _.listData) || []).findIndex((function (e) {
|
|
return 2 === (null == e ? void 0 : e.dataType)
|
|
}))
|
|
}), [_]);
|
|
(0, d.useShareAppMessage)((function () {
|
|
return g.A.createShareObject("大麦网", "", "/pages/home/index?sc=wxmini_share", {
|
|
notByHomeOpen: !0
|
|
})
|
|
})), (0, b.useLayoutEffect)((function () {
|
|
setTimeout((function () {
|
|
he(!0)
|
|
}), 1500)
|
|
}), []), (0, b.useEffect)((function () {
|
|
C && (0, L.Th)({
|
|
trackInfo: {
|
|
exposeEventName: "/dmwechat.home.addtominiapp_exp",
|
|
spmc: "addtominiapp",
|
|
spmd: "dtip"
|
|
}
|
|
})
|
|
}), [C]);
|
|
var Ie = function () {
|
|
return ee(B) && (0, O.jsx)(S.RW, {
|
|
children: (0, O.jsx)(F, {
|
|
className: "comp-banner",
|
|
dataList: ee(B),
|
|
cityCode: null == P ? void 0 : P.damaiId
|
|
})
|
|
})
|
|
},
|
|
De = function () {
|
|
return ee(G) && (0, O.jsx)(S.RW, {
|
|
children: (0, O.jsx)(ce, {
|
|
citySite: P,
|
|
fetchIndex: E,
|
|
data: ee(G)
|
|
})
|
|
})
|
|
},
|
|
_e = function () {
|
|
var e = ee(H);
|
|
return e && (0, O.jsx)(Oe, {
|
|
data: e,
|
|
scrollIntoView: ye,
|
|
setScrollIntoView: xe,
|
|
cityCode: null == P ? void 0 : P.damaiId,
|
|
onFilterFetchData: oe
|
|
})
|
|
},
|
|
Te = function () {
|
|
var e = (null == _ ? void 0 : _.listData) || [],
|
|
t = "filter" === a && !(null == Y || !Y.errorCode),
|
|
n = !(null != e && e.length || null != Y && Y.errorCode);
|
|
return (0, O.jsx)(y.A, {
|
|
className: (0, u.A)("show-list", (null == Y ? void 0 : Y.errorCode) && "error"),
|
|
children: t || n ? (0, O.jsx)(x.A, {
|
|
className: "error-list",
|
|
theme: "show",
|
|
type: n ? "empty" : "common",
|
|
message: n ? v.n5.noShows : v.n5.error,
|
|
showButton: t,
|
|
onClick: function () {
|
|
oe(l, !1)
|
|
}
|
|
}) : (0, O.jsxs)(O.Fragment, {
|
|
children: [!!e.length && e.map((function (e, t) {
|
|
var n = (0, A.G)(e);
|
|
return (0, O.jsxs)(y.A, {
|
|
className: "log-showcard-item",
|
|
dynamicData: e.action,
|
|
children: [Ce === t && (0, O.jsxs)(O.Fragment, {
|
|
children: [(0, O.jsx)(S.Ss, {
|
|
className: (0, u.A)("no-data", {
|
|
"current-city-nodata": 0 === Ce
|
|
}),
|
|
children: v.n5.currentCityNoShows
|
|
}), (0, O.jsx)(S.Ss, {
|
|
className: "nearby-city-title",
|
|
children: "其他城市的演出"
|
|
})]
|
|
}), (0, O.jsx)(w.A, {
|
|
data: n,
|
|
onClick: function () {
|
|
return function (e, t) {
|
|
var n, i = (null == e || null === (n = e.action) || void 0 === n || null === (n = n.item) || void 0 === n ? void 0 : n.trackInfo) || {},
|
|
o = i.spma,
|
|
a = i.spmb,
|
|
l = i.spmc,
|
|
r = i.spmd;
|
|
(0, Wn.A)(null == e ? void 0 : e.id, null == e ? void 0 : e.type, {
|
|
item: e,
|
|
spm_cnt: "".concat(o, ".").concat(a, ".").concat(l, ".").concat(r).concat(t),
|
|
contentlabel: null == e ? void 0 : e.name
|
|
})
|
|
}(e, t)
|
|
}
|
|
})]
|
|
}, "".concat(null == P ? void 0 : P.damaiId, "-").concat(e.id, "-").concat(t))
|
|
})), R && M && (0, O.jsx)(S.Ss, {
|
|
className: "show-list-loading",
|
|
children: "加载中..."
|
|
}), !R && !M && (0, O.jsx)(S.Ss, {
|
|
className: "no-data all-city",
|
|
children: v.n5.noShows
|
|
})]
|
|
})
|
|
})
|
|
},
|
|
Pe = function () {
|
|
var e, t, n = null !== (e = null == D || null === (t = D.data) || void 0 === t || null === (t = t.data) || void 0 === t ? void 0 : t.comboDegrade) && void 0 !== e && e,
|
|
i = ee(K);
|
|
return i && (0, O.jsx)(S.RW, {
|
|
children: (0, O.jsx)(sn, {
|
|
data: i,
|
|
cityCode: null == P ? void 0 : P.damaiId,
|
|
comboDegrade: n
|
|
})
|
|
})
|
|
},
|
|
Fe = I()((function () {
|
|
zn || (ke(!0), zn = !0), Yn && (clearTimeout(Yn), Yn = null), Yn = setTimeout((function () {
|
|
ke(!1), zn = !1
|
|
}), 1e3)
|
|
}), 500);
|
|
return null !== (e = (null == D ? void 0 : D.componentsArr) || []) && void 0 !== e && e.length ? (0, O.jsxs)(y.A, {
|
|
className: "bui-default-light home-container",
|
|
onMutate: function (e) {
|
|
(0, k.E0)(e, N)
|
|
},
|
|
onAutoClick: function (e, t) {
|
|
(0, k.MQ)(e, t, N)
|
|
},
|
|
children: [!W && (0, O.jsxs)(O.Fragment, {
|
|
children: [(0, O.jsxs)(S.Ss, {
|
|
className: "home-header-wrap",
|
|
style: {
|
|
paddingTop: "".concat((0, ue.Jt)("statusBarHeight"), "px"),
|
|
height: "".concat((0, ue.Jt)("menubarHeight") + (0, h.e4)(88), "px")
|
|
},
|
|
children: [(0, O.jsxs)(S.Ss, {
|
|
className: "home-title-bar",
|
|
style: {
|
|
height: (0, ue.Jt)("menubarHeight") + "px"
|
|
},
|
|
children: [(0, O.jsx)(S._V, {
|
|
className: "home-logo",
|
|
lazyLoad: !0,
|
|
mode: "aspectFill",
|
|
src: "https://gw.alicdn.com/imgextra/i3/O1CN01yE4LjG1e0ZO7uMDcW_!!6000000003809-2-tps-231-95.png"
|
|
}), C && (0, O.jsxs)(S.Ss, {
|
|
className: "fav-tip-wrapper",
|
|
style: {
|
|
marginRight: "105px"
|
|
},
|
|
onClick: function () {
|
|
(0, L.kU)({
|
|
trackInfo: {
|
|
clickEventName: "/dmwechat.home.addtominiapp_clk",
|
|
spmc: "addtominiapp",
|
|
spmd: "dtip"
|
|
}
|
|
}), ie()
|
|
},
|
|
children: ["点击", (0, r.A)(new Array(3)).map((function (e, t) {
|
|
return (0, O.jsx)(S.Ss, {
|
|
className: (0, u.A)("dot", {
|
|
large: 1 === t
|
|
})
|
|
}, t)
|
|
})), "添加小程序,购票更便捷", (0, O.jsx)(j.A, {
|
|
className: "close-icon",
|
|
htmlColor: "#ffffff"
|
|
}), (0, O.jsx)(S.Ss, {
|
|
className: "triangle"
|
|
})]
|
|
})]
|
|
}), (0, O.jsx)(U, {
|
|
searchTips: T,
|
|
onCityClk: function () {
|
|
(0, Vn.l)((function (e) {
|
|
if (e) {
|
|
de(1), setTimeout((function () {
|
|
de(0)
|
|
}));
|
|
var t = {
|
|
damaiId: e.code,
|
|
name: e.name
|
|
};
|
|
$(t), Q((function (e) {
|
|
return e + 1
|
|
})), h.Di.updateUserSelectedCity(t)
|
|
}
|
|
}), {})
|
|
},
|
|
cityName: P.name,
|
|
cityId: P.damaiId
|
|
})]
|
|
}), "init" === a && null != Y && Y.errorCode ? (0, O.jsx)(x.A, {
|
|
className: "error-page",
|
|
theme: "show",
|
|
onClick: te
|
|
}) : function () {
|
|
var e = (0, c.A)((0, c.A)((0, c.A)((0, c.A)({}, B, Ie), G, De), J, Te), H, _e),
|
|
t = (0, ue.Jt)("statusBarHeight") + (0, ue.Jt)("menubarHeight") + (0, h.e4)(88),
|
|
n = ((null == D ? void 0 : D.componentsArr) || []).filter((function (t) {
|
|
return !!e[t.type]
|
|
}));
|
|
return n = ve ? n : n.slice(0, 2), (0, O.jsx)(S.BM, {
|
|
scrollY: !0,
|
|
enhanced: !0,
|
|
enableFlex: !0,
|
|
scrollTop: re,
|
|
scrollIntoView: ye,
|
|
onScroll: Fe,
|
|
onScrollToLower: ne,
|
|
className: "home-scroll-wrap",
|
|
children: (0, O.jsxs)(S.Ss, {
|
|
className: "home-floor-wrap",
|
|
style: {
|
|
backgroundPosition: "0 -".concat(t, "px")
|
|
},
|
|
children: [ee(q) && (0, O.jsx)(S.RW, {
|
|
children: (0, O.jsx)(Ke, {
|
|
className: "comp-vajra-position",
|
|
cityCode: null == P ? void 0 : P.damaiId,
|
|
cityName: null == P ? void 0 : P.name,
|
|
dataList: ee(q)
|
|
})
|
|
}), (0, O.jsxs)(S.Ss, {
|
|
className: "home-content-wrap",
|
|
children: [Pe(), ee(z) && (0, O.jsx)(S.RW, {
|
|
children: (0, O.jsx)(se, {
|
|
className: "comp-square-card",
|
|
dataList: ee(z),
|
|
citySite: P
|
|
})
|
|
})]
|
|
}), n.map((function (t) {
|
|
return (0, O.jsxs)(b.Fragment, {
|
|
children: [t.type === H && (0, O.jsxs)(O.Fragment, {
|
|
children: [(0, f.X1)(), (0, O.jsx)(S.Ss, {
|
|
className: "filter-title",
|
|
children: "发现好演出"
|
|
})]
|
|
}), e[t.type]()]
|
|
}, t.type)
|
|
}))]
|
|
})
|
|
})
|
|
}(), (0, O.jsx)(Wt, {
|
|
cityId: P.damaiId
|
|
}), ee(X) && (0, O.jsx)(zt, {
|
|
isFloatWindowCollapse: je,
|
|
data: ee(X)
|
|
})]
|
|
}), (0, O.jsx)(un.A, {
|
|
open: W,
|
|
onConfirm: Ne,
|
|
onCancel: be
|
|
})]
|
|
}, P.damaiId) : (0, O.jsx)(un.A, {
|
|
open: W,
|
|
onConfirm: Ne,
|
|
onCancel: be
|
|
})
|
|
};
|
|
Gn.enableShareAppMessage = !0, Page((0, l.eU)(Gn, "pages/home/index", {
|
|
root: {
|
|
cn: i || []
|
|
}
|
|
}, {
|
|
navigationStyle: "custom",
|
|
navigationBarTextStyle: "white",
|
|
enablePullDownRefresh: !1,
|
|
enableShareAppMessage: !0,
|
|
initialRenderingCache: "static",
|
|
disableScroll: !0,
|
|
spmB: "home"
|
|
} || {}))
|
|
}
|
|
},
|
|
function (e) {
|
|
e.O(0, [6907, 8096, 2076], (function () {
|
|
return t = 144, e(e.s = t);
|
|
var t
|
|
})), e.O()
|
|
}
|
|
]);
|