Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
8638651d
Commit
8638651d
authored
Aug 08, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat: 登录优先校验协议
parent
98428123
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/pages/login/index.vue
+6
-7
No files found.
src/pages/login/index.vue
View file @
8638651d
...
...
@@ -467,12 +467,7 @@ export default {
getUserProfile
()
{
log
.
info
(
'点击了微信一键登录'
);
console
.
log
(
'点击了微信一键登录'
);
wx
.
showLoading
({
title
:
'登录中...'
,
mask
:
true
})
console
.
log
(
'登录中...'
);
if
(
this
.
content
&&!
this
.
checked
&&
this
.
onceFlag
)
{
if
(
this
.
content
&&!
this
.
checked
)
{
wx
.
hideLoading
()
if
(
this
.
registerFlag
)
{
this
.
showRegisterProtocol
();
...
...
@@ -484,6 +479,11 @@ export default {
}
return
}
wx
.
showLoading
({
title
:
'登录中...'
,
mask
:
true
})
console
.
log
(
'登录中...'
);
console
.
log
(
'同意协议...'
,
this
.
userInfo
);
if
(
this
.
userInfo
)
{
if
(
this
.
tempData
)
return
this
.
handleSuccess
()
...
...
@@ -507,7 +507,6 @@ export default {
})
},
async
initUserInfo
()
{
this
.
onceFlag
=
true
;
this
.
initUser
().
then
(
res
=>
{
wx
.
hideLoading
();
//存入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