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
59ce3e4e
Commit
59ce3e4e
authored
Aug 15, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syWebview
parent
a5a00f55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
syWebview.vue
pages/syWebview/syWebview.vue
+14
-5
No files found.
pages/syWebview/syWebview.vue
View file @
59ce3e4e
...
...
@@ -107,17 +107,16 @@ onLoad(async (options) => {
return
}
// 固定写死的 URL(不从 options 读取 baseUrl)
const
baseUrl
=
res
.
data
.
url
let
baseUrl
=
res
.
data
.
url
const
cuk
=
globalStore
.
cuk
const
openId
=
globalStore
.
openId
const
unionId
=
globalStore
.
unionId
// scene 需要使用 decodeURIComponent 才能获取到生成二维码时传入的 scene
// const scene = decodeURIComponent(options.scene
)
//
options.scene = null
const
scene
=
decodeURIComponent
(
decodeURIComponent
(
options
.
scene
)
)
options
.
scene
=
null
//
console.warn("scene", scene)
console
.
warn
(
"scene"
,
scene
)
// 将 options 的所有参数原样作为查询参数传给 H5,并补齐 cuk
const
params
=
{
...(
options
||
{})
}
...
...
@@ -141,6 +140,16 @@ onLoad(async (options) => {
// 示例:
// https://25niansuyuan.feihe.com/projects/Firmus/dev/index?p=xmh&openId=用户openid&unionId=用户unionid&&pt=yzhd123&shareToken=yzhd123&cuk=12121
if
(
scene
)
{
if
(
scene
[
0
]
===
'?'
)
{
baseUrl
+=
scene
}
else
{
baseUrl
+=
`?
${
scene
}
`
}
}
webviewUrl
.
value
=
paramStr
?
baseUrl
+
(
baseUrl
.
includes
(
'?'
)
?
'&'
:
'?'
)
+
paramStr
:
baseUrl
...
...
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