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
550108f2
Commit
550108f2
authored
Jan 29, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
b37ec792
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
src/pages/wxArticle/index.vue
+11
-4
No files found.
src/pages/wxArticle/index.vue
View file @
550108f2
...
...
@@ -79,7 +79,7 @@ export default {
url
:
`../login/main?scene=sso&isEncode=1&back=
${
link
}
`
,
});
}
else
{
this
.
getSsoBcakUrl
(
decodeURIComponent
(
link
));
this
.
getSsoBcakUrl
(
decodeURIComponent
(
link
)
.
replace
(
/
\/\?(
.+
?)
#
\/
/
,
'/?token=${token}&scene=sso&toAppid=qOAhsauSaagQlxYdGbJL#/'
)
);
}
}
}
else
if
(
options
.
link
)
{
...
...
@@ -102,7 +102,7 @@ export default {
this
.
setLink
(
decodeURIComponent
(
link
));
}
}
else
{
this
.
getSsoBcakUrl
(
decodeURIComponent
(
link
));
this
.
getSsoBcakUrl
(
decodeURIComponent
(
link
)
.
replace
(
/
\/\?(
.+
?)
#
\/
/
,
'/?token=${token}&scene=sso&toAppid=qOAhsauSaagQlxYdGbJL#/'
)
);
}
}
else
if
(
getUrlKey
(
decodeURIComponent
(
link
),
"login"
)
!=
"1"
)
{
//判断是否需要带token
...
...
@@ -161,9 +161,16 @@ export default {
if
(
url
.
indexOf
(
'setToken={token}'
)
==
-
1
)
{
url
=
decodeURIComponent
(
url
).
replace
(
/
\/\?(
.+
?)
#
\/
/
,
'/?token=${token}&scene=sso&toAppid=qOAhsauSaagQlxYdGbJL#/'
);
}
console
.
log
(
url
,
'-------------164'
)
//分享页面去掉登录态
if
(
url
.
indexOf
(
"sessionid"
)
>
-
1
)
{
url
=
url
.
split
(
"?"
)[
0
]
+
"?mixid="
+
this
.
shopId
;
if
(
url
.
includes
(
'taokor'
))
{
if
(
url
.
includes
(
'&sessionid'
))
{
url
=
url
.
split
(
'&sessionid'
)[
0
];
}
}
else
{
url
=
url
.
split
(
"?"
)[
0
]
+
"?mixid="
+
this
.
shopId
;
}
}
else
if
(
url
.
indexOf
(
'getMixId'
)
>
-
1
)
{
//分享链接需要带mixid
url
=
forUrlAddKey
(
url
,{
mixid
:
this
.
shopId
})
}
...
...
@@ -204,7 +211,7 @@ export default {
this
.
getSsoBcakUrl
(
decodeURIComponent
(
this
.
link
));
}
if
((
!
this
.
link
.
includes
(
'sessionid'
))
&&
wx
.
getStorageSync
(
"sessionid"
))
{
this
.
link
+=
`
${
this
.
link
.
includes
(
'?'
)?
'&'
:
'?'
}
sessionid=
${
wx
.
getStorageSync
(
"sessionid"
)}
`
this
.
link
+=
`
${
this
.
link
.
includes
(
'?'
)
&&
!
this
.
link
.
includes
(
'#/'
)
||
(
this
.
link
.
split
(
'?'
).
length
-
1
>
1
)
?
'&'
:
'?'
}
sessionid=
${
wx
.
getStorageSync
(
"sessionid"
)}
`
}
this
.
useLink
=
this
.
link
;
console
.
log
(
this
.
useLink
,
'--this.useLink'
)
...
...
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