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
fc184bb6
Commit
fc184bb6
authored
Sep 10, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
showMask
parent
e3ab3ac2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
act0915.vue
activity0915/act0915/act0915.vue
+1
-1
user.js
stores/user.js
+2
-1
No files found.
activity0915/act0915/act0915.vue
View file @
fc184bb6
...
@@ -573,7 +573,7 @@ const onGetPhoneNumber = async (e) => {
...
@@ -573,7 +573,7 @@ const onGetPhoneNumber = async (e) => {
try {
try {
// 隐藏授权弹窗
// 隐藏授权弹窗
showMask.value = false;
showMask.value = false;
userStore.phoneCallback(e.detail
).then(
async () => {
userStore.phoneCallback(e.detail
, null, null,
async () => {
// 重新获取用户信息(登录后)
// 重新获取用户信息(登录后)
await fetchAct915HomeData();
await fetchAct915HomeData();
...
...
stores/user.js
View file @
fc184bb6
...
@@ -71,7 +71,7 @@ export const useUserStore = defineStore("userInfo", {
...
@@ -71,7 +71,7 @@ export const useUserStore = defineStore("userInfo", {
* @param {Object} data : {encryptedData, iv, code}
* @param {Object} data : {encryptedData, iv, code}
* @returns
* @returns
*/
*/
async
phoneCallback
(
data
,
onOpenRegisterFn
=
()
=>
{
},
cb
)
{
async
phoneCallback
(
data
,
onOpenRegisterFn
=
()
=>
{
},
cb
,
cb2
)
{
uni
.
login
({
uni
.
login
({
provider
:
"weixin"
,
provider
:
"weixin"
,
success
:
async
(
res
)
=>
{
success
:
async
(
res
)
=>
{
...
@@ -94,6 +94,7 @@ export const useUserStore = defineStore("userInfo", {
...
@@ -94,6 +94,7 @@ export const useUserStore = defineStore("userInfo", {
const
homeStore
=
useHomeStore
();
const
homeStore
=
useHomeStore
();
await
homeStore
.
setBabyExistence
(
babyExistence
);
await
homeStore
.
setBabyExistence
(
babyExistence
);
cb2
&&
cb2
();
// 授权注册成功后做一次登录
// 授权注册成功后做一次登录
this
.
wxAutoLogin
();
this
.
wxAutoLogin
();
...
...
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