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
ff5df704
Commit
ff5df704
authored
Jun 07, 2024
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 引导 页修改
parent
d592f91c
Pipeline
#89616
failed with stages
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
122 additions
and
53 deletions
+122
-53
base.js
src/api/service/base.js
+6
-0
bottom_right_bg.png
src/assets/images/demonstration/bottom_right_bg.png
+0
-0
index.js
src/pages/demonstration/components/Bottom/index.js
+1
-1
index.less
src/pages/demonstration/components/Bottom/index.less
+7
-4
index.js
src/pages/demonstration/components/Iframe/index.js
+13
-14
index.js
src/pages/demonstration/components/Right/index.js
+1
-0
index.js
src/pages/demonstration/index.js
+53
-34
index.less
src/pages/demonstration/index.less
+41
-0
No files found.
src/api/service/base.js
View file @
ff5df704
...
@@ -49,6 +49,7 @@ export const API = {
...
@@ -49,6 +49,7 @@ export const API = {
GET_ACCOUNT_PAGE_LIST
:
'/PandaWorkFlow/WorkFlow/AccountManage/GetAccountPageList'
,
GET_ACCOUNT_PAGE_LIST
:
'/PandaWorkFlow/WorkFlow/AccountManage/GetAccountPageList'
,
GET_VIDEO_PLAY_LIST_BY_DEVICE_CODE
:
'/PandaMonitor/Monitor/Video/GetVideoPlayListByDeviceCode'
,
GET_VIDEO_PLAY_LIST_BY_DEVICE_CODE
:
'/PandaMonitor/Monitor/Video/GetVideoPlayListByDeviceCode'
,
HealthCheckUrl
:
'/PandaCore/GCK/HealthCheck/ApiCheck'
,
// 检查环境是否能访问
};
};
const
services
=
{
const
services
=
{
...
@@ -251,6 +252,11 @@ const services = {
...
@@ -251,6 +252,11 @@ const services = {
method
:
constants
.
REQUEST_METHOD_GET
,
method
:
constants
.
REQUEST_METHOD_GET
,
type
:
constants
.
REQUEST_HTTP
,
type
:
constants
.
REQUEST_HTTP
,
},
},
HealthCheckUrl
:
{
url
:
API
.
HealthCheckUrl
,
method
:
constants
.
REQUEST_METHOD_GET
,
type
:
constants
.
REQUEST_HTTP
,
},
};
};
export
const
searchAutoCity
=
keywords
=>
{
export
const
searchAutoCity
=
keywords
=>
{
...
...
src/assets/images/demonstration/bottom_right_bg.png
0 → 100644
View file @
ff5df704
This diff was suppressed by a .gitattributes entry.
src/pages/demonstration/components/Bottom/index.js
View file @
ff5df704
...
@@ -132,7 +132,7 @@ const BottomItem = props => {
...
@@ -132,7 +132,7 @@ const BottomItem = props => {
服务客户:
服务客户:
<
/div
>
<
/div
>
<
div
className
=
{
styles
.
l_item_num_list
}
>
{
renderNum
(
infoData
[
'服务客户'
],
'服务客户'
)}
<
/div
>
<
div
className
=
{
styles
.
l_item_num_list
}
>
{
renderNum
(
infoData
[
'服务客户'
],
'服务客户'
)}
<
/div
>
<
div
className
=
{
styles
.
l_item_num_unit
}
>
个
<
/div
>
<
div
className
=
{
styles
.
l_item_num_unit
}
>
+
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
{
styles
.
l_item
}
>
<
div
className
=
{
styles
.
l_item
}
>
<
div
className
=
{
styles
.
l_item_title
}
type
=
"覆盖省份"
>
<
div
className
=
{
styles
.
l_item_title
}
type
=
"覆盖省份"
>
...
...
src/pages/demonstration/components/Bottom/index.less
View file @
ff5df704
@imgSrc: '@/assets/images/demonstration';
@imgSrc: '@/assets/images/demonstration';
.bottom_item {
.bottom_item {
display: flex;
display: flex;
width:
100%
;
width:
calc(100% - 27px)
;
height: 100%;
height: 100%;
overflow: hidden;
overflow: hidden;
padding: 0 28px 10px;
padding: 0 15px 10px 28px;
background: url('@{imgSrc}/bottom_bg.png') no-repeat left top;
background: url('@{imgSrc}/bottom_bg.png') no-repeat left top,
background-size: calc(100% - 27px) 42px;
url('@{imgSrc}/bottom_right_bg.png') no-repeat right 5px;
background-size: calc(100% - 10px) 42px, auto calc(100% - 5px);
.left {
.left {
flex: none;
flex: none;
...
...
src/pages/demonstration/components/Iframe/index.js
View file @
ff5df704
...
@@ -7,32 +7,32 @@ import React, { memo, useEffect } from 'react';
...
@@ -7,32 +7,32 @@ import React, { memo, useEffect } from 'react';
import
Iframe
from
'react-iframe'
;
import
Iframe
from
'react-iframe'
;
import
Empty
from
'@wisdom-components/empty'
;
import
Empty
from
'@wisdom-components/empty'
;
import
axios
from
'axios'
;
import
axios
from
'axios'
;
import
classNames
from
'classnames'
;
import
{
appService
}
from
'@/api'
;
import
{
decode
,
encode
}
from
'js-base64'
;
import
styles
from
'./index.less'
;
import
styles
from
'./index.less'
;
const
IframeContainer
=
props
=>
{
const
IframeContainer
=
props
=>
{
const
{
linkUrl
,
onMessageBack
,
loading
}
=
props
;
const
{
linkUrl
,
onMessageBack
,
loading
}
=
props
;
const
onMessage
=
e
=>
{
const
onMessage
=
e
=>
{
console
.
log
(
'🚀 ~ e:'
,
e
);
onMessageBack
&&
onMessageBack
(
e
?.
data
);
onMessageBack
&&
onMessageBack
(
e
);
};
};
const
onError
=
e
=>
{
const
onError
=
e
=>
{
console
.
log
(
'🚀 ~ e:'
,
e
);
// onMessageBack && onMessageBack({ type: '无法连接' });
// onMessageBack && onMessageBack({ type: '无法连接' });
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
linkUrl
)
{
if
(
linkUrl
)
{
console
.
log
(
'🚀 ~ linkUrl:'
,
linkUrl
);
// console.log(decodeURIComponent(decode('aHR0cHMlM0ElMkYlMkZzbHlzLnBhbmRhLXdhdGVyLmNuJTJG')), 'decode'
);
const
url
=
linkUrl
;
const
url
=
linkUrl
;
const
baseUrl
=
url
.
split
(
'civbase'
)[
0
];
const
baseUrl
=
url
.
split
(
'civbase'
)[
0
];
axios
({
appService
url
:
`
${
baseUrl
}
PandaCore/GCK/Basis/GetUserInfo`
,
.
HealthCheckUrl
({
method
:
'get'
,
address
:
encode
(
baseUrl
),
params
:
{},
})
ignoreSite
:
true
,
})
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
res
,
'res'
);
if
(
res
?.
data
!==
1
)
{
onMessageBack
&&
onMessageBack
({
type
:
'无法连接'
});
}
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
onMessageBack
&&
onMessageBack
({
type
:
'无法连接'
});
onMessageBack
&&
onMessageBack
({
type
:
'无法连接'
});
...
@@ -50,11 +50,10 @@ const IframeContainer = props => {
...
@@ -50,11 +50,10 @@ const IframeContainer = props => {
};
};
},
[
linkUrl
,
onError
,
onMessage
,
onMessageBack
]);
},
[
linkUrl
,
onError
,
onMessage
,
onMessageBack
]);
return
(
return
(
<
div
className
=
{
styles
[
'tab-iframe'
]}
style
=
{{
left
:
loading
?
'-100%'
:
'0'
}
}
>
<
div
className
=
{
classNames
(
styles
[
'tab-iframe'
])
}
>
{
linkUrl
?
(
{
linkUrl
?
(
<
Iframe
<
Iframe
url
=
{
linkUrl
}
url
=
{
linkUrl
}
// url="http://127.0.0.1:8082/civbase/user/noscret/?client=city&token=fc6f4fb33eec42e2bded7d4a47218af8"
width
=
"100%"
width
=
"100%"
height
=
"100%"
height
=
"100%"
display
=
"block"
display
=
"block"
...
...
src/pages/demonstration/components/Right/index.js
View file @
ff5df704
...
@@ -11,6 +11,7 @@ import styles from './index.less';
...
@@ -11,6 +11,7 @@ import styles from './index.less';
const
RightItem
=
props
=>
{
const
RightItem
=
props
=>
{
const
{
listData
,
handToProduct
}
=
props
;
const
{
listData
,
handToProduct
}
=
props
;
const
toPage
=
row
=>
{
const
toPage
=
row
=>
{
if
(
row
.
ID
===
0
)
return
;
if
(
!
row
[
'产品地址'
])
return
message
.
warning
(
'未配置产品地址,请联系管理人员'
);
if
(
!
row
[
'产品地址'
])
return
message
.
warning
(
'未配置产品地址,请联系管理人员'
);
if
(
!
row
[
'产品地址'
].
includes
(
'https'
))
return
message
.
warning
(
'产品地址配置错误,请联系管理人员'
);
if
(
!
row
[
'产品地址'
].
includes
(
'https'
))
return
message
.
warning
(
'产品地址配置错误,请联系管理人员'
);
...
...
src/pages/demonstration/index.js
View file @
ff5df704
...
@@ -11,6 +11,7 @@ import { DoubleLeftOutlined, FullscreenExitOutlined, FullscreenOutlined, RightOu
...
@@ -11,6 +11,7 @@ import { DoubleLeftOutlined, FullscreenExitOutlined, FullscreenOutlined, RightOu
import
backImg
from
'@/assets/images/demonstration/返回.png'
;
import
backImg
from
'@/assets/images/demonstration/返回.png'
;
import
arrowLeftImg
from
'@/assets/images/demonstration/左箭头.png'
;
import
arrowLeftImg
from
'@/assets/images/demonstration/左箭头.png'
;
import
Cookies
from
'js-cookie'
;
import
Cookies
from
'js-cookie'
;
import
QueueAnim
from
'rc-queue-anim'
;
import
{
Button
,
Spin
,
message
,
Progress
}
from
'antd'
;
import
{
Button
,
Spin
,
message
,
Progress
}
from
'antd'
;
import
React
,
{
useMemo
,
useState
,
useEffect
,
useRef
}
from
'react'
;
import
React
,
{
useMemo
,
useState
,
useEffect
,
useRef
}
from
'react'
;
...
@@ -46,6 +47,7 @@ const Demonstration = props => {
...
@@ -46,6 +47,7 @@ const Demonstration = props => {
const
[
progressValue
,
setProgressValue
]
=
useState
(
0
);
const
[
progressValue
,
setProgressValue
]
=
useState
(
0
);
const
progressRef2
=
useRef
(
0
);
const
progressRef2
=
useRef
(
0
);
const
timer2
=
useRef
(
null
);
const
timer2
=
useRef
(
null
);
const
timer3
=
useRef
(
null
);
const
[
progressValue2
,
setProgressValue2
]
=
useState
(
0
);
const
[
progressValue2
,
setProgressValue2
]
=
useState
(
0
);
const
[
loading
,
setLoading
]
=
useState
(
true
);
const
[
loading
,
setLoading
]
=
useState
(
true
);
const
[
projectConfig
,
setProjectConfig
]
=
useState
({});
// 项目案例是否可免密跳转
const
[
projectConfig
,
setProjectConfig
]
=
useState
({});
// 项目案例是否可免密跳转
...
@@ -87,29 +89,42 @@ const Demonstration = props => {
...
@@ -87,29 +89,42 @@ const Demonstration = props => {
progressRef2
.
current
=
0
;
progressRef2
.
current
=
0
;
setProgressValue2
(
0
);
setProgressValue2
(
0
);
timer2
.
current
=
setInterval
(()
=>
{
timer2
.
current
=
setInterval
(()
=>
{
if
(
progressRef2
.
current
<
95
)
{
if
(
progressRef2
.
current
<
9
7.
5
)
{
progressRef2
.
current
+=
5
;
progressRef2
.
current
+=
2.
5
;
setProgressValue2
(
progressRef2
.
current
);
setProgressValue2
(
progressRef2
.
current
);
}
else
{
}
else
{
setProgressValue2
(
99
);
setProgressValue2
(
99
);
timer2
.
current
&&
clearInterval
(
timer2
.
current
);
timer2
.
current
&&
clearInterval
(
timer2
.
current
);
timer2
.
current
=
null
;
timer2
.
current
=
null
;
}
}
},
3
00
);
},
1
00
);
};
};
const
jumpProgressEnd
=
()
=>
{
const
jumpProgressEnd
=
()
=>
{
setProgressValue2
(
100
);
setProgressValue2
(
100
);
timer2
.
current
&&
clearInterval
(
timer2
.
current
);
timer2
.
current
&&
clearInterval
(
timer2
.
current
);
timer2
.
current
=
null
;
timer2
.
current
=
null
;
};
};
const
startTiming
=
(
time
=
2
)
=>
{
if
(
timer3
.
current
)
{
clearInterval
(
timer3
.
current
);
timer3
.
current
=
null
;
}
timer3
.
current
=
setTimeout
(()
=>
{
setJumpLoading
(
false
);
timer2
.
current
&&
clearInterval
(
timer2
.
current
);
timer2
.
current
=
null
;
},
time
*
1000
);
};
const
handToProduct
=
(
url
,
name
)
=>
{
const
handToProduct
=
(
url
,
name
)
=>
{
console
.
log
(
'🚀 ~ url, name:'
,
url
,
name
,
productConfig
);
console
.
log
(
'🚀 ~ url, name:'
,
url
,
name
,
productConfig
);
if
(
!
productConfig
[
name
])
return
message
.
warning
(
'该账号没有权限,请联系管理员'
);
if
(
!
productConfig
?.
[
name
])
return
message
.
warning
(
'该账号没有权限,请联系管理员'
);
setJumpLoading
(
true
);
setJumpLoading
(
true
);
jumpProgressStart
();
jumpProgressStart
();
setLinkUrl
(
url
);
setLinkUrl
(
url
);
startTiming
(
15
);
};
};
const
handError
=
err
=>
{
const
handError
=
err
=>
{
if
(
err
)
{
if
(
err
)
{
message
.
error
(
err
);
message
.
error
(
err
);
...
@@ -118,8 +133,9 @@ const Demonstration = props => {
...
@@ -118,8 +133,9 @@ const Demonstration = props => {
setJumpLoading
(
false
);
setJumpLoading
(
false
);
jumpProgressEnd
();
jumpProgressEnd
();
};
};
const
onMessageBack
=
info
=>
{
const
onMessageBack
=
data
=>
{
const
{
data
}
=
info
||
{};
if
(
!
data
?.
type
)
return
;
console
.
log
(
'🚀 ~ data:'
,
data
);
if
(
data
?.
type
===
'runAfterFirstMounted'
||
data
?.
type
===
'loginSuccess'
)
{
if
(
data
?.
type
===
'runAfterFirstMounted'
||
data
?.
type
===
'loginSuccess'
)
{
jumpProgressEnd
();
jumpProgressEnd
();
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
@@ -130,13 +146,19 @@ const Demonstration = props => {
...
@@ -130,13 +146,19 @@ const Demonstration = props => {
handError
();
handError
();
}
else
if
(
data
?.
type
===
'无法连接'
)
{
}
else
if
(
data
?.
type
===
'无法连接'
)
{
message
.
warning
(
'该站点无法连接,请联系管理人员'
);
message
.
warning
(
'该站点无法连接,请联系管理人员'
);
handError
();
setTimeout
(()
=>
{
handError
();
},
100
);
}
}
};
};
const
handToPage
=
url
=>
{
const
handToPage
=
url
=>
{
if
(
!
url
)
return
message
.
warning
(
'该环境未配置,请联系管理员'
);
if
(
!
url
)
return
message
.
warning
(
'该环境未配置,请联系管理员'
);
if
(
!
url
.
includes
(
'https'
))
return
;
if
(
!
url
.
includes
(
'https'
))
return
;
setJumpLoading
(
true
);
jumpProgressStart
();
setLinkUrl
(
url
);
setLinkUrl
(
url
);
startTiming
(
4
);
};
};
const
renderCenter
=
useMemo
(()
=>
{
const
renderCenter
=
useMemo
(()
=>
{
...
@@ -196,15 +218,12 @@ const Demonstration = props => {
...
@@ -196,15 +218,12 @@ const Demonstration = props => {
],
],
};
};
const
oid
=
props
.
global
.
userInfo
?.
cloudStationOID
||
props
.
global
.
userInfo
?.
OID
;
const
oid
=
props
.
global
.
userInfo
?.
cloudStationOID
||
props
.
global
.
userInfo
?.
OID
;
if
(
oid
)
{
if
(
!
oid
)
return
;
params
.
queryWheres
.
push
({
params
.
queryWheres
.
push
({
field
:
'账号'
,
field
:
'账号'
,
type
:
'等于'
,
type
:
'等于'
,
value
:
oid
.
toString
(),
value
:
oid
.
toString
(),
});
});
}
else
{
return
;
}
appService
.
getAccountPageList
(
params
).
then
(
res
=>
{
appService
.
getAccountPageList
(
params
).
then
(
res
=>
{
let
data
=
res
?.
data
?.
list
||
[];
let
data
=
res
?.
data
?.
list
||
[];
...
@@ -256,13 +275,11 @@ const Demonstration = props => {
...
@@ -256,13 +275,11 @@ const Demonstration = props => {
};
};
const
oid
=
props
.
global
.
userInfo
?.
cloudStationOID
||
props
.
global
.
userInfo
?.
OID
;
const
oid
=
props
.
global
.
userInfo
?.
cloudStationOID
||
props
.
global
.
userInfo
?.
OID
;
if
(
!
oid
)
return
;
if
(
!
oid
)
return
;
if
(
oid
)
{
params
.
queryWheres
.
push
({
params
.
queryWheres
.
push
({
field
:
'账号'
,
field
:
'账号'
,
type
:
'模糊查询'
,
type
:
'模糊查询'
,
value
:
oid
.
toString
(),
value
:
oid
.
toString
(),
});
});
}
appService
.
getAccountPageList
(
params
).
then
(
res
=>
{
appService
.
getAccountPageList
(
params
).
then
(
res
=>
{
const
data
=
res
?.
data
?.
list
||
[];
const
data
=
res
?.
data
?.
list
||
[];
...
@@ -384,8 +401,8 @@ const Demonstration = props => {
...
@@ -384,8 +401,8 @@ const Demonstration = props => {
返回
返回
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
{
classNames
(
'animate__fadeIn'
,
'animate__animated'
,
'duration-500ms
'
)}
>
<
div
className
=
{
classNames
(
!
jumpLoading
?
styles
.
scaleInCenter
:
styles
.
hide
,
'animate__animated
'
)}
>
<
Iframe
l
oading
=
{
jumpLoading
}
l
inkUrl
=
{
linkUrl
}
onMessageBack
=
{
onMessageBack
}
/
>
<
Iframe
linkUrl
=
{
linkUrl
}
onMessageBack
=
{
onMessageBack
}
/
>
<
/div
>
<
/div
>
<
/
>
<
/
>
);
);
...
@@ -450,10 +467,10 @@ const Demonstration = props => {
...
@@ -450,10 +467,10 @@ const Demonstration = props => {
},
[
props
.
global
]);
},
[
props
.
global
]);
useEffect
(()
=>
{
useEffect
(()
=>
{
const
tk
=
Cookies
.
get
(
'token'
)
||
props
.
global
.
token
;
const
tk
=
Cookies
.
get
(
'token'
)
||
props
.
global
.
token
;
const
isLogin
=
!!
tk
;
const
isLogin
=
tk
!==
null
&&
tk
!==
'undefined'
&&
tk
!==
void
0
;
console
.
log
(
'🚀 ~ isLogin:'
,
isLogin
);
let
client
=
props
?.
global
?.
client
||
sessionStorage
.
getItem
(
'client'
)
||
null
;
let
client
=
props
?.
global
?.
client
||
sessionStorage
.
getItem
(
'client'
)
||
null
;
client
=
client
!==
'undefined'
&&
!
_
.
isNull
(
client
)
&&
!
_
.
isUndefined
(
client
)
?
client
:
'city'
;
client
=
client
!==
'undefined'
&&
!
_
.
isNull
(
client
)
&&
!
_
.
isUndefined
(
client
)
?
client
:
'city'
;
// eslint-disable-next-line no-prototype-builtins
const
generateType
=
props
.
global
&&
props
.
global
.
hasOwnProperty
(
'get'
)
?
props
.
global
.
get
(
'generateType'
)
:
null
;
const
generateType
=
props
.
global
&&
props
.
global
.
hasOwnProperty
(
'get'
)
?
props
.
global
.
get
(
'generateType'
)
:
null
;
if
(
!
isLogin
)
{
if
(
!
isLogin
)
{
history
.
push
(
`/user/login?client=
${
client
}${
generateType
||
''
}
`
,
{
reload
:
true
});
history
.
push
(
`/user/login?client=
${
client
}${
generateType
||
''
}
`
,
{
reload
:
true
});
...
@@ -464,21 +481,20 @@ const Demonstration = props => {
...
@@ -464,21 +481,20 @@ const Demonstration = props => {
return
(
return
(
<
div
className
=
{
classNames
(
styles
.
demonstration
)}
ref
=
{
ref
}
>
<
div
className
=
{
classNames
(
styles
.
demonstration
)}
ref
=
{
ref
}
>
{
jumpLoading
?
(
{
jumpLoading
?
(
<
div
className
=
{
styles
.
demonstrationLoad
}
>
<
div
className
=
{
styles
.
demonstrationLoad
}
key
=
"jumpLoading"
>
<
div
style
=
{{
width
:
'285px'
}}
>
<
div
style
=
{{
width
:
'285px'
}}
>
<
LoadPage
percent
=
{
progressValue2
/
100
}
text
=
"加载中~"
/>
<
LoadPage
percent
=
{
progressValue2
/
100
}
text
=
"
页面
加载中~"
/>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
)
:
null
}
)
:
null
}
{
loading
||
progressValue
!==
100
?
(
{
loading
||
progressValue
!==
100
?
(
<
div
className
=
{
styles
.
loadingWrap
}
>
<
div
className
=
{
styles
.
loadingWrap
}
key
=
"loading"
>
<
div
style
=
{{
width
:
'285px'
}}
>
<
div
style
=
{{
width
:
'285px'
}}
>
<
LoadPage
percent
=
{
progressValue
/
100
}
text
=
"加载中~"
/>
<
LoadPage
percent
=
{
progressValue
/
100
}
text
=
"
数据
加载中~"
/>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
)
:
null
}
)
:
null
}
{
showFullScreen
?
(
{
showFullScreen
&&
!
linkUrl
?
(
<
div
className
=
{
styles
.
CV_exit
}
onClick
=
{
exit
}
>
<
div
className
=
{
styles
.
CV_exit
}
onClick
=
{
exit
}
>
<
Button
type
=
"text"
style
=
{{
color
:
'#fff'
,
fontSize
:
'24px'
}}
>
<
Button
type
=
"text"
style
=
{{
color
:
'#fff'
,
fontSize
:
'24px'
}}
>
{
isFullscreen
?
<
FullscreenExitOutlined
/>
:
<
FullscreenOutlined
/>
}
{
isFullscreen
?
<
FullscreenExitOutlined
/>
:
<
FullscreenOutlined
/>
}
...
@@ -560,6 +576,9 @@ const mapDispatchToProps = dispatch => ({
...
@@ -560,6 +576,9 @@ const mapDispatchToProps = dispatch => ({
updateCurrentIndex
(
index
)
{
updateCurrentIndex
(
index
)
{
dispatch
(
actionCreators
.
updateCurrentIndex
(
index
));
dispatch
(
actionCreators
.
updateCurrentIndex
(
index
));
},
},
logout
()
{
dispatch
(
actionCreators
.
logout
());
},
});
});
export
default
connect
(
export
default
connect
(
mapStateToProps
,
mapStateToProps
,
...
...
src/pages/demonstration/index.less
View file @
ff5df704
...
@@ -369,4 +369,44 @@
...
@@ -369,4 +369,44 @@
left: 0;
left: 0;
z-index: 1080;
z-index: 1080;
padding-bottom: 50px;
padding-bottom: 50px;
}
.hide {
visibility: hidden;
}
@-webkit-keyframes scale-in-center {
0% {
-webkit-transform: scaleY(0);
transform: scaleY(0);
opacity: 1;
}
100% {
-webkit-transform: scaleY(1);
transform: scaleY(1);
opacity: 1;
}
}
@keyframes scale-in-center {
0% {
-webkit-transform: scaleY(0);
transform: scaleY(0);
opacity: 1;
}
100% {
-webkit-transform: scaleY(1);
transform: scaleY(1);
opacity: 1;
}
}
.scaleInCenter {
visibility: visible;
-webkit-animation: scale-in-center .3s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
animation: scale-in-center .3s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
}
\ No newline at end of file
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