From 17dbd498be55e148205c36ad02685d649ffc6494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=99=93=E8=8C=B9?= <1019216585@qq.com> Date: Sun, 3 Nov 2024 23:15:50 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E8=81=94=E7=B3=BB=E6=88=91?= =?UTF-8?q?=E4=BB=AC=E7=95=8C=E9=9D=A2=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/GreenLine/GreenLine.js | 11 +- src/components/GreenLine/GreenLine.less | 3 +- src/locales/zh_CN.js | 18 +++ src/pages/about-us/index.js | 160 +++++++++++----------- src/pages/contact-us/index.js | 135 ++++++++++++++++++- src/pages/contact-us/index.less | 169 +++++++++++++++++++++++- src/pages/technical-support/index.js | 2 +- 7 files changed, 406 insertions(+), 92 deletions(-) diff --git a/src/components/GreenLine/GreenLine.js b/src/components/GreenLine/GreenLine.js index 3de71e0..0b81ee8 100644 --- a/src/components/GreenLine/GreenLine.js +++ b/src/components/GreenLine/GreenLine.js @@ -2,10 +2,15 @@ import React from "react"; import styles from "./GreenLine.less"; const GreenLine = (props) => { - const { width = 10, height = 6 } = props; + const { + width = 10, + height = 6, + background = "#2bb2a8", + className = "", + } = props; return ( -
-
+
+
); }; diff --git a/src/components/GreenLine/GreenLine.less b/src/components/GreenLine/GreenLine.less index b022f57..606fa42 100644 --- a/src/components/GreenLine/GreenLine.less +++ b/src/components/GreenLine/GreenLine.less @@ -1,8 +1,9 @@ .root { margin: 40px 0; .line { + display: inline-block; // width: 10px; // height: 6px; - background: #2bb2a8; + // background: #2bb2a8; } } diff --git a/src/locales/zh_CN.js b/src/locales/zh_CN.js index 34f1588..5ebca50 100644 --- a/src/locales/zh_CN.js +++ b/src/locales/zh_CN.js @@ -1,5 +1,6 @@ export default { sy: "首页", + contactTel:"400-650-2386", headTitle: "欢迎浏览宝锐生物科技泰州有限公司官方网站", headTel: "客服热线:", cpzx: "产品中心", @@ -69,5 +70,22 @@ export default { jsInfo:"项目工程15年以上从业经验", gl:"管 理", glInfo:"11年以上项目管理经验", + lxwmInfo:"我们新生力量在成长、仍在继续", + gsmc:"宝锐生物科技泰州有限公司", + gsdz:'江苏省泰州市国家医药高新技术产业园中国医药城口泰路东侧、新阳路北侧 G40幢厂区三至四层东半侧', + shzc:'售后支持', + shzcjs:'售后及技术支持', + rczp:'人才招聘', + rczpdh:'400-650-2386', + rczpyx:"market@healtek.net", + swhz:"商务合作", + swhzyx:'market@healtek.net', + zxly:"在线留言", + zxlyInfo:"有任何问题,欢迎在此留言", + name:"姓名", + company:"公司名称", + phone:"联系电话", + lynr:"留言内容", + submit:'提交', test: "", }; diff --git a/src/pages/about-us/index.js b/src/pages/about-us/index.js index df9176b..7f07031 100644 --- a/src/pages/about-us/index.js +++ b/src/pages/about-us/index.js @@ -50,89 +50,89 @@ const IndexPage = (props) => { }, ]; return ( -
-
- - - - -
-
-
-
{locale.gsjj1}
-
{locale.gsjj2}
- -
-
{locale.gsjj31}
-
{locale.gsjj32}
-
{locale.gsjj33}
-
-
-
-
-
-
10
-
{locale.nhyjy}
-
-
-
16
-
{locale.hzqy}
-
-
-
300
-
{locale.qqkh}
-
-
-
3600
-
{locale.scjd}
-
-
-
-
-
{locale.qywh1}
-
{locale.qywh2}
- -
-
-
{locale.qywh3}
-
{locale.qywh4}
-
- -
-
{locale.qywh5}
-
{locale.qywh6}
-
-
-
-
-
-
{locale.yrzz}
-
{locale.yrzzInfo}
+
+
+ + + + +
+
+
+
{locale.gsjj1}
+
{locale.gsjj2}
- - +
+
{locale.gsjj31}
+
{locale.gsjj32}
+
{locale.gsjj33}
+
+
+
+
10
+
{locale.nhyjy}
+
+
+
16
+
{locale.hzqy}
+
+
+
300
+
{locale.qqkh}
+
+
+
3600
+
{locale.scjd}
+
+
+
+
+
{locale.qywh1}
+
{locale.qywh2}
+ +
+
+
{locale.qywh3}
+
{locale.qywh4}
+
+ +
+
{locale.qywh5}
+
{locale.qywh6}
+
+
+
+
+
+
{locale.yrzz}
+
{locale.yrzzInfo}
+ + + +
+
); }; diff --git a/src/pages/contact-us/index.js b/src/pages/contact-us/index.js index 8d77f4b..07baced 100644 --- a/src/pages/contact-us/index.js +++ b/src/pages/contact-us/index.js @@ -1,12 +1,137 @@ +import React from "react"; +import { Form, Button, Input } from "antd"; +import { getLocale } from "../../utils"; import styles from "./index.less"; -import { LocalConsumer } from "../../layouts/MyContext"; -import React, { useContext } from "react"; +import GreenLine from "../../components/GreenLine"; +import CusBreadcrumb from "../../components/CusBreadcrumb"; +import PageHeaderInfo from "../../components/PageHeaderInfo"; + +import img1 from "../../assets/img_lianxiwomen@3x.png"; +import img2 from "../../assets/img_erqeima@3x.png"; +import img3 from "../../assets/icon_dianhua@3x.png"; +import img4 from "../../assets/icon_youxiang@3x.png"; +import img5 from "../../assets/icon_dizhi@3x.png"; +import img6 from "../../assets/img_ditu@3x.png"; const IndexPage = (props) => { - console.log(props); + const { history } = props; + const locale = getLocale(); + + const jstdImgList = [ + { + imgUrl: img3, + title: locale.shzcjs, + info: locale.rczpdh, + }, + { + imgUrl: img4, + title: locale.rczp, + info: locale.rczpyx, + }, + { + imgUrl: img4, + title: locale.swhz, + info: locale.swhzyx, + }, + ]; return ( -
-

Page index

+
+
+ + + + +
+
+
+
+
{locale.gsmc}
+
+ + {locale.gsdz} +
+
+
+
+
+ {locale.shzc} +
+
{locale.contactTel}
+ +
+ +
+
+
+ {jstdImgList?.map((item, index) => ( +
+ +
+
{item.title}
+
{item.info}
+
+
+ ))} +
+
+ +
+
+
{locale.zxly}
+
{locale.zxlyInfo}
+ +
+ + + + + + + + + + + + + + + +
+
+
+
+
{locale.gsmc}
+
+ + {locale.gsdz} +
+
+
+
+
+
); }; diff --git a/src/pages/contact-us/index.less b/src/pages/contact-us/index.less index 586302b..787c9aa 100644 --- a/src/pages/contact-us/index.less +++ b/src/pages/contact-us/index.less @@ -1,3 +1,168 @@ -.title { - background: rgb(121, 242, 157); +.root { + .addressImgBox { + display: flex; + align-items: start; + .addressImg { + width: 24px; + margin-right: 11px; + object-fit: contain; + } + } + .info { + font-family: Source Han Sans SC; + font-weight: 300; + font-size: 16px; + color: #595a61; + } + .baseInfoBox { + padding: 93px 10% 60px; + .content { + display: grid; + grid-template-columns: 1fr auto; + grid-column-gap: 5px; + grid-row-gap: 5px; + .left { + width: 594px; + } + .right { + display: grid; + grid-template-columns: 1fr auto; + grid-column-gap: 5px; + grid-row-gap: 5px; + align-items: center; + } + .title { + font-family: Source Han Sans SC; + font-weight: 500; + font-size: 48px; + color: #000000; + line-height: 64px; + margin-bottom: 30px; + } + + .tel { + font-family: Source Han Sans SC; + font-weight: bold; + font-size: 34px; + color: #000000; + line-height: 64px; + } + .cusGreenLine{ + text-align: right; + margin: 0; + } + .scanImg { + width: 131px; + height: 131px; + margin-left: 34px; + } + } + } + .baseInfoList { + margin-top: 150px; + background: #ffffff; + display: flex; + flex-direction: row; + justify-content: space-between; + width: 100%; + margin-bottom: 61px; + .item { + display: flex; + align-items: center; + img { + width: 80px; + height: 80px; + margin-right: 20px; + } + .title { + font-family: Source Han Sans SC; + font-weight: 400; + font-size: 28px; + color: #000000; + line-height: 34px; + margin-bottom: 12px; + } + .info { + font-family: Source Han Sans SC; + font-weight: 300; + font-size: 16px; + color: #595a61; + line-height: 32px; + } + } + } + .contactForm { + position: relative; + margin-bottom: 378px; + .contactContent { + position: absolute; + top: 88px; + left: 0; + right: 0; + display: flex; + .form { + background: #2bb2a8; + padding: 66px 79px; + color: #ffffff; + font-family: Source Han Sans SC; + width: 510px; + margin-right: 186px; + .title { + font-weight: 500; + font-size: 48px; + line-height: 64px; + margin-bottom: 13px; + } + .info { + font-size: 22px; + line-height: 40px; + color: #ffffff; + } + :global { + .ant-form > .ant-form-item:not(:last-child) { + border-bottom: 1px solid rgba(255, 255, 255, 0.3); + margin-bottom: 43px; + } + .ant-form-item-label > label { + width: auto; + font-size: 16px; + color: #ffffff; + line-height: 40px; + } + .ant-input { + background: inherit; + border: none; + } + .ant-btn { + width: 147px; + height: 48px; + margin-top: 35px; + span { + color: #2bb2a8; + font-weight: 500; + font-size: 18px; + } + } + } + } + .addressInfo { + width: 653px; + margin-top: -15px; + height: fit-content; + background-image: url(../../assets/img_ditu_kuang@3x.png); + background-size: 100% 100%; + // background-size: cover; /* 确保图片覆盖整个元素 */ + background-position: center; /* 将图片居中显示 */ + + .title { + font-family: Source Han Sans SC; + font-weight: 500; + font-size: 22px; + color: #2bb2a8; + line-height: 34px; + margin-bottom: 10px; + } + } + } + } } diff --git a/src/pages/technical-support/index.js b/src/pages/technical-support/index.js index 4972654..158f894 100644 --- a/src/pages/technical-support/index.js +++ b/src/pages/technical-support/index.js @@ -98,7 +98,7 @@ const IndexPage = (props) => {
{locale.shjjszc31}
{locale.shjjszc32} - 400 650 2386 + {locale.contactTel} {locale.shjjszc33}
{locale.shjjszc34}