App.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. import React from "react";
  2. import Layout from "./Layout";
  3. import { Image, Space, Row, Col, Button, Divider, Tabs, Carousel } from "antd";
  4. import HomeImage from './static/web/home/home.jpg';
  5. import {
  6. CheckCircleTwoTone, UserOutlined, AccountBookOutlined, CheckCircleOutlined,
  7. LineChartOutlined, PartitionOutlined, LeftCircleFilled, RightCircleFilled,
  8. AlertOutlined, BarsOutlined,
  9. } from '@ant-design/icons';
  10. import ComputerSrc from './static/web/home/computer.png';
  11. import LogoSrc from "./static/web/home/logo.png";
  12. import MoneySrc from './static/web/org/bsns/4.jpg';
  13. import MeetingSrc8 from './static/web/org/bsns/8.jpg';
  14. import MeetingSrc9 from './static/web/org/bsns/9.jpg';
  15. import MeetingSrc10 from './static/web/org/bsns/10.jpg';
  16. import MeetingSrc11 from './static/web/org/bsns/11.jpg';
  17. import { useNavigate } from "react-router-dom";
  18. import { ToForm } from "./component/Menu";
  19. import "./App.less";
  20. const style = {
  21. textAlign: 'center',
  22. }
  23. const items = [UserOutlined, AccountBookOutlined,
  24. CheckCircleOutlined, LineChartOutlined, PartitionOutlined]
  25. .map((Icon, i) => {
  26. const id = String(i + 1);
  27. return {
  28. label: (
  29. <span>
  30. <Icon style={{ color: '#58BE70' }} />
  31. 功能名称
  32. </span>
  33. ),
  34. key: id,
  35. children: (
  36. <>
  37. <div className="requirement_title_name">
  38. 名称占位占位
  39. </div>
  40. <Row>
  41. <Col span={12}>
  42. <p>功能介绍占位功能介绍占位功能介绍占位功能介绍占位功能介绍占位功能介绍占位功能介绍占位功能介绍占位功能介绍占位功能介绍占位功能介绍占位功能介绍占位功能介绍占位</p>
  43. <div className="requirement_more">
  44. <Button>查看更多</Button>
  45. <ToForm />
  46. </div>
  47. </Col>
  48. <Col span={12}>
  49. <Image src={ComputerSrc} width={520} height={230} preview={false} />
  50. </Col>
  51. </Row>
  52. </>
  53. ),
  54. };
  55. });
  56. const image_items = new Array(5).fill(null);
  57. const getItem = (index) => {
  58. return image_items.map((_, i) => (
  59. <Col key={i} span={4} offset={i === 0 ? 0 : 1} className='choice_img_item'>
  60. <Image preview={false} src={LogoSrc} />
  61. </Col>
  62. ))
  63. };
  64. const CarouselItem = image_items.map((_, index) => (
  65. <div key={index}>
  66. <Row justify='space-around'>
  67. {getItem(index)}
  68. </Row>
  69. </div>
  70. ));
  71. const ImgList = (props) => <Col span={7}>
  72. <Image src={MoneySrc} width={'100%'} height={200} preview={false} />
  73. <div className="choice_radius">
  74. <img className="mdsrc" src={LogoSrc} alt="" />
  75. </div>
  76. <div className="choice_us_detail">
  77. <p>墨刀</p>
  78. <p>案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位案例占位</p>
  79. <Button size='large' onClick={props.onClick}>查看更多</Button>
  80. </div>
  81. </Col>
  82. export const ImgMap = (props) => <Row className="choice_us" style={{ width: '80%', margin: '0 auto' }} justify='space-between'>
  83. <ImgList onClick={props.onClick} />
  84. <ImgList onClick={props.onClick} />
  85. <ImgList onClick={props.onClick} />
  86. </Row>
  87. export const FootImg = () => <div className="foot_img">
  88. <Image preview={false} src={MeetingSrc10} />
  89. <div className="foot_background">
  90. <div className="foot_text">
  91. <p>为企业量身定做的管理软件</p>
  92. <p>已有<span>1700</span>人获取专属定制方案</p>
  93. </div>
  94. <ToForm />
  95. </div>
  96. </div>
  97. export const AdvantageTitle = () => <Row
  98. className="home_advantage"
  99. justify='space-around'
  100. >
  101. <Col span={4} style={style}>
  102. <Space direction="vertical">
  103. <h2>20年</h2>
  104. <p>核心团队行业深耕近</p>
  105. </Space>
  106. </Col>
  107. <Col span={4} style={style}>
  108. <Space direction="vertical">
  109. <h2>100万</h2>
  110. <p>服务用户累计</p>
  111. </Space>
  112. </Col>
  113. <Col span={4} style={style}>
  114. <Space direction="vertical">
  115. <h2>500人</h2>
  116. <p>双研发中心团队人数</p>
  117. </Space>
  118. </Col>
  119. <Col span={4} style={style}>
  120. <Space direction="vertical">
  121. <h2>106%</h2>
  122. <p>年续费率高达</p>
  123. </Space>
  124. </Col>
  125. </Row>
  126. const App = () => {
  127. const navigator = useNavigate();
  128. const ToDetail = (value) => {
  129. navigator('/case/detail', { state: value });
  130. }
  131. const SlickButtonFix = ({ currentSlide, slideCount, children, ...props }) => (
  132. <span {...props}>{children}</span>
  133. );
  134. const MoreButton = (name) => (
  135. <div className="core_more">
  136. <Button>查看更多</Button>
  137. <ToForm />
  138. </div>
  139. );
  140. const AdvantageList = [
  141. { icon: <BarsOutlined className="advantage_detail_1" rotate={180} />, title: '功能全面 业务流程全覆盖' },
  142. { icon: <AlertOutlined className="advantage_detail_1" />, title: '开放兼容,多软件互联' },
  143. { icon: <UserOutlined className="advantage_detail_1" />, title: '24小时售后服务' },
  144. ]
  145. return (<>
  146. <Layout>
  147. <div className="home_container">
  148. <div className="home_background" />
  149. <Image
  150. src={HomeImage}
  151. preview={false}
  152. width='100%'
  153. height='470px'
  154. />
  155. <div className="image_text">
  156. <Row>
  157. <Col span={22} offset={2}>
  158. <Space
  159. direction="vertical"
  160. size='small'
  161. >
  162. <h1>一体化sass管理软件</h1>
  163. <p>功能全面</p>
  164. <p>覆盖管理全流程</p>
  165. <p>连接HR、财务、业务、库存消除信息</p>
  166. <p>轻量化快速部署</p>
  167. <p>即买即用</p>
  168. <ToForm className='free_try' />
  169. </Space>
  170. </Col>
  171. </Row>
  172. </div>
  173. </div>
  174. <AdvantageTitle />
  175. <div className="core_advantage">
  176. <Row justify='center'>
  177. <span className="core_title">核心优势</span>
  178. </Row>
  179. <Row justify='space-around'>
  180. {new Array(3).fill(null).map((_, i) =>
  181. <Col span={6} className='advantage_detail' key={i}>
  182. {AdvantageList[i].icon}
  183. <div className="advantage_detail_2">{AdvantageList[i].title}</div>
  184. <Divider style={{
  185. borderColor: '#03BB7A',
  186. minWidth: "80%",
  187. width: '80%',
  188. }} />
  189. <div className="advantage_detail_3">
  190. <p>
  191. <CheckCircleTwoTone twoToneColor='#58BE70' />
  192. <span>占位占位占位占位占位占位</span>
  193. </p>
  194. <p>
  195. <CheckCircleTwoTone twoToneColor='#58BE70' />
  196. <span>占位占位占位占位占位占位</span>
  197. </p>
  198. <p>
  199. <CheckCircleTwoTone twoToneColor='#58BE70' />
  200. <span>占位占位占位占位占位占位</span>
  201. </p>
  202. </div>
  203. </Col>)}
  204. </Row>
  205. <div className="core_more">
  206. <Button>查看更多</Button>
  207. <ToForm />
  208. </div>
  209. </div>
  210. <div className="core_requirement">
  211. <div className="requirement_title" style={{ magin: 0, padding: '50px auto' }}>满足经营管理核心需求</div>
  212. <div className="card-container">
  213. <Tabs type="card" items={items} />
  214. </div>
  215. </div>
  216. <div className="solution">
  217. <p>满足多种行业的解决方案</p>
  218. <div className="solution_contain">
  219. <Tabs type="card"
  220. items={new Array(7).fill(null).map((_, i) => {
  221. const id = String(i + 1);
  222. return {
  223. label: `行业名称`,
  224. key: id,
  225. children: <>
  226. <div className="industry_detail">
  227. <p>制造/化工/能源</p>
  228. <p>行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位行业占位</p>
  229. <div className="industry_more">
  230. <Button>查看更多</Button>
  231. <ToForm />
  232. </div>
  233. <p>相关案例</p>
  234. <Space size='large'>
  235. {new Array(4).fill(null).map((_, i) => (
  236. <Image key={i} width={150} preview={false} height={91} src={LogoSrc} />
  237. ))}
  238. </Space>
  239. </div>
  240. </>,
  241. };
  242. })}
  243. tabPosition='left' />
  244. </div>
  245. </div>
  246. <div className="choice_container">
  247. <div className="requirement_title" style={{ marginTop: 0 }}>都有他们选择了我们</div>
  248. <ImgMap onClick={() => ToDetail(Math.floor(Math.random() * 20) + 1)} />
  249. <Row justify='center' className="choice_img">
  250. <Col span={20}>
  251. <Carousel arrows={true}
  252. prevArrow={<SlickButtonFix>
  253. <LeftCircleFilled />
  254. </SlickButtonFix>}
  255. nextArrow={<SlickButtonFix>
  256. <RightCircleFilled />
  257. </SlickButtonFix>}
  258. dots={false}>
  259. {CarouselItem}
  260. </Carousel>
  261. </Col>
  262. </Row>
  263. {MoreButton()}
  264. <div className="new_title">新闻资讯</div>
  265. <Row className="news_container">
  266. <Col span={12}>
  267. <div className="news_left_title">媒体报道</div>
  268. <Carousel autoplay dots={false}>
  269. <div> <Image src={MeetingSrc8} preview={false} className="news_left_img" /></div>
  270. <div> <Image src={MeetingSrc9} preview={false} className="news_left_img" /></div>
  271. <div> <Image src={MeetingSrc10} preview={false} className="news_left_img" /></div>
  272. <div> <Image src={MeetingSrc11} preview={false} className="news_left_img" /></div>
  273. </Carousel>
  274. </Col>
  275. <Col span={11} offset={1}>
  276. <div className="news_right_title">
  277. <span>产品动态</span>
  278. <span>查看更多</span>
  279. </div>
  280. {new Array(5).fill(null).map((_, i) => (
  281. <div className="new_right_content" key={i}>
  282. <span>更新迭代</span>
  283. <span>01-10</span>
  284. </div>
  285. ))}
  286. <Divider style={{
  287. margin: '9px 0',
  288. borderTop: '3px solid #58BE70',
  289. }} />
  290. <div className="news_right_title">
  291. <span>新闻动态</span>
  292. <span>查看更多</span>
  293. </div>
  294. {new Array(5).fill(null).map((_, i) => (
  295. <div className="new_right_content" key={i}>
  296. <span>更新迭代</span>
  297. <span>01-10</span>
  298. </div>
  299. ))}
  300. </Col>
  301. </Row>
  302. {MoreButton()}
  303. </div>
  304. <FootImg />
  305. </Layout>
  306. </>)
  307. }
  308. export default App;