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
d592f91c
Commit
d592f91c
authored
Jun 06, 2024
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改引导页
parent
8077ea6e
Pipeline
#89599
passed with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
9 deletions
+19
-9
index.js
src/pages/demonstration/components/Iframe/index.js
+1
-2
index.less
src/pages/demonstration/components/Iframe/index.less
+1
-0
index.js
src/pages/demonstration/index.js
+7
-6
config.js
src/routes/config.js
+10
-1
No files found.
src/pages/demonstration/components/Iframe/index.js
View file @
d592f91c
...
...
@@ -50,8 +50,7 @@ const IframeContainer = props => {
};
},
[
linkUrl
,
onError
,
onMessage
,
onMessageBack
]);
return
(
// style={{ left: loading ? '-100%' : '' }}
<
div
className
=
{
styles
[
'tab-iframe'
]}
>
<
div
className
=
{
styles
[
'tab-iframe'
]}
style
=
{{
left
:
loading
?
'-100%'
:
'0'
}}
>
{
linkUrl
?
(
<
Iframe
url
=
{
linkUrl
}
...
...
src/pages/demonstration/components/Iframe/index.less
View file @
d592f91c
...
...
@@ -4,6 +4,7 @@
position: relative;
overflow: hidden;
z-index: 100;
transition: all 0.2s;
iframe {
border: none;
...
...
src/pages/demonstration/index.js
View file @
d592f91c
...
...
@@ -119,15 +119,16 @@ const Demonstration = props => {
jumpProgressEnd
();
};
const
onMessageBack
=
info
=>
{
if
(
info
?.
type
===
'runAfterFirstMounted'
||
info
?.
type
===
'loginSuccess'
)
{
const
{
data
}
=
info
||
{};
if
(
data
?.
type
===
'runAfterFirstMounted'
||
data
?.
type
===
'loginSuccess'
)
{
jumpProgressEnd
();
setTimeout
(()
=>
{
setJumpLoading
(
tru
e
);
setJumpLoading
(
fals
e
);
},
200
);
}
else
if
(
info
?.
type
===
'loginError'
)
{
}
else
if
(
data
?.
type
===
'loginError'
)
{
message
.
warning
(
'登录失败,请联系管理人员'
);
handError
();
}
else
if
(
info
?.
type
===
'无法连接'
)
{
}
else
if
(
data
?.
type
===
'无法连接'
)
{
message
.
warning
(
'该站点无法连接,请联系管理人员'
);
handError
();
}
...
...
@@ -388,7 +389,7 @@ const Demonstration = props => {
<
/div
>
<
/
>
);
},
[
linkUrl
]);
},
[
linkUrl
,
jumpLoading
]);
useEffect
(()
=>
{
if
(
loading
&&
!
timer
.
current
)
{
...
...
@@ -431,7 +432,7 @@ const Demonstration = props => {
window
.
share
.
event
.
removeListener
(
'loginError'
,
handError
);
window
.
share
.
event
.
removeListener
(
'onendLoading'
,
onendLoading
);
};
},
[
jumpLoading
]);
},
[]);
useEffect
(()
=>
{
getData
();
...
...
src/routes/config.js
View file @
d592f91c
...
...
@@ -6,6 +6,7 @@ import { dynamic } from '@wisdom-utils/runtime';
import
BasicLayout
from
'../layouts/BasicLayout'
;
import
HomePage
from
'../layouts/TransitionPage'
;
import
BootPage
from
'../pages/bootpage'
;
import
Demonstration
from
'../pages/demonstration'
;
// 引导页
import
UsingAnalysis
from
'../pages/cloud/analysis/using'
;
import
NewProducts
from
'../pages/cloud/introduction/newproducts'
;
import
CommonMenu
from
'../pages/commonMenu'
;
...
...
@@ -53,8 +54,16 @@ export const dyRoutes = (routes, layout, theme) => {
},
{
path
:
'/industry'
,
component
:
BootPage
,
component
:
Demonstration
,
},
// {
// path: '/demonstration',
// component: Demonstration,
// },
// {
// path: '/industry',
// component: BootPage,
// },
{
path
:
'/cloud/analysis/using'
,
component
:
UsingAnalysis
,
...
...
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