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
5e26a609
Commit
5e26a609
authored
Jan 20, 2021
by
张苗苗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化引导页
parent
d36597f1
Pipeline
#22753
skipped with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
9 deletions
+28
-9
index.js
src/pages/transitionalpage/index.js
+21
-7
index.less
src/pages/transitionalpage/index.less
+5
-0
config.js
src/routes/config.js
+2
-2
No files found.
src/pages/transitionalpage/index.js
View file @
5e26a609
...
...
@@ -104,8 +104,6 @@ class ProjectBox extends React.Component {
onMouseLeave
=
{
e
=>
this
.
mouseOutHandle
(
item
)}
/
>
<
div
>
{
item
}
<
/div
>
{
/* <div className={styles.bootPageitemImgB}>
</div> */
}
<
/div
>
<
/div
>
);
...
...
@@ -122,6 +120,20 @@ class ProjectBox extends React.Component {
class
RightBox
extends
React
.
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
智能大数据
:
false
,
智能实验室
:
false
,
};
}
mouseOveHandle
(
type
)
{
this
.
setState
({
[
type
]:
true
,
});
}
mouseOutHandle
(
type
)
{
this
.
setState
({
[
type
]:
false
,
});
}
renderList
(
data
)
{
const
{
callback
}
=
this
.
props
;
...
...
@@ -135,13 +147,15 @@ class RightBox extends React.Component {
type
=
{
item
}
key
=
{
item
}
onClick
=
{
event
=>
callback
(
event
,
item
)}
style
=
{{
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
)}
/
>
<
div
className
=
{
styles
.
bootPagebTitle
}
>
{
item
}
<
/div
>
<
div
className
=
{
styles
.
bootPagebContent
}
>
<
img
src
=
{
require
(
`../../assets/transitionalpage/
${
item
}
图.png`
)}
/
>
<
/div
>
<
/div
>
);
})
...
...
src/pages/transitionalpage/index.less
View file @
5e26a609
...
...
@@ -186,8 +186,13 @@
flex-direction: column;
width: 323px;
height: 278px;
position: relative;
cursor: pointer;
.bootPagebTitle {
padding: 20px 15px;
position: absolute;
left: 0;
top: 0;
}
.bootPagebContent {
width: 100%;
...
...
src/routes/config.js
View file @
5e26a609
import
BasicLayout
from
'../layouts/BasicLayout'
;
import
UserLayout
from
'../layouts/UserLayout'
;
//
import BootPage from '../pages/bootpage';
import
BootPage
from
'../pages/transitionalpage'
;
import
BootPage
from
'../pages/bootpage'
;
//
import BootPage from '../pages/transitionalpage';
import
NotFound
from
'../pages/exception/404'
;
import
ServiceFail
from
'../pages/exception/500'
;
import
Login
from
'../pages/user/login'
;
...
...
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