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
57230b29
Commit
57230b29
authored
Jun 10, 2021
by
张卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
第三方跳转带mixid
parent
9e6b1ce9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
src/pages/wxArticle/index.vue
+18
-9
No files found.
src/pages/wxArticle/index.vue
View file @
57230b29
...
...
@@ -38,35 +38,44 @@ export default {
//扫码
let
data
=
await
this
.
getParams
(
options
.
scene
);
if
(
data
.
sso
)
{
let
link
=
data
.
link
;
if
(
getUrlKey
(
decodeURIComponent
(
link
),
"getMixId"
)
==
'1'
)
{
//第三方跳转加mixid
link
=
forUrlAddKey
(
decodeURIComponent
(
link
),{
mixid
:
this
.
$store
.
state
.
mixid
})
}
if
(
!
wx
.
getStorageSync
(
"sessionid"
))
{
wx
.
redirectTo
({
url
:
`../login/main?scene=sso&back=
${
data
.
link
}
`
,
url
:
`../login/main?scene=sso&back=
${
link
}
`
,
});
}
else
{
this
.
getSsoBcakUrl
(
decodeURIComponent
(
data
.
link
));
this
.
getSsoBcakUrl
(
decodeURIComponent
(
link
));
}
}
}
else
if
(
options
.
link
)
{
if
(
getUrlKey
(
decodeURIComponent
(
options
.
link
),
"scene"
)
==
"sso"
)
{
let
link
=
options
.
link
;
if
(
getUrlKey
(
decodeURIComponent
(
link
),
"getMixId"
)
==
'1'
)
{
//第三方跳转加mixid
link
=
forUrlAddKey
(
decodeURIComponent
(
link
),{
mixid
:
this
.
$store
.
state
.
mixid
})
}
console
.
log
(
wx
.
getStorageSync
(
"sessionid"
),
446466777777
,
getUrlKey
(
decodeURIComponent
(
link
),
"mixid"
),
this
.
$store
.
state
.
mixid
)
if
(
getUrlKey
(
decodeURIComponent
(
link
),
"scene"
)
==
"sso"
)
{
if
(
!
wx
.
getStorageSync
(
"sessionid"
))
{
wx
.
redirectTo
({
url
:
`../login/main?scene=sso&back=
${
options
.
link
}
`
,
url
:
`../login/main?scene=sso&back=
${
link
}
`
,
});
}
else
{
this
.
getSsoBcakUrl
(
decodeURIComponent
(
options
.
link
));
this
.
getSsoBcakUrl
(
decodeURIComponent
(
link
));
}
}
else
if
(
getUrlKey
(
decodeURIComponent
(
options
.
link
),
"login"
)
!=
"1"
)
{
this
.
setLink
(
decodeURIComponent
(
options
.
link
));
}
else
if
(
getUrlKey
(
decodeURIComponent
(
link
),
"login"
)
!=
"1"
)
{
this
.
setLink
(
decodeURIComponent
(
link
));
}
else
{
if
(
wx
.
getStorageSync
(
"sessionid"
))
{
this
.
setLink
(
forUrlAddKey
(
decodeURIComponent
(
options
.
link
),
{
forUrlAddKey
(
decodeURIComponent
(
link
),
{
token
:
wx
.
getStorageSync
(
"sessionid"
),
jwt
:
1
,
})
);
}
else
{
let
url
=
`/pages/login/main?scene=sso&back=
${
options
.
link
}
`
;
let
url
=
`/pages/login/main?scene=sso&back=
${
link
}
`
;
wx
.
navigateTo
({
url
,
});
...
...
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