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 [openId, setopenId] = useState("");
|
||||||
|
|
||||||
const [show, setShow] = react.useState(false);
|
const [show, setShow] = react.useState(false);
|
||||||
|
const [canelshow, setcanelshow] = react.useState(false);
|
||||||
|
|
||||||
const [value, setValue] = react.useState("");
|
const [value, setValue] = react.useState("");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -295,7 +297,7 @@ const details = () => {
|
|||||||
// title={`已报名人数 ${dataSource?.useridArr?.length ?? 0}`}
|
// title={`已报名人数 ${dataSource?.useridArr?.length ?? 0}`}
|
||||||
title={`已报名人数 ${
|
title={`已报名人数 ${
|
||||||
(dataSource?.peopleArr ?? []).filter((item: any) => {
|
(dataSource?.peopleArr ?? []).filter((item: any) => {
|
||||||
return item?.status === "2";
|
return item?.status === "2" || item?.status === "1";
|
||||||
})?.length >> 0
|
})?.length >> 0
|
||||||
}`}
|
}`}
|
||||||
|
|
||||||
@@ -361,6 +363,38 @@ const details = () => {
|
|||||||
</Dialog>
|
</Dialog>
|
||||||
</View>
|
</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)} /> */}
|
{/* <Cell title="组件调用" onClick={() => setShow(true)} /> */}
|
||||||
|
|
||||||
@@ -380,8 +414,7 @@ const details = () => {
|
|||||||
}
|
}
|
||||||
// if (isCheckin) {
|
// if (isCheckin) {
|
||||||
if (status === "2") {
|
if (status === "2") {
|
||||||
// 取消报名
|
setcanelshow(true)
|
||||||
canelActive();
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user