Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
home-with-kids-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
102f417e
authored
2020-01-15 21:58:22 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
1e1f46d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
src/pages/blessing/blessing.js
src/pages/blessing/blessing.js
View file @
102f417
...
...
@@ -94,9 +94,15 @@ Page({
}
},
showAuth
()
{
this
.
setData
({
let
_this
=
this
;
wx
.
login
({
success
:
function
(
res
)
{
app
.
store
.
setItem
(
'wxcode'
,
res
.
code
);
_this
.
setData
({
authorizeVisible
:
true
})
}
});
},
checkAuth
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
@@ -124,9 +130,7 @@ Page({
if
(
result
)
{
resolve
(
true
);
}
else
{
this
.
setData
({
authorizeVisible
:
true
});
this
.
showAuth
();
}
});
});
...
...
Please
register
or
sign in
to post a comment