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
0c9baf4f
Commit
0c9baf4f
authored
Jul 25, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扫码落地页
parent
aa72c08c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
src/pages/wxArticle/index.vue
+4
-13
No files found.
src/pages/wxArticle/index.vue
View file @
0c9baf4f
...
@@ -66,24 +66,16 @@ export default {
...
@@ -66,24 +66,16 @@ export default {
* scene=sso 第三方需要登录的页面
* scene=sso 第三方需要登录的页面
* login=1 jwt需要登录(临时方案)
* login=1 jwt需要登录(临时方案)
*/
*/
let
link
=
""
;
if
(
options
.
scene
)
{
if
(
options
.
scene
)
{
//扫码
//扫码
let
data
=
await
this
.
getParams
(
options
.
scene
);
let
data
=
await
this
.
getParams
(
options
.
scene
);
if
(
data
.
sso
)
{
if
(
data
.
sso
)
{
let
link
=
data
.
link
;
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&isEncode=1&back=
${
link
}
`
,
});
}
else
{
this
.
getSsoBcakUrl
(
decodeURIComponent
(
link
).
replace
(
/
\/\?(
.+
?)
#
\/
/
,
'/?token=${token}&scene=sso&toAppid=qOAhsauSaagQlxYdGbJL#/'
));
}
}
}
}
else
if
(
options
.
link
)
{
}
else
if
(
options
.
link
)
{
let
link
=
options
.
link
;
link
=
options
.
link
;
}
if
(
getUrlKey
(
decodeURIComponent
(
link
),
"getMixId"
)
==
'1'
)
{
//第三方跳转加mixid
if
(
getUrlKey
(
decodeURIComponent
(
link
),
"getMixId"
)
==
'1'
)
{
//第三方跳转加mixid
link
=
forUrlAddKey
(
decodeURIComponent
(
link
),{
mixid
:
this
.
$store
.
state
.
mixid
})
link
=
forUrlAddKey
(
decodeURIComponent
(
link
),{
mixid
:
this
.
$store
.
state
.
mixid
})
}
}
...
@@ -138,7 +130,6 @@ export default {
...
@@ -138,7 +130,6 @@ export default {
});
});
}
}
}
}
}
},
},
onShow
()
{
onShow
()
{
console
.
log
(
this
.
link
,
'------------154'
)
console
.
log
(
this
.
link
,
'------------154'
)
...
...
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