Commit 1d2d7446 authored by 程恺文's avatar 程恺文

登录页

parent 892d621a
Pipeline #78013 passed with stages
...@@ -3,6 +3,9 @@ import Zoom from 'react-reveal/Zoom'; ...@@ -3,6 +3,9 @@ import Zoom from 'react-reveal/Zoom';
import Fade from 'react-reveal/Fade'; import Fade from 'react-reveal/Fade';
import Slide from 'react-reveal/Slide'; import Slide from 'react-reveal/Slide';
import Roll from 'react-reveal/Roll'; import Roll from 'react-reveal/Roll';
import Pulse from 'react-reveal/Pulse';
import QueueAnim from 'rc-queue-anim';
import { Modal, Popover, Form, Tooltip } from 'antd'; import { Modal, Popover, Form, Tooltip } from 'antd';
import { Helmet, HelmetProvider } from 'react-helmet-async'; import { Helmet, HelmetProvider } from 'react-helmet-async';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
...@@ -13,6 +16,7 @@ import classnames from 'classnames'; ...@@ -13,6 +16,7 @@ import classnames from 'classnames';
import QRCode from 'qrcode.react'; import QRCode from 'qrcode.react';
import { Swiper, SwiperSlide } from 'swiper/react'; import { Swiper, SwiperSlide } from 'swiper/react';
import SwiperCore, { Autoplay } from 'swiper/core'; import SwiperCore, { Autoplay } from 'swiper/core';
import $ from 'jquery';
import defaultSetting from '../../../../../../../config/defaultSetting'; import defaultSetting from '../../../../../../../config/defaultSetting';
import LoginAction from '../../../login'; import LoginAction from '../../../login';
import styles from './index.less'; import styles from './index.less';
...@@ -22,7 +26,6 @@ import logoPng from './images/8.png'; ...@@ -22,7 +26,6 @@ import logoPng from './images/8.png';
import qrcodePng from './images/1.png'; import qrcodePng from './images/1.png';
import welcomePng from './images/4.png'; import welcomePng from './images/4.png';
// import SwiperCore, { Autoplay, Navigation } from 'swiper/core'; // import SwiperCore, { Autoplay, Navigation } from 'swiper/core';
// SwiperCore.use([Autoplay, Navigation]); // SwiperCore.use([Autoplay, Navigation]);
import 湖口润泉水源地 from './images/江西水投子公司图片/湖口润泉水源地.png'; import 湖口润泉水源地 from './images/江西水投子公司图片/湖口润泉水源地.png';
import 会昌润泉石壁坑水库 from './images/江西水投子公司图片/会昌润泉石壁坑水库.png'; import 会昌润泉石壁坑水库 from './images/江西水投子公司图片/会昌润泉石壁坑水库.png';
...@@ -41,6 +44,7 @@ import 上高润泉水务公司2 from './images/江西水投子公司图片/上 ...@@ -41,6 +44,7 @@ import 上高润泉水务公司2 from './images/江西水投子公司图片/上
import 寻乌润泉大路水厂 from './images/江西水投子公司图片/寻乌润泉大路水厂.png'; import 寻乌润泉大路水厂 from './images/江西水投子公司图片/寻乌润泉大路水厂.png';
import 永修润泉湖东水厂 from './images/江西水投子公司图片/永修润泉湖东水厂.png'; import 永修润泉湖东水厂 from './images/江西水投子公司图片/永修润泉湖东水厂.png';
import 'swiper/swiper-bundle.css'; import 'swiper/swiper-bundle.css';
const Cripples = require('@/assets/js/ripples/jquery.ripples');
SwiperCore.use([Autoplay]); SwiperCore.use([Autoplay]);
const PopOvercontent = () => { const PopOvercontent = () => {
const qrcodes = window.globalConfig && window.globalConfig.qrcode; const qrcodes = window.globalConfig && window.globalConfig.qrcode;
...@@ -77,12 +81,12 @@ const Login = forwardRef((props, _ref) => { ...@@ -77,12 +81,12 @@ const Login = forwardRef((props, _ref) => {
'南城润泉麻源水库3', '南城润泉麻源水库3',
'南康润泉龙华水厂', '南康润泉龙华水厂',
'南康润泉龙华水厂2', '南康润泉龙华水厂2',
'上高润泉第二水厂', // '上高润泉第二水厂',
'上高润泉第二水厂平流沉淀池', '上高润泉第二水厂平流沉淀池',
'上高润泉水务公司', '上高润泉水务公司',
'上高润泉水务公司2', // '上高润泉水务公司2',
'寻乌润泉大路水厂', '寻乌润泉大路水厂',
'永修润泉湖东水厂', // '永修润泉湖东水厂',
]); ]);
const [imgObj, setimgObj] = useState({ const [imgObj, setimgObj] = useState({
湖口润泉水源地, 湖口润泉水源地,
...@@ -95,12 +99,12 @@ const Login = forwardRef((props, _ref) => { ...@@ -95,12 +99,12 @@ const Login = forwardRef((props, _ref) => {
南城润泉麻源水库3, 南城润泉麻源水库3,
南康润泉龙华水厂, 南康润泉龙华水厂,
南康润泉龙华水厂2, 南康润泉龙华水厂2,
上高润泉第二水厂, // 上高润泉第二水厂,
上高润泉第二水厂平流沉淀池, 上高润泉第二水厂平流沉淀池,
上高润泉水务公司, 上高润泉水务公司,
上高润泉水务公司2, // 上高润泉水务公司2,
寻乌润泉大路水厂, 寻乌润泉大路水厂,
永修润泉湖东水厂, // 永修润泉湖东水厂,
}); });
const handleSubmit = values => { const handleSubmit = values => {
...@@ -117,7 +121,18 @@ const Login = forwardRef((props, _ref) => { ...@@ -117,7 +121,18 @@ const Login = forwardRef((props, _ref) => {
setSubmitting(true); setSubmitting(true);
props.updateCurrentIndex && props.updateCurrentIndex(-1); props.updateCurrentIndex && props.updateCurrentIndex(-1);
}; };
useEffect(() => {
// setTimeout(() => {
// onShow();
// }, 300);
setTimeout(() => {
$('.CarouselRipples').ripples({
resolution: 800,
dropRadius: 20, //px
perturbance: 2,
});
}, 1000);
}, []);
useEffect(() => { useEffect(() => {
action && action &&
action.events.on('loginSuccess', event => { action.events.on('loginSuccess', event => {
...@@ -218,7 +233,7 @@ const Login = forwardRef((props, _ref) => { ...@@ -218,7 +233,7 @@ const Login = forwardRef((props, _ref) => {
useEffect(() => { useEffect(() => {
if (timeRef.current) clearTimeout(timeRef.current); if (timeRef.current) clearTimeout(timeRef.current);
timeRef.current = setTimeout(() => { timeRef.current = setTimeout(() => {
if (num < 15) { if (num < 12) {
setNum(num + 1); setNum(num + 1);
} else { } else {
setNum(0); setNum(0);
...@@ -234,12 +249,11 @@ const Login = forwardRef((props, _ref) => { ...@@ -234,12 +249,11 @@ const Login = forwardRef((props, _ref) => {
}; };
const getBJ = (url) => { const getBJ = (url) => {
return ( return (
<Slide>
<div <div
style={{ background: `url(${url}) no-repeat` }} style={{ background: `url(${url}) no-repeat` }}
className={classnames(styles.lvchenglogin, 'lvcheng')} className={classnames(styles.lvchenglogin, 'lvcheng')}
> >
<Slide>
<div className={styles['inner-wrapper']}> <div className={styles['inner-wrapper']}>
<div className={styles['title-image-box']}> <div className={styles['title-image-box']}>
<img <img
...@@ -253,8 +267,8 @@ const Login = forwardRef((props, _ref) => { ...@@ -253,8 +267,8 @@ const Login = forwardRef((props, _ref) => {
/> />
<span className={styles['title-name']}>{props.global.title}</span> <span className={styles['title-name']}>{props.global.title}</span>
</div> </div>
<Roll> <QueueAnim type="scale" duration={1000}>
<div className={styles['inner-center']}> <div key={'innerwrapper'} style={{position: 'relative',zIndex:2,backdropFilter: 'blur(6px)'}} className={styles['inner-center']}>
<Tooltip title="打开网站下载"> <Tooltip title="打开网站下载">
<div className={styles.linkBox} onClick={toLink}> <div className={styles.linkBox} onClick={toLink}>
<img style={{ width: '14px', marginRight: '4px' }} src={require('./images/下载.png')} alt="" /> <img style={{ width: '14px', marginRight: '4px' }} src={require('./images/下载.png')} alt="" />
...@@ -283,8 +297,8 @@ const Login = forwardRef((props, _ref) => { ...@@ -283,8 +297,8 @@ const Login = forwardRef((props, _ref) => {
<img src={qrcodePng} alt="APP" className={styles['qrcode-box']} /> <img src={qrcodePng} alt="APP" className={styles['qrcode-box']} />
</Popover> */} </Popover> */}
</div> </div>
</Roll> </QueueAnim>
</div></Slide> </div>
<div className={styles['login-header']}> <div className={styles['login-header']}>
{/* <div className={styles['left-title']}> {/* <div className={styles['left-title']}>
<img src={logoPng} alt='logo' className={styles['logo-png']}/> <img src={logoPng} alt='logo' className={styles['logo-png']}/>
...@@ -298,7 +312,7 @@ const Login = forwardRef((props, _ref) => { ...@@ -298,7 +312,7 @@ const Login = forwardRef((props, _ref) => {
</div> </div>
</div> </div>
</div> </div>
<div className={classnames(styles.CarouselRipples, 'CarouselRipples')} data-ripple="ripple" />
<Modal centered visible={visible} width={340} footer={null} closable={false} bodyStyle={{ padding: '15px' }}> <Modal centered visible={visible} width={340} footer={null} closable={false} bodyStyle={{ padding: '15px' }}>
<div ref={sliVerify} /> <div ref={sliVerify} />
</Modal> </Modal>
...@@ -308,7 +322,7 @@ const Login = forwardRef((props, _ref) => { ...@@ -308,7 +322,7 @@ const Login = forwardRef((props, _ref) => {
if (num > 0) { if (num > 0) {
setNum(num - 1); setNum(num - 1);
} else { } else {
setNum(15); setNum(12);
} }
}} }}
> >
...@@ -319,11 +333,11 @@ const Login = forwardRef((props, _ref) => { ...@@ -319,11 +333,11 @@ const Login = forwardRef((props, _ref) => {
<Swiper <Swiper
autoplay={{ delay: 5000 }} autoplay={{ delay: 5000 }}
loop loop
spaceBetween={0} spaceBetween={1}
slidesPerView={13} slidesPerView={12}
onSlideChange={() => console.log('slide change')} onSlideChange={() => console.log('slide change')}
onSwiper={swiper => console.log(swiper)} onSwiper={swiper => console.log(swiper)}
style={{ width: 'calc(100% - 320px)', height: '100%' }} style={{ width: 'calc(100% - 340px)', height: '100%' }}
> >
{img.map((v, i) => { {img.map((v, i) => {
return ( return (
...@@ -339,8 +353,8 @@ const Login = forwardRef((props, _ref) => { ...@@ -339,8 +353,8 @@ const Login = forwardRef((props, _ref) => {
title={v} title={v}
style={{ style={{
border: i == num ? '2px solid #FFDFA0' : '0px', border: i == num ? '2px solid #FFDFA0' : '0px',
width: i == num ? '60px' : '60px', width: i == num ? '82px' : '82px',
height: i == num ? '60px' : '60px', height: i == num ? '82px' : '82px',
}} }}
src={require(`./images/江西水投子公司图片/${v}.png`)} src={require(`./images/江西水投子公司图片/${v}.png`)}
alt="" alt=""
...@@ -353,8 +367,8 @@ const Login = forwardRef((props, _ref) => { ...@@ -353,8 +367,8 @@ const Login = forwardRef((props, _ref) => {
whiteSpace: 'nowrap', whiteSpace: 'nowrap',
color: 'white', color: 'white',
textOverflow: 'ellipsis', textOverflow: 'ellipsis',
top: '41px', top: '61px',
width: '60px', width: '82px',
fontSize: '12px', fontSize: '12px',
textAlign: 'center', textAlign: 'center',
background: 'rgba(0,0,0,0.4)', background: 'rgba(0,0,0,0.4)',
...@@ -371,7 +385,7 @@ const Login = forwardRef((props, _ref) => { ...@@ -371,7 +385,7 @@ const Login = forwardRef((props, _ref) => {
</div> </div>
<div <div
onClick={() => { onClick={() => {
if (num < 15) { if (num < 12) {
setNum(num + 1); setNum(num + 1);
} else { } else {
setNum(0); setNum(0);
...@@ -383,7 +397,7 @@ const Login = forwardRef((props, _ref) => { ...@@ -383,7 +397,7 @@ const Login = forwardRef((props, _ref) => {
</div> </div>
</div> </div>
</div> </div>
</Slide>
); );
}; };
return ( return (
...@@ -421,4 +435,4 @@ const mapDispatchToProps = dispatch => ({ ...@@ -421,4 +435,4 @@ const mapDispatchToProps = dispatch => ({
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps, mapDispatchToProps,
)(withRouter(Login)); )(withRouter(Login));
\ No newline at end of file
...@@ -17,13 +17,13 @@ ...@@ -17,13 +17,13 @@
align-items: center; align-items: center;
.lbt{ .lbt{
width: 100vw; width: 100vw;
height: 82px; height:108px;
background-color: rgba(0,0,0,0.4); background-color: rgba(0,0,0,0.4);
// border: 1px solid #000000; // border: 1px solid #000000;
/// opacity: 0.6; /// opacity: 0.6;
position: absolute; position: absolute;
/* top: 10px; */ /* top: 10px; */
bottom: 125px; bottom: 89px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
...@@ -225,11 +225,16 @@ ...@@ -225,11 +225,16 @@
height: 60px; height: 60px;
.curr-time { .curr-time {
width: 140px; width: 154px;
font-size: 36px; font-size: 36px;
font-family: Microsoft YaHei; // font-family: Microsoft YaHei;
font-weight: 300; font-weight: 300;
color: black; color:white;
font-family: Alibaba PuHuiTi;
font-weight: 500;
color: #FFFFFF;
// line-height: 91px;
text-shadow: 0px 1px 5px rgba(6,27,54,0.8);
} }
.curr-week-date { .curr-week-date {
...@@ -237,16 +242,28 @@ ...@@ -237,16 +242,28 @@
.curr-week { .curr-week {
font-size: 16px; font-size: 16px;
font-family: Microsoft YaHei; // font-family: Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: black; color:white;
color:white;
font-family: Alibaba PuHuiTi;
font-weight: 500;
color: #FFFFFF;
// line-height: 91px;
text-shadow: 0px 1px 5px rgba(6,27,54,0.8);
} }
.curr-date { .curr-date {
font-size: 14px; font-size: 14px;
font-family: Microsoft YaHei; // font-family: Microsoft YaHei;
font-weight: 400; font-weight: 400;
color: black; color:white;
color:white;
font-family: Alibaba PuHuiTi;
font-weight: 500;
color: #FFFFFF;
// line-height: 91px;
text-shadow: 0px 1px 5px rgba(6,27,54,0.8);
} }
} }
} }
...@@ -331,4 +348,22 @@ ...@@ -331,4 +348,22 @@
to { to {
left: -9999px; left: -9999px;
} }
}
.CarouselRipples {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
& :global {
.CarouselRipples:before {
content: '';
display: inline-block;
vertical-align: middle;
height: 100%;
}
} }
\ No newline at end of file
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