Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
eea4acc8
Commit
eea4acc8
authored
Jan 21, 2021
by
张苗苗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化引导页
parent
eddbeca5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
10 deletions
+26
-10
index.js
src/pages/transitionalpage/index.js
+24
-8
index.less
src/pages/transitionalpage/index.less
+2
-2
No files found.
src/pages/transitionalpage/index.js
View file @
eea4acc8
...
...
@@ -8,6 +8,8 @@ import styles from './index.less';
import
SecurityLayout
from
'../../layouts/SecurityLayout'
;
import
LoginAction
from
'../user/login/login'
;
import
{
actionCreators
}
from
'../../containers/App/store'
;
import
i18n
from
'../../utils/share'
;
const
pages
=
i18n
.
getI18n
(
'app'
);
class
WaterBox
extends
React
.
Component
{
// eslint-disable-next-line no-useless-constructor
constructor
(
props
)
{
...
...
@@ -89,19 +91,26 @@ class ProjectBox extends React.Component {
item
+
'.png'
)}
)`
,
}}
key
=
{
item
}
>
<
div
className
=
{
classNames
(
styles
.
bootPagelbBox
,
styles
.
bootPageitem
)}
type
=
{
item
}
key
=
{
item
}
onClick
=
{
event
=>
callback
(
event
,
item
)}
style
=
{{
background
:
`url(
${
require
(
'../../assets/transitionalpage/'
+
item
+
'图.jpg'
)}
)`
,
background
:
`url(
${
require
(
'../../assets/transitionalpage/'
+
item
+
'图.jpg'
)}
)`
,
}}
>
<
img
src
=
{
this
.
state
[
item
]
?
require
(
`../../assets/transitionalpage/
${
item
}
图动.gif`
):
require
(
`../../assets/transitionalpage/
${
item
}
图.jpg`
)
}
onMouseEnter
=
{
e
=>
this
.
mouseOveHandle
(
item
)}
onMouseLeave
=
{
e
=>
this
.
mouseOutHandle
(
item
)}
>
<
img
src
=
{
this
.
state
[
item
]
?
require
(
`../../assets/transitionalpage/
${
item
}
图动.gif`
)
:
require
(
`../../assets/transitionalpage/
${
item
}
图.jpg`
)
}
/
>
<
div
>
{
item
}
<
/div
>
<
/div
>
...
...
@@ -148,12 +157,19 @@ class RightBox extends React.Component {
key
=
{
item
}
onClick
=
{
event
=>
callback
(
event
,
item
)}
style
=
{{
background
:
`url(
${
require
(
'../../assets/transitionalpage/'
+
item
+
'图.jpg'
)}
)`
,
background
:
`url(
${
require
(
'../../assets/transitionalpage/'
+
item
+
'图.jpg'
)}
)`
,
}}
>
<
img
src
=
{
this
.
state
[
item
]
?
require
(
`../../assets/transitionalpage/
${
item
}
图动.gif`
):
require
(
`../../assets/transitionalpage/
${
item
}
图.jpg`
)
}
onMouseEnter
=
{
e
=>
this
.
mouseOveHandle
(
item
)}
onMouseLeave
=
{
e
=>
this
.
mouseOutHandle
(
item
)}
>
<
img
src
=
{
this
.
state
[
item
]
?
require
(
`../../assets/transitionalpage/
${
item
}
图动.gif`
)
:
require
(
`../../assets/transitionalpage/
${
item
}
图.jpg`
)
}
/
>
<
div
className
=
{
styles
.
bootPagebTitle
}
>
{
item
}
<
/div
>
<
/div
>
...
...
@@ -219,7 +235,7 @@ const BootPage = props => {
/>
<
div
className
=
{
styles
.
bootPageTitle
}
>
<
span
className
=
{
styles
.
bootPageZh
}
>
熊猫智慧城市监控管理解决方案
{
pages
.
get
(
'settings.bootpage.title'
)}
<
/span
>
<
/div
>
<
/header
>
...
...
src/pages/transitionalpage/index.less
View file @
eea4acc8
...
...
@@ -119,7 +119,6 @@
font-weight: normal;
display: flex;
align-items: center;
padding: 6px;
width: 316px;
height: 181px;
position: relative;
...
...
@@ -222,7 +221,8 @@
text-align: center;
font-size: 14px;
flex: none;
height: 100px;
height: 150px;
padding: 100px 0 0;
a {
color: #ffffff;
text-decoration: none;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment