Commit 9a0f9a09 authored by 程恺文's avatar 程恺文

随机播放渐入渐出

parent fcad09eb
Pipeline #78027 passed with stages
...@@ -70,24 +70,26 @@ const Login = forwardRef((props, _ref) => { ...@@ -70,24 +70,26 @@ const Login = forwardRef((props, _ref) => {
const [action, setAction] = useState(() => new LoginAction(Object.assign({}, props, { history }), setVisible, false)); const [action, setAction] = useState(() => new LoginAction(Object.assign({}, props, { history }), setVisible, false));
const [dateObj, setDateObj] = useState({}); const [dateObj, setDateObj] = useState({});
const [loginType, setLoginType] = useState('OA账号'); const [loginType, setLoginType] = useState('OA账号');
const [img, setImg] = useState([ const [img, setImg] = useState(
'湖口润泉水源地', [
'会昌润泉石壁坑水库', '湖口润泉水源地',
'景德镇水务公司', '会昌润泉石壁坑水库',
'景德镇水务新洋湖水厂', '景德镇水务公司',
'乐平润泉水务公司', '景德镇水务新洋湖水厂',
'南城润泉麻源水库1', '乐平润泉水务公司',
'南城润泉麻源水库2', '南城润泉麻源水库1',
'南城润泉麻源水库3', '南城润泉麻源水库2',
'南康润泉龙华水厂', '南城润泉麻源水库3',
'南康润泉龙华水厂2', '南康润泉龙华水厂',
// '上高润泉第二水厂', '南康润泉龙华水厂2',
'上高润泉第二水厂平流沉淀池', // '上高润泉第二水厂',
'上高润泉水务公司', '上高润泉第二水厂平流沉淀池',
// '上高润泉水务公司2', '上高润泉水务公司',
'寻乌润泉大路水厂', // '上高润泉水务公司2',
// '永修润泉湖东水厂', '寻乌润泉大路水厂',
]); // '永修润泉湖东水厂',
].sort(() => 0.5 - Math.random()),
);
const [imgObj, setimgObj] = useState({ const [imgObj, setimgObj] = useState({
湖口润泉水源地, 湖口润泉水源地,
会昌润泉石壁坑水库, 会昌润泉石壁坑水库,
...@@ -250,7 +252,7 @@ const Login = forwardRef((props, _ref) => { ...@@ -250,7 +252,7 @@ const Login = forwardRef((props, _ref) => {
const getBJ = (url) => { const getBJ = (url) => {
return ( return (
<div <div
style={{ background: `url(${url}) no-repeat` }} style={{ background: `url(${url}) no-repeat`, transition: 'background-image 1s' }}
className={classnames(styles.lvchenglogin, 'lvcheng')} className={classnames(styles.lvchenglogin, 'lvcheng')}
> >
......
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