import { useState } from 'react';
import { CheckCircle, X } from 'lucide-react';
const productOptions = [
'校企益邦',
'实训管理平台',
'智慧党建平台',
'科研管理系统',
];
const initialFormState = {
name: '',
phone: '',
company: '',
product: '',
message: '',
};
export default function ContactForm() {
const [form, setForm] = useState(initialFormState);
const [showModal, setShowModal] = useState(false);
function handleChange(e) {
const { name, value } = e.target;
setForm((prev) => ({ ...prev, [name]: value }));
}
function handleSubmit(e) {
e.preventDefault();
setShowModal(true);
console.log('提交表单', form);
setForm(initialFormState);
}
function closeModal() {
setShowModal(false);
}
const inputClass = 'w-full px-4 py-3 border border-gray-200 rounded-xl text-base focus:outline-none focus:ring-2 focus:ring-[#004ec4]/30 focus:border-[#004ec4]/60 transition-shadow placeholder-[#94a3b8] bg-white text-[#334155]';
return (
<>
填写表单,我们将在 1 个工作日内与您联系
在线咨询
感谢您的咨询!我们将在 1 个工作日 内与您联系