diff --git a/src/App.tsx b/src/App.tsx index ea818e8..34f5b5e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,11 +6,12 @@ import { GlobalData, GlobalDataAction, GlobalDataActionType, - GlobalDispatchContext + GlobalDispatchContext, } from "./context/GlobalContext.ts"; import {Reducer, useReducer} from "react"; const App: React.FC = () => { + const globalDataReducer = (state: GlobalData, action: GlobalDataAction) => { if (action.type == GlobalDataActionType.REFRESH_SELF) { if(action.user) { diff --git a/src/components/card/CardProj.tsx b/src/components/card/CardProj.tsx index d1cff45..2b2a6bc 100644 --- a/src/components/card/CardProj.tsx +++ b/src/components/card/CardProj.tsx @@ -3,7 +3,7 @@ import { CheckOutlined, ClockCircleOutlined, CloseCircleOutlined, - CreditCardOutlined, + CreditCardOutlined, DeleteOutlined, DownloadOutlined, DownOutlined, EditOutlined, EyeOutlined, @@ -24,10 +24,10 @@ export default function CardProj(props: { item: IProj }) { const nav = useNavigate(); const data = props.item; const [messageApi, messageContext] = useMessage(); + const [projCategoryId, setProjCategoryId] = useState(data.projCategoryId); const [projCategoryName, setProjCategoryName] = useState(data.projCategoryName); const indexListContext = useContext(IndexListContext); - /** * 生成状态 */ @@ -110,7 +110,6 @@ export default function CardProj(props: { item: IProj }) { return ( <> - {messageContext}
银行账号 * | +
+ |
+
打款时间 * |
@@ -286,9 +300,10 @@ export default function Payment(props: IPaymentProps) {
rules={[{required: true, message: '请选择打款时间'}]}
>
|
@@ -351,7 +366,7 @@ export default function Payment(props: IPaymentProps) {
{
isCountdownTimeout ? (