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
6b992d90
Commit
6b992d90
authored
Aug 12, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p
parent
b932ec09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
syWebview.vue
pages/syWebview/syWebview.vue
+5
-5
No files found.
pages/syWebview/syWebview.vue
View file @
6b992d90
...
@@ -43,9 +43,7 @@ import { onLoad, onShareAppMessage, onShareTimeline, onPageScroll } from "@dclou
...
@@ -43,9 +43,7 @@ import { onLoad, onShareAppMessage, onShareTimeline, onPageScroll } from "@dclou
// 响应式数据
// 响应式数据
const
statusBarHeight
=
ref
(
0
)
const
statusBarHeight
=
ref
(
0
)
const
webviewUrl
=
ref
(
''
)
const
webviewUrl
=
ref
(
''
)
const
pageTitle
=
ref
(
'加载中...'
)
const
share
=
ref
(
null
)
// 分享数据
const
share
=
ref
(
null
)
// 分享数据
const
pageOptions
=
ref
({})
// 页面参数
// 获取用户store
// 获取用户store
const
userStore
=
useUserStore
()
const
userStore
=
useUserStore
()
...
@@ -82,8 +80,10 @@ const getMessage = (e) => {
...
@@ -82,8 +80,10 @@ const getMessage = (e) => {
}
}
// 页面加载
// 页面参数接收
onMounted
(
async
()
=>
{
onLoad
(
async
(
options
)
=>
{
console
.
log
(
'页面参数:'
,
options
)
wx
.
showShareMenu
({
wx
.
showShareMenu
({
withShareTicket
:
true
,
withShareTicket
:
true
,
menus
:
[
'shareAppMessage'
,
'shareTimeline'
]
// shareAppMessage表示“发送给朋友”按钮,shareTimeline表示“分享到朋友圈”按钮
menus
:
[
'shareAppMessage'
,
'shareTimeline'
]
// shareAppMessage表示“发送给朋友”按钮,shareTimeline表示“分享到朋友圈”按钮
...
@@ -113,7 +113,7 @@ onMounted(async () => {
...
@@ -113,7 +113,7 @@ onMounted(async () => {
const
unionId
=
globalStore
.
unionId
const
unionId
=
globalStore
.
unionId
// 将 options 的所有参数原样作为查询参数传给 H5,并补齐 cuk
// 将 options 的所有参数原样作为查询参数传给 H5,并补齐 cuk
const
params
=
{
...(
pageOptions
.
value
||
{})
}
const
params
=
{
...(
options
||
{})
}
if
(
cuk
&&
!
params
.
cuk
)
params
.
cuk
=
cuk
if
(
cuk
&&
!
params
.
cuk
)
params
.
cuk
=
cuk
// 添加用户信息参数
// 添加用户信息参数
if
(
openId
&&
!
params
.
openId
)
params
.
openId
=
openId
if
(
openId
&&
!
params
.
openId
)
params
.
openId
=
openId
...
...
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