zhengyiming
2025-07-11 cd837f7efcfaf427b478236c5cd2eb98e78d170b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import Icon, {
  GlobalOutlined,
  IconProvider,
  MailOutlined,
  PhoneOutlined,
} from '@ant-design/icons';
import { Button, Card, Col, Divider, Row, Typography } from 'antd';
// import QRCode from 'qrcode.react';
import EnrollImage1 from '@/assets/home/enroll-01.png';
import EnrollImage2 from '@/assets/home/enroll-02.png';
import IconQrcode from '@/assets/icon-qrcode.jpg';
import { downloadFileByUrl } from '@/utils/common';
import { useCallback } from 'react';
 
const { Title, Paragraph, Text } = Typography;
 
export const HomeEnrollFileList2025 = [
  {
    name: '2025年大赛报名表',
    icon: EnrollImage1,
    fileUrl:
      'https://waterdroptest2.oss-cn-hangzhou.aliyuncs.com/NBHRXH/Assets/2025%E5%B9%B4%E5%A4%A7%E8%B5%9B%E6%8A%A5%E5%90%8D%E8%A1%A8.doc',
  },
  {
    name: '2025年大赛商业计划书模板',
    icon: EnrollImage2,
    fileUrl:
      'https://waterdroptest2.oss-cn-hangzhou.aliyuncs.com/NBHRXH/Assets/2025%E5%B9%B4%E5%A4%A7%E8%B5%9B%E5%95%86%E4%B8%9A%E8%AE%A1%E5%88%92%E4%B9%A6%E6%A8%A1%E6%9D%BF.docx',
  },
];
 
const FooterComponent = () => {
  return (
    <Row gutter={48} justify="center" style={{ paddingTop: 64 }}>
      {/* 联系信息 */}
      <Col xs={24} sm={12} md={8} lg={6}>
        <Title level={4} style={{ marginBottom: 24 }}>
          联系我们
        </Title>
        <div className="contact-item">
          <PhoneOutlined style={{ fontSize: 18, marginRight: 12 }} />
          <Text style={{ fontSize: 16 }}>0574-83867368,0574-83867307</Text>
        </div>
        <div className="contact-item">
          <MailOutlined style={{ fontSize: 18, marginRight: 12 }} />
          <Text style={{ fontSize: 16 }}>nb-cyds@cnnbhr.com</Text>
        </div>
        <div className="contact-item">
          <GlobalOutlined style={{ fontSize: 18, marginRight: 12 }} />
          <Text style={{ fontSize: 16 }}>www.cnnbhr.com</Text>
        </div>
      </Col>
 
      {/* 二维码 */}
      <Col xs={24} sm={12} md={8} lg={6}>
        <Title level={4} style={{ marginBottom: 24 }}>
          扫码关注
        </Title>
        <Card
          style={{
            width: 160,
            height: 160,
            textAlign: 'center',
            boxShadow: '0 2px 8px rgba(0, 0, 0, 0.09)',
            margin: '0 auto',
          }}
          bodyStyle={{
            padding: 0,
          }}
        >
          {/* <QRCode value="https://www.example.com" size={120} /> */}
          <img src={IconQrcode} style={{ width: '100%', height: '100%' }} />
        </Card>
      </Col>
    </Row>
  );
};
 
export function FooterApply() {
  const handleDownload = useCallback((fileUrl) => {
    downloadFileByUrl(fileUrl);
  });
 
  return (
    <Row
      gutter={48}
      justify="center"
      style={{ paddingTop: 64, maxWidth: 1200, margin: '0 auto' }}
    >
      {HomeEnrollFileList2025.map((item, index) => (
        <Col xs={24} sm={12} md={12} lg={12} key={item.fileUrl}>
          <div className="enroll-item">
            <div className="enroll-icon">
              <img src={item.icon} />
            </div>
            <div className="enroll-info">
              <h4 className="enroll-title ellipsis">{item.name}</h4>
              <Button
                type="primary"
                class="download-btn"
                onClick={() => handleDownload(item.fileUrl, item.name)}
              >
                点击下载
              </Button>
            </div>
          </div>
        </Col>
      ))}
    </Row>
  );
}
 
export default FooterComponent;