Commit 91f836a2 by liguokang

feat:

parent f5feaa32
/*
* @Author: liguokang
* @Date: 2021-07-15 10:43:34
* @LastEditors: liguokang
* @LastEditTime: 2021-07-15 10:44:45
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
//线上
export const Interfaces = {
OnlineUrl: 'https://',
};
//静态图片根目录
export const Static = '';
export const StaticImg = '';
export default Interfaces;
.carousel-area{
width: 100%;
overflow: hidden;
.tem{
width: 100%;
}
}
\ No newline at end of file
footer {
background-color: #30343e;
position: relative;
.module-model {
width: 100%;
background: linear-gradient(
313deg,
rgba(255, 188, 111, 1) 0%,
rgba(255, 162, 85, 1) 74%,
rgba(255, 153, 75, 1) 100%
);
.big-img {
.big-img-svg {
width: 150%;
transform: translate3d(-300px, 0px, 0px);
}
position: relative;
width: 100%;
height: 240px;
background-size: contain;
.wrap {
border: 1px solid transparent;
box-sizing: border-box;
position: absolute;
width: 100%;
height: 100%;
.module-img {
.btn-wrap {
display: inline-block;
width: 100%;
color: #ff8d46;
.btn-click {
width: 160px;
height: 34px;
background: #fff;
border-radius: 2px;
text-align: center;
margin: 0 auto;
line-height: 34px;
margin-bottom: 80px;
cursor: pointer;
position: absolute;
right: 50%;
margin-right: -80px;
z-index: 99;
&:hover {
opacity: 0.8;
}
}
}
}
.text {
margin: 0 auto;
font-size: 44px;
line-height: 62px;
margin-bottom: 20px;
text-align: center;
color: #fff;
margin-top: 80px;
}
}
}
}
.footer-middle {
height: 335px;
width: 100%;
border-top: 2px solid #434753;
border-bottom: 2px solid #434753;
.fl {
float: left;
}
.fr {
float: right;
}
ul {
display: flex;
justify-content: space-around;
align-items: flex-start;
padding-top: 60px;
height: 100%;
margin: 0;
li {
text-align: left;
cursor: pointer;
&:first-child {
margin-left: -27px;
}
&:last-child {
margin-left: -20px;
}
a {
display: block;
text-decoration: none;
}
span {
display: block;
font-size: 14px;
font-weight: 400;
color: rgba(162, 166, 178, 1);
line-height: 30px;
&:hover {
color: #ff8534;
}
}
p {
font-size: 18px;
font-weight: 400;
color: rgba(255, 255, 255, 1);
line-height: 25px;
margin-bottom: 18px;
cursor: text;
}
.img {
width: 100px;
color: rgba(162, 166, 178, 1);
height: 100px;
cursor: text;
.img1 {
background-image: url("https://image.xiaomaiketang.com/xm/NBn48icbJ2.png");
background-size: contain;
width: 100%;
height: 100%;
margin-right: 13px;
}
.img2 {
background-image: url("https://image.xiaomaiketang.com/xm/KapYGcKXHj.png");
background-size: contain;
width: 100%;
height: 100%;
margin-left: 0px;
}
}
}
> :nth-child(4) {
span {
&:hover {
color: rgba(162, 166, 178, 1);
cursor: text;
}
}
}
> :nth-child(5) {
span {
&:hover {
cursor: text;
color: rgba(162, 166, 178, 1);
}
text-align: center;
line-height: 50px;
}
}
> :nth-child(6) {
span {
&:hover {
cursor: text;
color: rgba(162, 166, 178, 1);
}
text-align: center;
line-height: 50px;
}
}
}
}
.footer-bottom {
width: 100%;
height: 100px;
p {
font-size: 14px;
font-weight: 400;
color: rgba(162, 166, 178, 1);
display: flex;
justify-content: center;
align-items: center;
line-height: 50px;
a {
color: rgba(162, 166, 178, 1);
text-decoration: none;
}
margin: 0;
}
}
}
@primary-color: #ff8534;
.header {
z-index: 100;
position: absolute;
top: 0;
width: 100%;
.top {
height: 60px;
width: 100%;
.header-left {
.logo {
width: 114px;
h1 {
position: absolute;
left: -1000px;
}
.img {
width: 114px;
height: 60px;
background-image: url("https://image.xiaomaiketang.com/xm/XQkhrY2jMp.png");
background-size: contain;
}
}
}
.header-right {
position: relative;
.nav {
line-height: 30px;
font-size: 14px;
.nav-bar-title {
.nav-bar-li {
cursor: pointer;
float: left;
margin: 0 24px;
.iconfont,
a {
color: #ffffff;
}
position: relative;
padding: 0 10px;
&.on::before {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 2px;
background: #fff;
}
&::after {
content: "";
position: absolute;
left: 0;
bottom: -15px;
width: 100%;
height: 2px;
background: #fff;
-webkit-transform: scaleX(0);
transform: scaleX(0);
-webkit-transform-origin: center;
transform-origin: center;
-webkit-transition: -webkit-transform 0.3s ease-in-out;
transition: -webkit-transform 0.3s ease-in-out;
transition: transform 0.3s ease-in-out;
transition: transform 0.3s ease-in-out,
-webkit-transform 0.3s ease-in-out;
}
&:hover::after {
transform: scaleX(1);
}
}
#show-choice {
position: relative;
&:hover {
.module-choice {
opacity: 1;
.triangle-up {
display: block;
}
.module-choice-hover {
display: block;
}
}
}
.module-choice {
position: absolute;
top: 61px;
transition: 0.2s all 0.1s;
left: -36%;
opacity: 0;
width: 120px;
background: transparent;
z-index: 1;
.triangle-up {
position: relative;
top: 10px;
left: 42%;
display: none;
}
.module-choice-hover {
background: #fff;
position: relative;
display: none;
top: 9px;
left: 0;
text-align: center;
box-shadow: 0 1px 1px #f2f2f2;
border-radius: 4px;
width: 430px;
height: 273px;
font-size: 16px;
line-height: 2.6;
padding: 17px 19px;
&::before {
content: "";
border: 8px solid;
border-color: transparent transparent #fff;
position: absolute;
top: -14px;
right: 50%;
}
li {
border: none;
height: 60px;
text-align: left;
padding: 6px 10px;
box-sizing: border-box;
a {
color: #595959;
display: block;
width: 180px;
height: 50px;
padding: 8px 0 8px 20px;
&:hover {
background: #f4f6f9;
.text {
.title {
// color: #ff8534;
}
}
}
.icon {
width: 34px;
height: 34px;
margin-right: 18px;
background-size: 34px;
}
.text {
.title {
color: #333333;
font-size: 14px;
line-height: 20px;
margin: 0;
}
.detail {
font-size: 12px;
color: #666;
margin: 0;
line-height: 17px;
}
}
}
}
}
}
}
#show-us {
position: relative;
&:hover {
.module-choice {
opacity: 1;
.triangle-up {
display: block;
}
.module-choice-hover {
display: block;
}
}
}
.module-choice {
position: absolute;
top: 61px;
transition: 0.2s all 0.1s;
left: -36%;
opacity: 0;
width: 120px;
background: transparent;
z-index: 1;
.triangle-up {
position: relative;
top: 10px;
left: 42%;
display: none;
}
.module-choice-hover {
background: #fff;
position: relative;
display: none;
top: 9px;
left: 20px;
text-align: center;
box-shadow: 0 1px 1px #f2f2f2;
border-radius: 4px;
width: 110px;
font-size: 14px;
line-height: 1.5;
padding: 10px 15px;
&::before {
content: "";
border: 8px solid;
border-color: transparent transparent #fff;
position: absolute;
top: -14px;
right: 50%;
margin-right: -8px;
}
li {
border: none;
height: 30px;
text-align: center;
padding: 6px 10px;
box-sizing: border-box;
&:hover {
a {
color: #ff8534;
}
}
a {
color: #595959;
display: block;
height: 50px;
}
}
}
}
}
}
}
.login-box {
margin-top: 13px;
.free-trial,
.login {
width: 100px;
height: 34px;
font-size: 14px;
line-height: 34px;
text-align: center;
}
.free-trial {
background-color: #fff;
color: @primary-color;
margin-right: 10px;
}
.login {
color: #fff;
border: 1px solid #fff;
box-sizing: border-box;
}
span {
display: inline-block;
}
}
}
}
}
.header.header_bg {
height: 60px;
background-color: #fff;
position: fixed;
box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
transition: 0.3s;
.top {
height: 60px;
width: 100%;
.header-left {
.logo {
width: 114px;
h1 {
position: absolute;
left: -1000px;
}
.img {
width: 114px;
height: 60px;
background-image: url("https://image.xiaomaiketang.com/xm/tXGkSTisNP.png");
background-size: contain;
}
}
}
.header-right {
position: relative;
.nav {
line-height: 30px;
font-size: 14px;
.nav-bar-title {
.nav-bar-li {
cursor: pointer;
float: left;
margin: 0 24px;
.iconfont,
a {
color: #333;
}
position: relative;
&.on {
.iconfont,
a {
color: @primary-color;
}
}
&:hover {
.iconfont,
a {
color: @primary-color;
}
}
&.on::before {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 2px;
background: @primary-color;
}
&::after {
content: "";
position: absolute;
left: 0;
bottom: -16px;
width: 100%;
height: 2px;
background: @primary-color;
-webkit-transform: scaleX(0);
transform: scaleX(0);
-webkit-transform-origin: center;
transform-origin: center;
-webkit-transition: -webkit-transform 0.3s ease-in-out;
transition: -webkit-transform 0.3s ease-in-out;
transition: transform 0.3s ease-in-out;
transition: transform 0.3s ease-in-out,
-webkit-transform 0.3s ease-in-out;
}
&:hover::after {
transform: scaleX(1);
}
}
}
}
.login-box {
margin-top: 13px;
.free-trial,
.login {
width: 100px;
height: 34px;
font-size: 14px;
line-height: 34px;
text-align: center;
}
.free-trial {
background-color: @primary-color;
color: #fff;
margin-right: 10px;
}
.login {
background-color: #fff;
color: @primary-color;
border: 1px solid @primary-color;
box-sizing: border-box;
}
span {
display: inline-block;
}
}
}
}
}
.login-box {
margin-top: 13px;
.free-trial,
.login {
width: 100px;
height: 34px;
font-size: 14px;
line-height: 34px;
text-align: center;
}
.free-trial {
border-radius: 2px;
background-color: #fff;
color: @primary-color;
margin-right: 10px;
cursor: pointer;
}
.login {
color: #fff;
border: 1px solid #fff;
border-radius: 2px;
box-sizing: border-box;
}
span {
display: inline-block;
}
}
/* /*
* @Description: * @Description:
* @Date: 2020-03-18 18:19:52 * @Date: 2020-03-18 18:19:52
* @LastEditTime: 2020-12-30 20:48:12 * @LastEditTime: 2021-07-15 10:46:49
* @LastEditors: JamosLi * @LastEditors: liguokang
*/ */
import React from 'react'; import React from 'react';
import style from './laFooter.less';
import Link from 'next/link';
import LazyLoad from 'react-lazyload'; import LazyLoad from 'react-lazyload';
import Link from 'next/link';
import { StaticImg } from '@/api/interfaces'; import { StaticImg } from '@/api/interfaces';
import Button from 'baseTemplate/lib/button'; import style from './laFooter.less';
const Img = StaticImg + '/Footer';
import { open } from '@/lib/methods';
class LaFooter extends React.Component { class LaFooter extends React.Component {
render() { render() {
return ( return (
<footer className={style.laFooter}> <footer>
<div className={style.laFooterList2}>
<div className={style.List2Content}>
<div className={style.FooterBox1}>
<div>
<h2>关于中禄</h2>
<p>
<Link href={'/aboutUs'}>
<a>关于我们</a>
</Link>
</p>
<p>
<Link href={'/contactUs'}>
<a>联系我们</a>
</Link>
</p>
</div>
<div>
<h2>新手指南</h2>
<p onClick={open}>
<a>在线咨询</a>
</p>
<p onClick={open}>
<a>财税资讯</a>
</p>
<p>
<Link href={'/login/cusRegister'}>
<a>新手注册</a>
</Link>
</p>
</div>
<div> <div>
<h2>服务推荐</h2>
<p>
<Link href={'/companyRegistration'}>
<a>公司注册</a>
</Link>
</p>
<p>
<Link href={'/agentAccount'}>
<a>代理记账</a>
</Link>
</p>
<p>
<Link href={'/qualification'}>
<a>资质办理</a>
</Link>
</p>
<p>
<Link href={'/BusinessService'}>
<a>商标知产</a>
</Link>
</p>
</div>
</div>
<div className={style.FooterBox2}>
<div className={style.Box2Line}>
<h3>服务热线</h3>
<LazyLoad height={72}>
<p style={{ backgroundImage: `url('${Img}/dianhua.svg')` }}>{this.props.phone || 400 - 690 - 8028}</p>
</LazyLoad>
<Button mode={'red'} className={style.inlineChat}>
<a onClick={open}>在线咨询</a>
</Button>
</div>
</div>
<div className={style.FooterBox3}>
<LazyLoad height={152}>
<div className={style.weChat} style={{ backgroundImage: `url('${Img}/wechat-min.jpg')` }} />
<span />
</LazyLoad>
<p>扫一扫,创业一手掌握</p>
</div>
</div>
</div>
<div className={style.laFooterList3}>
<a target="_blank" href="https://beian.miit.gov.cn"> <a target="_blank" href="https://beian.miit.gov.cn">
<span>Copyright ©2017 浙江中禄财务咨询有限公司版权所有 ICP16004996-1</span> <span>Copyright ©2015-2021 杭州杰竞科技有限公司版权所有 ICP15025826-2</span>
</a> </a>
</div> </div>
</footer> </footer>
......
.laFooter {
height: 258px;
width: 100%;
.laFooterList2 {
height: 216px;
background-color: #242633;
display: flex;
align-items: center;
justify-content: center;
.List2Content {
display: flex;
width: 1200px;
height: 226px;
.FooterBox1 {
display: flex;
width: 545px;
height: 216px;
div {
display: flex;
flex-direction: column;
width: 188px;
height: 160px;
margin-top: 30px;
h2 {
font-size: 18px;
font-weight: normal;
color: #ffffff;
margin-bottom: 5px;
}
p a {
font-size: 14px;
color: #878d99;
&:hover {
color: #f05750;
}
}
p {
cursor: pointer;
margin-bottom: 0;
line-height: 28px;
}
}
div:last-child {
border-right: 1px solid #3c4b57;
}
}
.FooterBox2 {
width: 450px;
.Box2Line {
display: flex;
flex-direction: column;
width: 100%;
height: 160px;
margin-top: 30px;
padding-left: 108px;
border-right: 1px solid #3c4b57;
h3 {
font-size: 18px;
color: #878d99;
margin-bottom: 20px;
line-height: 1em;
}
p {
font-size: 30px;
height: 36px;
font-style: italic;
font-weight: bold;
color: #fff;
line-height: 36px;
padding-left: 36px;
margin-bottom: 36px;
background: no-repeat center left/24px 24px;
}
.inlineChat {
width: 192px;
height: 36px;
text-align: center;
line-height: 36px;
background-color: #e63e36;
cursor: pointer;
a {
font-size: 14px;
color: #ffffff;
}
}
}
}
.FooterBox3 {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-left: 50px;
width: 140px;
.weChat {
width: 140px;
height: 140px;
background: #fff no-repeat center center/120px 120px;
border-radius: 10px;
}
span {
display: block;
width: 0;
height: 0;
border-width: 6px;
border-style: solid;
border-color: #ffffff transparent transparent transparent;
}
p {
font-size: 12px;
color: #ffffff;
text-align: center;
}
}
}
}
.laFooterList3 {
height: 42px;
width: 100%;
background-color: #2e303c;
text-align: center;
span {
width: 1200px;
height: 100%;
font-size: 12px;
color: #878d99;
line-height: 42px;
}
}
}
// 框架依赖 /*
* @Author: liguokang
* @Date: 2021-07-15 10:28:10
* @LastEditors: liguokang
* @LastEditTime: 2021-07-15 10:46:33
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
import React from 'react'; import React from 'react';
import cookies from 'react-cookies'; import cookies from 'react-cookies';
import style from './laHeader.less'; import { connect } from 'react-redux';
import Link from 'next/link'; import Link from 'next/link';
import { withRouter } from 'next/router'; import { withRouter } from 'next/router';
import { logout } from '@/api/user';
import { setToPath, comingSoon } from '@/lib';
import { open } from '@/lib/methods';
import Icon from 'baseTemplate/lib/icon';
import { StaticImg } from '@/api/interfaces'; import { StaticImg } from '@/api/interfaces';
import store from '../../../redux/store'; import style from './laHeader.less';
import { connect } from 'react-redux';
import { getCity } from 'static/js/util';
const nav = [
{ val: '首页', link: '/' },
{ val: '工商注册', link: '/companyRegistration' },
{ val: '代理记账', link: '/agentAccount' },
{ val: '商标知产', link: '/BusinessService' },
{ val: '高新资质', link: '/qualification' },
{ val: '社保人事', link: '/socialSecurity' },
{ val: '项目申报', link: '/projectApplication' },
{ val: '财税资讯' },
];
class LaHeader extends React.Component { class LaHeader extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = {};
currentCity: '杭州',
// 城市选择盒子状态
cityBox: false,
userName: '',
anm: 0,
citylist: [],
phone: '',
};
} }
// 退出登录逻辑
onLogout() {
let path = window.location.href;
logout(path);
this.setState({
userName: '',
});
}
setAnm = (val) => {
this.setState({
anm: val,
});
};
componentDidMount() { componentDidMount() {}
const cookieName = cookies.load('username');
if (cookieName) {
this.setState({ userName: cookieName });
}
getCity(this.props.cityMap, window.location.href).then((res) => {
this.setState({ cityConfig: res });
this.setState({ cityname: res.data.config.city });
});
}
getMenuItems() {
const cityList = this.state.cityConfig ? this.state.cityConfig.citylist : [];
if (this.state.citylist) {
return cityList.map((city) => {
return (
<div
className={style.city}
onClick={() => {
// 切换城市
if (city.hostname.length > 1) {
window.location.href = '';
if (window.location.search.length > 0) {
window.location.href = city.hostname[0] + window.location.pathname + window.location.search;
} else {
window.location.href = city.hostname[0] + window.location.pathname;
}
} else {
// this.props.changeCity(city.config.city);
alert('此城市暂未开通服务,如需帮助请咨询客服!');
this.setState({ cityname: city.config.city });
this.setState({ cityBox: false });
}
}}
key={city.config.city}
>
{city.config.city}
</div>
);
});
}
}
render() { render() {
let { config } = this.state.cityConfig ? this.state.cityConfig.data : { config: this.props.cityMap[0].config };
return ( return (
<div> <header>
<header className={style.laHeader}> <nav>
{/*顶部灰色栏*/}
<div className={style.laTop} style={{ display: this.props.noTop ? 'none' : 'block' }}>
<div className={style.topContent}>
{/*地区选择器*/}
<div
className={style.CityList}
onMouseEnter={() => {
this.setState({ cityBox: true });
}}
onMouseLeave={() => {
this.setState({ cityBox: false });
}}
style={{ backgroundColor: this.state.cityBox ? '#FFFFFF' : '' }}
>
<span className={style.currentCity} style={{ border: this.state.cityBox ? 'none' : '' }}>
{this.state.cityname ? this.state.cityname + '市' : ''}
</span>
<div className={style.cityBox} style={{ display: this.state.cityBox ? 'flex' : 'none' }}>
{this.getMenuItems()}
</div>
</div>
<span className={style.number}>全国服务热线:{config.phone ? config.phone : '400-'}</span>
{/*用户信息框*/}
<div className={style.user}>
{this.state.userName ? (
<div className={style.userDiv}>
{' '}
<Link href="/personalCenter/basicInfo">
<a>
<Icon name={'yongHu'} width={14} height={14} />
<span>欢迎你,{this.state.userName}</span>
</a>
</Link>
<div className={style.userBox}>
<ul>
<Link href={'/personalCenter/myOrder'}>
<a>
<li>
<svg xmlns="http://www.w3.org/2000/svg" width="11.403" height="13" viewBox="0 0 11.403 13">
<g id="dingdan-2" transform="translate(-1.58 -0.768)">
<path
id="路径_1608"
data-name="路径 1608"
d="M9.17,13.767l-7.589-.04L1.621.768l11.362.04V9.917a3.842,3.842,0,0,1-3.813,3.85Zm-6.782-.805H9.169a3.026,3.026,0,0,0,3.008-3.009l.04-8.378-9.83-.04V12.961Z"
fill="#aebac4"
/>
<path
id="路径_1609"
data-name="路径 1609"
d="M9.677,4.151Zm0,0H4.233a.383.383,0,0,1-.4-.4.384.384,0,0,1,.4-.4H9.677a.384.384,0,0,1,.4.4.384.384,0,0,1-.4.4ZM9.5,7.054H4.306a.4.4,0,0,1,0-.807H9.5a.384.384,0,0,1,.4.4.4.4,0,0,1-.4.4ZM7.9,9.594H4.306a.4.4,0,1,1,0-.806H7.9a.384.384,0,0,1,.4.4.4.4,0,0,1-.4.4Z"
fill="#aebac4"
/>
</g>
</svg>
<span>我的订单</span>
</li>
</a>
</Link>
<li onClick={this.onLogout.bind(this)}>
<svg xmlns="http://www.w3.org/2000/svg" width="10.859" height="13" viewBox="0 0 10.859 13">
<g id="tuichu" transform="translate(-1.529 -0.765)">
<path id="路径_1610" data-name="路径 1610" d="M1.529.765h.765V13H1.529Z" fill="#aebac4" />
<path id="路径_1611" data-name="路径 1611" d="M1.529.765h.765V13H1.529Zm8.412,0h.765V3.059H9.941Z" fill="#aebac4" />
<path id="路径_1612" data-name="路径 1612" d="M9.941.765h.765V3.059H9.941Zm0,10.706h.765v2.294H9.941Z" fill="#aebac4" />
<path
id="路径_1613"
data-name="路径 1613"
d="M9.941,11.471h.765v2.294H9.941ZM1.529.765H9.941v.765H1.529Z"
fill="#aebac4"
/>
<path id="路径_1614" data-name="路径 1614" d="M1.529.765H9.941v.765H1.529ZM1.529,13H9.941v.765H1.529Z" fill="#aebac4" />
<path
id="路径_1615"
data-name="路径 1615"
d="M1.529,13H9.941v.765H1.529ZM3.824,6.882h7.647v.765H3.824Z"
fill="#aebac4"
/>
<path id="路径_1616" data-name="路径 1616" d="M3.824,6.882h7.647v.765H3.824Z" fill="#aebac4" />
<path
id="路径_1617"
data-name="路径 1617"
d="M12.159,7.571l.229-.306L9.712,4.588l-.535.535,2.141,2.141L9.176,9.482l.535.535Z"
fill="#aebac4"
/>
</g>
</svg>
<span>退出登录</span>
</li>
</ul>
</div>
</div>
) : (
<div
className={style.userDiv}
onClick={() => {
setToPath(this.props.router.asPath);
}}
>
<a href={`/login/cusLogin`}>
<span>登录</span>
</a>
<span>/</span>
<a href={`/login/cusRegister`}>
<span>免费注册</span>
</a>
</div>
)}
</div>
</div>
</div>
{/*导航栏部分*/}
<nav className={style.laNav}>
<div className={style.laNavBody}>
<div> <div>
<Link href="/"> <Link href="/">
<a style={{ marginRight: 20 }}>
<img src={StaticImg + '/logo.png'} width={121} alt="" /> <img src={StaticImg + '/logo.png'} width={121} alt="" />
</a>
</Link> </Link>
<div className={style.allService} style={{ cursor: 'pointer', minWidth: 102 }}>
<a onClick={open}>所有服务</a>
</div>
</div>
<div>
<ul>
{nav.map((item, index) => (
<li key={item.val} onClick={!!item.link ? null : comingSoon} style={{ cursor: 'pointer' }}>
{item.link ? (
<Link href={item.link}>
<a
target={item.val !== '首页' ? '_blank' : ''}
className={this.state.anm === index + 1 ? 'an' : ''}
onMouseLeave={this.setAnm.bind(this, 0)}
onMouseEnter={this.setAnm.bind(this, index + 1)}
>
{item.val}
</a>
</Link>
) : (
<a
className={this.state.anm === index + 1 ? 'an' : ''}
onMouseLeave={this.setAnm.bind(this, 0)}
onMouseEnter={this.setAnm.bind(this, index + 1)}
>
{item.val}
</a>
)}
</li>
))}
{/*<li ><Link href='/'><a className={this.state.anm===1?'an':''} onMouseLeave={this.setAnm.bind(this,0)} onMouseEnter={this.setAnm.bind(this,1)}>首页</a></Link></li>*/}
{/*<li ><Link href={'/companyRegistration'}><a className={this.state.anm===2?'an':''} onMouseLeave={this.setAnm.bind(this,0)} onMouseEnter={this.setAnm.bind(this,2)}>工商注册</a></Link></li>*/}
{/*<li ><Link href={'/agentAccount'}><a className={this.state.anm===3?'an':''} onMouseLeave={this.setAnm.bind(this,0)} onMouseEnter={this.setAnm.bind(this,3)}>代理记账</a ></Link></li>*/}
{/*<li ><Link href={'/about/BusinessService'}><a className={this.state.anm===4?'an':''} onMouseLeave={this.setAnm.bind(this,0)} onMouseEnter={this.setAnm.bind(this,4)}>商标知产</a></Link></li>*/}
{/*<li ><Link href='/qualification'><a className={this.state.anm===5?'an':''} onMouseLeave={this.setAnm.bind(this,0)} onMouseEnter={this.setAnm.bind(this,5)}>高新资质</a></Link></li>*/}
{/*<li onClick={comingSoon} style={{cursor:"pointer"}}><a className={this.state.anm===6?'an':''} onMouseLeave={this.setAnm.bind(this,0)} onMouseEnter={this.setAnm.bind(this,6)}>社保人事</a></li>*/}
{/*<li ><Link href={'/projectApplication'}><a className={this.state.anm===7?'an':''} onMouseLeave={this.setAnm.bind(this,0)} onMouseEnter={this.setAnm.bind(this,7)}>项目申报</a></Link></li>*/}
{/*<li onClick={comingSoon} style={{cursor:"pointer"}} ><a className={this.state.anm===8?'an':''} onMouseLeave={this.setAnm.bind(this,0)} onMouseEnter={this.setAnm.bind(this,8)}>财税资讯</a></li>*/}
</ul>
</div>
</div> </div>
</nav> </nav>
<style jsx>
{`
@keyframes myfirst {
0% {
top: 0px;
}
50% {
top: -10px;
}
100% {
top: 0px;
}
}
.an {
animation: myfirst 0.4s;
}
`}
</style>
</header> </header>
</div>
); );
} }
} }
......
.laHeader {
width: 100%;
a {
text-decoration: none;
}
//顶部灰色盒子
.laTop {
height: 36px;
background-color: #ebeef4;
.topContent {
width: 1200px;
height: 36px;
margin: 0 auto;
display: flex;
align-items: center;
position: relative;
.CityList {
display: flex;
justify-content: center;
flex-direction: column;
position: absolute;
height: 36px;
width: 90px;
padding-left: 17px;
top: 0;
left: -17px;
.cityBox {
position: absolute;
display: flex;
flex-wrap: wrap;
background-color: #ffffff;
top: 36px;
left: -1px;
width: 270px;
text-align: center;
padding: 3px 18px 10px;
border: 1px solid #ebeef4;
border-top: none;
color: #878d99;
.city {
width: 58px;
height: 35px;
line-height: 35px;
font-size: 13px;
cursor: pointer;
}
.city:hover {
color: red !important;
}
}
.currentCity {
background: url('//statics.360jizhang.cn/staticFile/websiteFile/licenseAgent/dingwei.png') no-repeat center left;
display: inline-block;
height: 14px;
line-height: 14px;
width: 70px;
font-size: 13px;
padding-left: 18px;
border-right: 1px solid #bebebe;
cursor: pointer;
}
}
.number {
margin-left: 80px;
font-size: 12px;
color: #878d99;
}
span {
font-size: 12px;
color: #878d99;
}
.user {
display: flex;
align-items: center;
height: 100%;
position: absolute;
right: 0;
top: 0;
cursor: pointer;
.userDiv {
display: flex;
align-items: center;
span {
margin: 0 5px;
}
a {
display: flex;
align-items: center;
i {
margin-top: 4px;
}
}
a:hover {
span {
color: #e63e36;
}
svg {
path {
fill: #e63e36;
}
}
}
}
.userBox {
display: none;
position: absolute;
top: 36px;
right: 0px;
width: 109px;
height: 70px;
background: #fff;
border: 1px solid rgba(243, 243, 243, 1);
z-index: 999;
box-shadow: 0px 3px 12px rgba(98, 98, 98, 0.11);
ul {
width: 100%;
li {
display: flex;
align-items: center;
justify-content: center;
height: 35px;
width: 100%;
color: #333333;
font-size: 14px;
span {
font-size: 14px;
color: #333;
margin-left: 10px;
}
}
li:first-child {
border-bottom: 1px solid #f3f3f3;
}
li:hover {
svg {
path {
fill: #e63e36;
}
}
span {
color: #e63e36;
}
}
}
}
.userBox:after {
width: 0;
height: 0;
content: '';
position: absolute;
left: 45px;
top: -10px;
border-left: solid 10px transparent;
border-bottom: solid 10px white;
border-right: solid 10px transparent;
}
a {
font-size: 12px;
color: #878d99;
}
}
.user:hover {
.userBox {
display: block;
}
}
}
}
//导航栏部分
.laNav {
height: 80px;
width: 100%;
box-shadow: 0 1px 2px rgba(95, 95, 95, 0.1);
display: flex;
justify-content: center;
align-items: center;
background-color: #fff;
.laNavBody {
display: flex;
align-items: center;
justify-content: space-between;
width: 1200px;
height: 80px;
div:first-child {
display: flex;
align-items: center;
justify-content: center;
width: 240px;
min-width: 240px;
margin-right: 23px;
.laIcon {
width: 121px;
margin-right: 20px;
}
.allService {
display: flex;
align-items: center;
justify-content: center;
width: 102px;
height: 24px;
border: 1px solid #e63e36;
border-radius: 12px;
line-height: 24px;
a {
background: url('//statics.360jizhang.cn/staticFile/websiteFile/licenseAgent/xin.png') no-repeat 10px center;
background-size: 14px;
border-radius: 12px;
width: 100%;
padding-left: 28px;
height: 24px;
line-height: 24px;
display: inline-block;
font-size: 14px;
text-decoration: none;
color: #e63e36;
}
a:hover {
color: #fff;
background-image: url('//statics.360jizhang.cn/staticFile/websiteFile/licenseAgent/xin_bai.png');
background-color: #e63e36;
border: 1px solid #e63e36;
}
}
}
div:last-child {
height: 100%;
ul {
margin-bottom: 0;
list-style: none;
display: flex;
align-items: center;
justify-content: flex-end;
width: 920px;
height: 100%;
li {
margin-left: 53px;
a {
display: inline-block;
height: 50px;
line-height: 50px;
font-size: 16px;
font-weight: 400;
color: #1d2b36;
position: relative;
left: 0;
}
a:hover {
height: 70px;
line-height: 70px;
color: #e63e36;
}
}
}
}
}
}
}
/*
* @Author: liguokang
* @Date: 2021-07-15 10:34:53
* @LastEditors: liguokang
* @LastEditTime: 2021-07-15 10:35:22
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
import React from 'react';
import Document, { Head, Main, NextScript } from 'next/document';
const Fragment = React.Fragment;
export default class MyDocument extends Document {
static async getInitialProps(ctx) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}
render() {
return (
<Fragment>
<html>
<Head>
<style>{`body { margin: 0 } /* custom! */`}</style>
</Head>
<body className="custom_class">
<Main />
<NextScript />
</body>
</html>
</Fragment>
);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment