update
This commit is contained in:
@@ -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 = () => {
|
||||
<View className="bottomDiv"></View>
|
||||
|
||||
{/* 已报名 */}
|
||||
{type == 1 ? (
|
||||
{meetup == 1 ? (
|
||||
<View className="model-emoji">
|
||||
<Image
|
||||
// style="width: 100%;height: 240px;background: #fff;"
|
||||
@@ -163,18 +163,18 @@ const Salon = () => {
|
||||
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 ? "已报名" : `立即报名`}
|
||||
</AtButton>
|
||||
|
||||
<View className="meetupQR">
|
||||
|
||||
Reference in New Issue
Block a user