From 6f36f219eafda17162050b42ba168748598d2884 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Thu, 12 Sep 2024 16:44:45 +0800 Subject: [PATCH] update --- src/pages/salon/index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/salon/index.tsx b/src/pages/salon/index.tsx index 1057600..8ac4118 100644 --- a/src/pages/salon/index.tsx +++ b/src/pages/salon/index.tsx @@ -28,7 +28,7 @@ import qrcode from "../../images/qrcode.png"; const Salon = () => { const [meetupQR, setmeetupQR] = useState(false); const [isWeChat, setisWeChat] = useState(false); - const [type, settype] = useState(window.localStorage.getItem("type")); + const [meetup, setmeetup] = useState(window.localStorage.getItem("meetup")); useEffect(() => { isWeChatFun(); @@ -148,7 +148,7 @@ const Salon = () => { {/* 已报名 */} - {type == 1 ? ( + {meetup == 1 ? ( { size="normal" className="joinSalon" onClick={() => { - if (type == 1) { + if (meetup == 1) { return false; } else { if (!!isWeChat) { - payh5(1, 290); + payh5('meetup', 2900); } else { setmeetupQR(true); } } }} > - {type == 1 ? "已报名" : `立即报名`} + {meetup == 1 ? "已报名" : `立即报名`}