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
a1eff295
Commit
a1eff295
authored
Jan 19, 2020
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
05fd8def
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
src/pages/login/index.vue
+4
-1
No files found.
src/pages/login/index.vue
View file @
a1eff295
...
...
@@ -130,7 +130,6 @@ export default {
this
.
init
()
.
then
(
res
=>
{
console
.
log
(
"promise"
,
res
);
wx
.
hideLoading
();
//存入openid
wx
.
setStorage
({
key
:
"openid"
,
...
...
@@ -174,6 +173,7 @@ export default {
checkLogin
(
e
)
{
console
.
log
(
this
.
isHaveUnion
,
e
)
if
(
this
.
isHaveUnion
)
{
wx
.
hideLoading
();
//是会员 直接登录
wx
.
reLaunch
({
url
:
`../index/main?from=login&backpath=
${
...
...
@@ -195,6 +195,7 @@ export default {
login
.
checkUnionid
({
unionId
:
this
.
unionId
,
openId
:
this
.
openid
})
.
then
(
res
=>
{
wx
.
hideLoading
();
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
data
.
isHaveUnion
==
"true"
)
{
this
.
NEED_CERTIFIED
=
res
.
data
.
data
.
NEED_CERTIFIED
;
...
...
@@ -217,9 +218,11 @@ export default {
}
})
.
catch
(
err
=>
{
wx
.
hideLoading
();
wx
.
showToast
({
title
:
err
,
icon
:
"none"
});
});
}
else
{
wx
.
hideLoading
();
//不是会员需要绑定手机号
this
.
isShowPhone
=
true
;
}
...
...
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