footer.jsx 4.33 KB
Newer Older
wuhao's avatar
wuhao committed
1
import React, { useState } from 'react';
wuhao's avatar
wuhao committed
2
import { Col, Row } from 'antd';
wuhao's avatar
wuhao committed
3
import { history } from 'umi';
wuhao's avatar
wuhao committed
4

wuhao's avatar
wuhao committed
5
const ContentList = ({ title, listData }) => {
wuhao's avatar
wuhao committed
6 7
  return (
    <div className="footer-content">
wuhao's avatar
wuhao committed
8
      <h2>{title}</h2>
wuhao's avatar
wuhao committed
9 10
      <div>
        {listData.map((item, index) => (
wuhao's avatar
wuhao committed
11 12 13 14 15 16 17 18 19
          <li
            onClick={() => {
              history.replace({
                pathname: item.link,
                query: item?.query ?? {},
              });
            }}
          >
            <a>{item.text}</a>
wuhao's avatar
wuhao committed
20 21 22 23 24 25 26 27 28 29
          </li>
        ))}
      </div>
    </div>
  );
};

export default () => {
  const list1 = [
    {
wuhao's avatar
wuhao committed
30
      link: '/about/insert',
wuhao's avatar
wuhao committed
31 32 33
      text: '走进南高',
    },
    {
wuhao's avatar
wuhao committed
34
      link: '/about/honer',
wuhao's avatar
wuhao committed
35 36 37
      text: '南高荣誉',
    },
    {
wuhao's avatar
wuhao committed
38
      link: '/about/news',
wuhao's avatar
wuhao committed
39 40 41
      text: '南高资讯',
    },
    {
wuhao's avatar
wuhao committed
42
      link: '/about/join',
wuhao's avatar
wuhao committed
43 44 45 46 47 48
      text: '加入南高',
    },
  ];

  const list2 = [
    {
wuhao's avatar
wuhao committed
49
      link: '/factory/typea/mes',
wuhao's avatar
wuhao committed
50 51 52
      text: 'MES智能制造管理系统',
    },
    {
wuhao's avatar
wuhao committed
53
      link: '/factory/typea/wms',
wuhao's avatar
wuhao committed
54 55 56
      text: 'WMS智能仓储管理系统',
    },
    {
wuhao's avatar
wuhao committed
57
      link: '/factory/typea/ems',
wuhao's avatar
wuhao committed
58 59 60
      text: 'EMS设备运维管理系统',
    },
    {
wuhao's avatar
wuhao committed
61
      link: '/factory/typea/iot',
wuhao's avatar
wuhao committed
62
      text: 'IoT数据采集系统',
wuhao's avatar
wuhao committed
63 64
    },
    {
wuhao's avatar
wuhao committed
65
      link: '/factory/typea/plm',
wuhao's avatar
wuhao committed
66 67 68
      text: 'PLM产品生命周期管理系统',
    },
    {
wuhao's avatar
wuhao committed
69
      link: '/factory/typea/pdm',
wuhao's avatar
wuhao committed
70 71 72
      text: 'PDM产品数据管理系统',
    },
    {
wuhao's avatar
wuhao committed
73
      link: '/factory/typeb/datagate',
wuhao's avatar
wuhao committed
74 75 76 77 78 79
      text: '智能网关',
    },
  ];

  const list3 = [
    {
wuhao's avatar
wuhao committed
80 81 82 83
      link: '/download',
      query: {
        key: '1',
      },
wuhao's avatar
wuhao committed
84 85 86
      text: '硬件产品资料',
    },
    {
wuhao's avatar
wuhao committed
87 88 89 90
      link: '/download',
      query: {
        key: '2',
      },
wuhao's avatar
wuhao committed
91 92 93
      text: '软件产品资料',
    },
    {
wuhao's avatar
wuhao committed
94 95 96 97
      link: '/download',
      query: {
        key: '3',
      },
wuhao's avatar
wuhao committed
98 99 100 101 102 103
      text: '宣传画册及其他',
    },
  ];
  return (
    <div id="webFooter">
      <div>
wuhao's avatar
wuhao committed
104 105
        <Row style={{ display: 'flex', justifyContent: 'space-around' }}>
          <Col xs={24} sm={8} xl={8} xxl={6}>
wuhao's avatar
wuhao committed
106
            <ContentList key="12" title="关于南高" listData={list1} />
wuhao's avatar
wuhao committed
107 108
          </Col>
          <Col xs={24} sm={8} xl={8} xxl={6}>
wuhao's avatar
wuhao committed
109
            <ContentList key="13" title="智能工厂解决方案" listData={list2} />
wuhao's avatar
wuhao committed
110 111
          </Col>
          <Col xs={24} sm={8} xl={8} xxl={6}>
wuhao's avatar
wuhao committed
112
            <ContentList key="14" title="下载中心" listData={list3} />
wuhao's avatar
wuhao committed
113 114 115
          </Col>
          <Col xs={24} sm={24} xl={24} xxl={6}>
            <div className="footer-content">
wuhao's avatar
wuhao committed
116 117 118 119 120 121 122
              <button
                onClick={() => {
                  history.push('/about/contact');
                }}
              >
                联系我们
              </button>
wuhao's avatar
wuhao committed
123 124 125
              <div className="contact">
                <li>电话&nbsp;&nbsp;&nbsp;&nbsp;025-86111901</li>
                <li>邮箱&nbsp;&nbsp;&nbsp;&nbsp;center@jsnangao.com</li>
wuhao's avatar
wuhao committed
126
                <li>地址&nbsp;&nbsp;&nbsp;&nbsp;南京市江宁区东南大学路33号</li>
wuhao's avatar
wuhao committed
127
                <div>
wuhao's avatar
wuhao committed
128
                  <div className="nangao">
wuhao's avatar
wuhao committed
129 130 131 132 133
                    <img
                      src={
                        'https://ng-website.oss-cn-hangzhou.aliyuncs.com/assets/code1.jpg'
                      }
                    />
wuhao's avatar
wuhao committed
134 135
                    <span>南高公众号</span>
                  </div>
wuhao's avatar
wuhao committed
136
                  <div className="nangao">
wuhao's avatar
wuhao committed
137 138 139 140 141
                    <img
                      src={
                        'https://ng-website.oss-cn-hangzhou.aliyuncs.com/assets/code2.jpg'
                      }
                    />
wuhao's avatar
wuhao committed
142 143
                    <span>联盟公众号</span>
                  </div>
wuhao's avatar
wuhao committed
144
                  <div className="nangao">
wuhao's avatar
wuhao committed
145 146 147 148 149
                    <img
                      src={
                        'https://ng-website.oss-cn-hangzhou.aliyuncs.com/assets/code3.jpg'
                      }
                    />
wuhao's avatar
wuhao committed
150 151 152
                    <span>促进会公众号</span>
                  </div>
                </div>
wuhao's avatar
wuhao committed
153 154
              </div>
            </div>
wuhao's avatar
wuhao committed
155 156
          </Col>
        </Row>
wuhao's avatar
wuhao committed
157 158
      </div>
      <div className="footer-copyright">
wuhao's avatar
wuhao committed
159
        Copyright © {new Date().getFullYear()} &nbsp;
krysent's avatar
krysent committed
160 161 162 163
        江苏南高智能装备创新中心有限公司&nbsp;&nbsp;&nbsp;版权所有&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <a href="https://beian.miit.gov.cn" target="_blank">
          备案号:苏ICP备18015471号-1
        </a>
wuhao's avatar
wuhao committed
164 165 166 167
      </div>
    </div>
  );
};