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
c1751751
Commit
c1751751
authored
Jun 18, 2020
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8060fd6b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/pages/index/index.vue
+4
-2
No files found.
src/pages/index/index.vue
View file @
c1751751
...
@@ -57,7 +57,7 @@ export default {
...
@@ -57,7 +57,7 @@ export default {
this
.
shopId
this
.
shopId
);
);
//检测登录态
//检测登录态
this
.
checkLogin
();
//
this.checkLogin();
this
.
options
=
options
;
this
.
options
=
options
;
console
.
log
(
'-------'
)
console
.
log
(
'-------'
)
...
@@ -112,7 +112,7 @@ export default {
...
@@ -112,7 +112,7 @@ export default {
}
else
if
(
options
.
from
&&
options
.
from
==
"login"
)
{
}
else
if
(
options
.
from
&&
options
.
from
==
"login"
)
{
//来自小程序登录页面
//来自小程序登录页面
this
.
page
=
decodeURIComponent
(
options
.
backpath
);
this
.
page
=
decodeURIComponent
(
options
.
backpath
);
this
.
params
+=
"&"
+
decodeURIComponent
(
options
.
params
)
+
"&"
;
this
.
params
+=
"&"
+
decodeURIComponent
(
options
.
params
);
}
else
if
(
options
.
from
&&
options
.
from
==
"logout"
)
{
}
else
if
(
options
.
from
&&
options
.
from
==
"logout"
)
{
//来自用户登出
//来自用户登出
wx
.
removeStorage
({
wx
.
removeStorage
({
...
@@ -240,6 +240,8 @@ export default {
...
@@ -240,6 +240,8 @@ export default {
checkLogin
()
{
checkLogin
()
{
let
getOpenid
=
wx
.
getStorageSync
(
"openid"
);
let
getOpenid
=
wx
.
getStorageSync
(
"openid"
);
let
getSessionid
=
wx
.
getStorageSync
(
"sessionid"
);
let
getSessionid
=
wx
.
getStorageSync
(
"sessionid"
);
console
.
log
(
'244'
,
getOpenid
,
getSessionid
);
if
(
getOpenid
==
""
||
getSessionid
==
""
)
{
if
(
getOpenid
==
""
||
getSessionid
==
""
)
{
this
.
params
+=
"&logOut=true"
;
this
.
params
+=
"&logOut=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