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
4736a443
Commit
4736a443
authored
Jan 25, 2024
by
杨思琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
三方跳转修改
parent
c9309ca6
Pipeline
#84725
passed with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
13 deletions
+54
-13
背景.jpg
src/assets/images/commonMenu/背景.jpg
+0
-0
JumpThirdLink.js
src/pages/system/iframe/JumpThirdLink.js
+26
-13
index.less
src/pages/system/iframe/index.less
+28
-0
No files found.
src/assets/images/commonMenu/背景.jpg
0 → 100644
View file @
4736a443
This diff was suppressed by a .gitattributes entry.
src/pages/system/iframe/JumpThirdLink.js
View file @
4736a443
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
React
,
{
useEffect
}
from
'react'
;
import
{
Button
}
from
'antd'
;
import
BgImg
from
'@/assets/images/commonMenu/背景.jpg'
;
import
styles
from
'./index.less'
;
const
JumpThirdLink
=
props
=>
{
let
linkUrl
=
props
.
params
.
linkUrl
||
''
;
console
.
log
(
'linkUrl'
,
linkUrl
)
useEffect
(()
=>
{
if
(
linkUrl
)
{
console
.
log
(
'linkUrl'
,
linkUrl
)
window
.
open
(
linkUrl
,
'_blank'
);
}
},
[]);
const
linkUrl
=
props
.
params
.
linkUrl
||
''
;
const
jumpLink
=
()
=>
{
window
.
open
(
linkUrl
,
'_blank'
);
};
useEffect
(()
=>
{
if
(
linkUrl
)
{
jumpLink
();
}
},
[]);
return
(
<
div
><
/div
>
);
return
(
<
div
className
=
{
styles
[
'jump-panel'
]}
style
=
{{
background
:
`url(
${
BgImg
}
) center/100% 100% no-repeat`
,
}}
>
<
div
className
=
{
styles
[
'jump-text'
]}
>
当前已打开跳转页,点击按钮打开
<
/div
>
<
Button
className
=
{
styles
[
'jump-button'
]}
type
=
"primary"
onClick
=
{
jumpLink
}
>
立即前往
<
/Button
>
<
/div
>
);
};
export
default
JumpThirdLink
;
src/pages/system/iframe/index.less
View file @
4736a443
.jump-panel {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
.jump-text {
font-size: 20px;
font-family: PingFang SC;
font-weight: 500;
color: #233B58;
height: 35px;
line-height: 35px;
margin: auto 50% 10px auto;
transform: translateX(300px);
}
.jump-button {
margin: 10px 50% auto auto;
transform: translateX(109px);
width: 109px;
height: 32px;
box-shadow: 0px 7px 8px 0px rgba(22,133,255,0.51);
border-radius: 16px;
}
}
.tab-iframe {
width: 100%;
height: 100%;
...
...
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