feat: 报名逻辑
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -29,6 +29,8 @@ const details = () => {
|
||||
const [openId, setopenId] = useState("");
|
||||
|
||||
const [show, setShow] = react.useState(false);
|
||||
const [canelshow, setcanelshow] = react.useState(false);
|
||||
|
||||
const [value, setValue] = react.useState("");
|
||||
|
||||
useEffect(() => {
|
||||
@@ -295,7 +297,7 @@ const details = () => {
|
||||
// title={`已报名人数 ${dataSource?.useridArr?.length ?? 0}`}
|
||||
title={`已报名人数 ${
|
||||
(dataSource?.peopleArr ?? []).filter((item: any) => {
|
||||
return item?.status === "2";
|
||||
return item?.status === "2" || item?.status === "1";
|
||||
})?.length >> 0
|
||||
}`}
|
||||
|
||||
@@ -361,6 +363,38 @@ const details = () => {
|
||||
</Dialog>
|
||||
</View>
|
||||
|
||||
<View>
|
||||
<Dialog
|
||||
id="vanDialog4"
|
||||
title="取消后,再次报名,会严格审核"
|
||||
// showCancelButton={false}
|
||||
// showConfirmButton={false}
|
||||
// confirmButtonOpenType="getUserInfo"
|
||||
show={canelshow}
|
||||
onClose={() => setShow(false)}
|
||||
onConfirm={()=>{
|
||||
// 取消报名
|
||||
canelActive()
|
||||
}}
|
||||
>
|
||||
<View className="wechatCode">
|
||||
{/*
|
||||
<Button
|
||||
style={{ width: "130px", marginTop: "20px" }}
|
||||
type="primary"
|
||||
round
|
||||
size="small"
|
||||
onClick={() => {
|
||||
setcanelshow(false);
|
||||
canelActive()
|
||||
}}
|
||||
>
|
||||
我想好了
|
||||
</Button> */}
|
||||
</View>
|
||||
</Dialog>
|
||||
</View>
|
||||
|
||||
{/* 调试按钮 */}
|
||||
{/* <Cell title="组件调用" onClick={() => setShow(true)} /> */}
|
||||
|
||||
@@ -380,8 +414,7 @@ const details = () => {
|
||||
}
|
||||
// if (isCheckin) {
|
||||
if (status === "2") {
|
||||
// 取消报名
|
||||
canelActive();
|
||||
setcanelshow(true)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user