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
b6cb2eb0
Commit
b6cb2eb0
authored
Jul 20, 2021
by
张卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持道可分享
parent
4a38c85b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/pages/wxArticle/index.vue
+13
-0
No files found.
src/pages/wxArticle/index.vue
View file @
b6cb2eb0
...
@@ -31,6 +31,7 @@ export default {
...
@@ -31,6 +31,7 @@ export default {
async
onLoad
(
options
)
{
async
onLoad
(
options
)
{
this
.
link
=
''
;
this
.
link
=
''
;
console
.
log
(
options
,
"第三方页面"
);
console
.
log
(
options
,
"第三方页面"
);
/**
/**
* scene=sso 第三方需要登录的页面
* scene=sso 第三方需要登录的页面
* login=1 jwt需要登录(临时方案)
* login=1 jwt需要登录(临时方案)
...
@@ -65,7 +66,19 @@ export default {
...
@@ -65,7 +66,19 @@ export default {
this
.
getSsoBcakUrl
(
decodeURIComponent
(
link
));
this
.
getSsoBcakUrl
(
decodeURIComponent
(
link
));
}
}
}
else
if
(
getUrlKey
(
decodeURIComponent
(
link
),
"login"
)
!=
"1"
)
{
}
else
if
(
getUrlKey
(
decodeURIComponent
(
link
),
"login"
)
!=
"1"
)
{
//判断是否需要带token
if
(
decodeURIComponent
(
link
).
indexOf
(
'setToken={token}'
)
>
-
1
)
{
if
(
wx
.
getStorageSync
(
"sessionid"
))
{
this
.
setLink
(
decodeURIComponent
(
link
).
replace
(
'setToken=${token}'
,
'token='
+
wx
.
getStorageSync
(
"sessionid"
)));
}
else
{
let
url
=
`/pages/login/main?scene=sso&back=
${
link
}
`
;
wx
.
navigateTo
({
url
,
});
}
}
else
{
this
.
setLink
(
decodeURIComponent
(
link
));
this
.
setLink
(
decodeURIComponent
(
link
));
}
}
else
{
}
else
{
if
(
wx
.
getStorageSync
(
"sessionid"
))
{
if
(
wx
.
getStorageSync
(
"sessionid"
))
{
this
.
setLink
(
this
.
setLink
(
...
...
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