update
This commit is contained in:
@@ -28,7 +28,7 @@ import qrcode from "../../images/qrcode.png";
|
|||||||
const Salon = () => {
|
const Salon = () => {
|
||||||
const [meetupQR, setmeetupQR] = useState(false);
|
const [meetupQR, setmeetupQR] = useState(false);
|
||||||
const [isWeChat, setisWeChat] = useState(false);
|
const [isWeChat, setisWeChat] = useState(false);
|
||||||
const [type, settype] = useState(window.localStorage.getItem("type"));
|
const [meetup, setmeetup] = useState(window.localStorage.getItem("meetup"));
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
isWeChatFun();
|
isWeChatFun();
|
||||||
@@ -148,7 +148,7 @@ const Salon = () => {
|
|||||||
<View className="bottomDiv"></View>
|
<View className="bottomDiv"></View>
|
||||||
|
|
||||||
{/* 已报名 */}
|
{/* 已报名 */}
|
||||||
{type == 1 ? (
|
{meetup == 1 ? (
|
||||||
<View className="model-emoji">
|
<View className="model-emoji">
|
||||||
<Image
|
<Image
|
||||||
// style="width: 100%;height: 240px;background: #fff;"
|
// style="width: 100%;height: 240px;background: #fff;"
|
||||||
@@ -163,18 +163,18 @@ const Salon = () => {
|
|||||||
size="normal"
|
size="normal"
|
||||||
className="joinSalon"
|
className="joinSalon"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (type == 1) {
|
if (meetup == 1) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
if (!!isWeChat) {
|
if (!!isWeChat) {
|
||||||
payh5(1, 290);
|
payh5('meetup', 2900);
|
||||||
} else {
|
} else {
|
||||||
setmeetupQR(true);
|
setmeetupQR(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{type == 1 ? "已报名" : `立即报名`}
|
{meetup == 1 ? "已报名" : `立即报名`}
|
||||||
</AtButton>
|
</AtButton>
|
||||||
|
|
||||||
<View className="meetupQR">
|
<View className="meetupQR">
|
||||||
|
|||||||
Reference in New Issue
Block a user