111 lines
3.3 KiB
JavaScript
111 lines
3.3 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 5d5b47876e53e564.da1ba52a93.js
|
|
* Module id: 819154
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e) => {
|
|
"use strict";
|
|
var t = e.i(462214),
|
|
r = e.i(358379);
|
|
e.i(606823);
|
|
var n = e.i(626673);
|
|
e.i(370357);
|
|
var o = e.i(492394),
|
|
a = e.i(373518),
|
|
i = e.i(424868);
|
|
e.s(
|
|
[
|
|
"default",
|
|
0,
|
|
({ onCheckEffect: e }) => {
|
|
let [l, s] = (0, r.useState)(!1),
|
|
[c, u] = (0, r.useState)(""),
|
|
d = (0, n.useReportLog)(),
|
|
{ currentLoginUserInfo: f } = (0, o.usePersonalInfo)();
|
|
return (
|
|
(0, r.useEffect)(() => {
|
|
let t = new URL(window.location.href).searchParams.get(
|
|
"referralCode",
|
|
);
|
|
if (t) {
|
|
if (!f) return;
|
|
(0, a.checkInviteLink)(t)
|
|
.then(() => {
|
|
d({ e: "invitation.link_visit" }),
|
|
e({
|
|
referralCode: t,
|
|
activityUuid: "6c8475681234111188881234567890ab",
|
|
});
|
|
})
|
|
.catch((e) => {
|
|
e?.msg &&
|
|
(s(!0), u(e.msg), d({ e: "invitation.abnormal_block" }));
|
|
});
|
|
}
|
|
}, []),
|
|
(0, t.jsx)(i.Modal, {
|
|
open: l,
|
|
centered: !0,
|
|
onCancel: () => {
|
|
s(!1);
|
|
},
|
|
onOk: () => {
|
|
s(!1);
|
|
},
|
|
width: 517,
|
|
title: "邀请链接无效",
|
|
okText: "好的 ",
|
|
cancelText: "取消",
|
|
className: "[&_.ant-modal-close]:right-[24px]",
|
|
styles: {
|
|
footer: {
|
|
display: "flex",
|
|
justifyContent: "end",
|
|
padding: "0px 24px 24px 24px",
|
|
marginTop: 0,
|
|
},
|
|
header: {
|
|
padding: "16px 0px 15px 24px",
|
|
background: "#F8FAFE",
|
|
margin: 0,
|
|
},
|
|
body: { padding: "24px 24px 12px 24px" },
|
|
content: { padding: 0 },
|
|
},
|
|
okButtonProps: {
|
|
style: {
|
|
height: 36,
|
|
display: "flex",
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
lineHeight: "36px",
|
|
borderRadius: 8,
|
|
padding: "8px 12px",
|
|
fontSize: 14,
|
|
fontWeight: 400,
|
|
color: "#FFFFFF",
|
|
background:
|
|
"linear-gradient(134.85deg, #FF5132 6.48%, #FF731D 96.88%)",
|
|
},
|
|
},
|
|
cancelButtonProps: {
|
|
style: {
|
|
height: 36,
|
|
padding: "8px 12px",
|
|
display: "none",
|
|
alignItems: "center",
|
|
justifyContent: "center",
|
|
},
|
|
},
|
|
children: c,
|
|
})
|
|
);
|
|
},
|
|
],
|
|
819154,
|
|
);
|
|
};
|
|
|
|
export default moduleFactory;
|