Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
9efae7be
Commit
9efae7be
authored
Sep 18, 2025
by
chenkai@duiba.com.cn
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab2.dui88.com/fh/20250528_FHQ1
parents
86e9533d
001ceddf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
96 additions
and
0 deletions
+96
-0
pages.json
pages.json
+7
-0
middlePage.vue
pages/middlePage/middlePage.vue
+89
-0
No files found.
pages.json
View file @
9efae7be
...
...
@@ -196,6 +196,13 @@
"navigationBarTitleText"
:
""
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/middlePage/middlePage"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
}
],
"subPackages"
:
[
...
...
pages/middlePage/middlePage.vue
0 → 100644
View file @
9efae7be
<
template
>
<view
class=
"third-jump-page"
@
click=
"retryJump"
>
<image
class=
"bg-img"
:src=
"`$
{$baseUrl}${bgImg}`" mode="widthFix">
</image>
</view>
</
template
>
<
script
setup
>
import
{
ref
,
onMounted
,
getCurrentInstance
}
from
'vue'
import
{
jump
}
from
'../../utils/index.js'
;
// Import jump function
// 获取全局属性
const
{
proxy
}
=
getCurrentInstance
()
const
$baseUrl
=
proxy
.
$baseUrl
// 响应式数据
const
jumpFailed
=
ref
(
false
)
const
errorMessage
=
ref
(
''
)
const
jumpParams
=
ref
({})
const
bgImg
=
ref
(
''
)
// const bgImgObj = {
// 'sy': 'thirdJumpMiddlePage/v1/syJumpPageBg.jpg'
// }
// 页面加载时获取参数
onMounted
(()
=>
{
// 获取页面参数
const
pages
=
getCurrentPages
()
const
currentPage
=
pages
[
pages
.
length
-
1
]
const
options
=
currentPage
.
options
||
{}
// 解析跳转参数
jumpParams
.
value
=
{
appId
:
options
.
appId
||
''
,
path
:
decodeURIComponent
(
options
.
path
)
||
''
,
extraData
:
options
.
extraData
?
JSON
.
parse
(
decodeURIComponent
(
options
.
extraData
))
:
{},
envVersion
:
options
.
envVersion
||
'release'
,
type
:
options
.
type
,
embedded
:
options
.
embedded
,
}
// 执行跳转
executeJump
()
})
// 执行跳转
const
executeJump
=
()
=>
{
const
jumpData
=
{
type
:
jumpParams
.
value
.
type
*
1
,
url
:
jumpParams
.
value
.
path
,
extra
:
{
appId
:
jumpParams
.
value
.
appId
,
path
:
jumpParams
.
value
.
path
,
extraData
:
jumpParams
.
value
.
extraData
,
envVersion
:
jumpParams
.
value
.
envVersion
,
embedded
:
jumpParams
.
value
.
embedded
}
}
console
.
warn
(
'executeJump jumpData:'
,
jumpData
)
jump
(
jumpData
)
}
// 重试跳转
const
retryJump
=
()
=>
{
executeJump
()
}
</
script
>
<
style
lang=
"less"
scoped
>
.third-jump-page {
background: white;
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
padding: 40rpx;
}
.bg-img {
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
</
style
>
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