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
a761c755
Commit
a761c755
authored
Aug 18, 2025
by
chenkai1
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab2.dui88.com/fh/20250528_FHQ1
parents
eb1d9ebf
ded041db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
syWebview.vue
pages/syWebview/syWebview.vue
+3
-1
user.js
stores/user.js
+3
-2
No files found.
pages/syWebview/syWebview.vue
View file @
a761c755
...
...
@@ -52,7 +52,9 @@ const globalStore = useGlobalStore()
// 登录获取 cuk
const
wxAutoLogin
=
async
()
=>
{
await
userStore
.
wxAutoLogin
()
await
new
Promise
(
resolve
=>
{
userStore
.
wxAutoLogin
(
resolve
)
})
}
// 接收webview消息
...
...
stores/user.js
View file @
a761c755
...
...
@@ -236,16 +236,17 @@ export const useUserStore = defineStore("userInfo", {
}
},
/**
/**
* 用户自动登录
*/
async
wxAutoLogin
(
)
{
async
wxAutoLogin
(
cb
=
null
)
{
uni
.
login
({
provider
:
"weixin"
,
success
:
async
(
res
)
=>
{
console
.
log
(
"wxAutoLogin"
,
res
);
if
(
res
.
errMsg
===
"login:ok"
)
{
await
this
.
autoLoginByCode
(
res
.
code
);
cb
&&
cb
();
}
else
{
uni
.
showToast
({
title
:
res
.
errMsg
,
...
...
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