feat: 取消按钮
This commit is contained in:
File diff suppressed because one or more lines are too long
2
dist/pages/my/index.js
vendored
2
dist/pages/my/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -195,6 +195,9 @@ const details = () => {
|
||||
if (status === "1") {
|
||||
newstatusName = "待审核";
|
||||
}
|
||||
if (status === "5") {
|
||||
newstatusName = "审核不通过";
|
||||
}
|
||||
} else {
|
||||
btnStatus.forEach((item: any) => {
|
||||
let status: any = dataSource?.Status;
|
||||
@@ -460,11 +463,13 @@ const details = () => {
|
||||
<Dialog
|
||||
id="vanDialog4"
|
||||
title="取消后,再次报名,会严格审核"
|
||||
// showCancelButton={false}
|
||||
showCancelButton={true}
|
||||
// showConfirmButton={false}
|
||||
// confirmButtonOpenType="getUserInfo"
|
||||
show={canelshow}
|
||||
onClose={() => setShow(false)}
|
||||
cancelButtonColor={'green'}
|
||||
confirmButtonColor={'red'}
|
||||
onConfirm={() => {
|
||||
// 取消报名
|
||||
canelActive();
|
||||
|
||||
@@ -29,8 +29,7 @@ import {
|
||||
updateTableid,
|
||||
} from "../../utils/index";
|
||||
import { type } from "../../../config";
|
||||
import { Divider } from '@antmjs/vantui'
|
||||
|
||||
import { Divider } from "@antmjs/vantui";
|
||||
|
||||
const my = (props: any) => {
|
||||
// const [active, setActive] = react.useState(props?.active ?? 0);
|
||||
@@ -44,16 +43,15 @@ const my = (props: any) => {
|
||||
const [isin, setisin] = useState(false); //0初始 1未登录 2有手机号
|
||||
const [initOK, setinitOK] = useState(false); //是否加载完成
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
getLogin();
|
||||
}, []);
|
||||
|
||||
const getLogin = async () => {
|
||||
let isLogin: any = await phoneLogin();
|
||||
console.log('isLogin',isLogin)
|
||||
console.log("isLogin", isLogin);
|
||||
setisin(isLogin);
|
||||
setinitOK(true)
|
||||
setinitOK(true);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
@@ -81,7 +79,7 @@ const my = (props: any) => {
|
||||
setactiveidArr(res?.data?.activeidArr ?? []);
|
||||
|
||||
// 获取当前用户参与的活动
|
||||
getDetails(openid,'1');
|
||||
getDetails(openid, "1");
|
||||
},
|
||||
};
|
||||
getTable(objParams);
|
||||
@@ -160,7 +158,7 @@ const my = (props: any) => {
|
||||
);
|
||||
};
|
||||
|
||||
const updateAuth =async (userRes:any) => {
|
||||
const updateAuth = async (userRes: any) => {
|
||||
let newobj = {
|
||||
tableName: "userInfo",
|
||||
id: userRes?.data?.[0]?._id,
|
||||
@@ -216,7 +214,10 @@ const my = (props: any) => {
|
||||
tableName: "userInfo",
|
||||
id: userRes?.data?.[0]?._id,
|
||||
objData: {
|
||||
authInfo: [...(userRes?.data?.[0]?.authInfo ?? []),AddressRes],
|
||||
authInfo: [
|
||||
...(userRes?.data?.[0]?.authInfo ?? []),
|
||||
AddressRes,
|
||||
],
|
||||
},
|
||||
okFun: async (okFunres: any) => {
|
||||
console.log("添加用户认证信息", okFunres);
|
||||
@@ -260,25 +261,21 @@ const my = (props: any) => {
|
||||
<Tabs
|
||||
sticky={true}
|
||||
active={currentIndex}
|
||||
onClick={(e: any) => {
|
||||
onClick={async (e: any) => {
|
||||
console.log("e", e);
|
||||
getDetails(openId, e?.detail?.name);
|
||||
setcurrentIndex(e?.detail?.index);
|
||||
await getDetails(openId, e?.detail?.name);
|
||||
}}
|
||||
>
|
||||
{/* <Tab title={`待审核 ${detailsData?.length??0}`} name="1"> */}
|
||||
<Tab title={`待审核`} name="1">
|
||||
|
||||
</Tab>
|
||||
<Tab title={`待审核`} name="1"></Tab>
|
||||
{/* <Tab title="未通过" name="5"></Tab> */}
|
||||
{/* <Tab title="已报名">
|
||||
<View>222</View>
|
||||
</Tab> */}
|
||||
<Tab title="待参加" name="2">
|
||||
|
||||
</Tab>
|
||||
<Tab title="已取消" name="4">
|
||||
|
||||
</Tab>
|
||||
<Tab title="待参加" name="2"></Tab>
|
||||
<Tab title="已取消" name="4"></Tab>
|
||||
|
||||
{/* <Tab title="已结束" name='4'>44</Tab> */}
|
||||
</Tabs>
|
||||
<View>{CardCom()}</View>
|
||||
|
||||
Reference in New Issue
Block a user