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
d6d031c5
Commit
d6d031c5
authored
Sep 09, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat: 登录重定向调整
parent
42b0fc64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
src/pages/login/index.vue
+20
-2
No files found.
src/pages/login/index.vue
View file @
d6d031c5
...
...
@@ -103,6 +103,7 @@ import richText from "../../components/basicTool/rich-text";
import
interval
from
'@/components/basicTool/interval/index.vue'
import
partition
from
'@/components/basicTool/partition/index.vue'
import
SelectEnterpriseAccount
from
"@/components/common/SelectEnterpriseAccount"
import
memberInfo
from
'@/api/memberInfo'
const
app
=
getApp
();
const
{
log
}
=
app
;
export
default
{
...
...
@@ -674,8 +675,25 @@ export default {
let
parseLink
=
decodeURIComponent
(
this
.
backPath
);
log
.
info
(
this
.
backPath
,
parseLink
,
'---------------------------325'
)
console
.
log
(
this
.
backPath
,
parseLink
,
this
.
ossLink
,
'---------------------------595'
)
if
(
parseLink
.
includes
(
'/pages/'
)
&&
!
parseLink
.
startsWith
(
"http"
)){
console
.
log
(
this
.
backPath
,
parseLink
,
this
.
ossLink
,
'---------------------------595'
)
if
(
parseLink
.
includes
(
'/pagesD/userCenterLogin/index'
))
{
memberInfo
.
getUserInfo
().
then
(
res
=>
{
let
loginUserInfo
=
res
.
data
.
data
;
if
(
loginUserInfo
)
{
const
user
=
{
phone
:
loginUserInfo
.
mobilephone
,
uid
:
`C
${
loginUserInfo
.
userId
}
`
,
timestamp
:
new
Date
().
getTime
()
};
let
token
=
app
.
generateToken
(
user
);
console
.
log
(
'token->'
,
token
);
let
query
=
{
token
:
token
}
parseLink
=
`
${
parseLink
}
?query=
${
JSON
.
stringify
(
query
)}
`
;
}
console
.
log
(
'parseLink->'
,
parseLink
)
wx
.
reLaunch
({
url
:
`../wxArticle/main?link=
${
encodeURIComponent
(
parseLink
)}
`
});
})
}
else
if
(
parseLink
.
includes
(
'/pages/'
)
&&
!
parseLink
.
startsWith
(
"http"
)){
wx
.
reLaunch
({
url
:
parseLink
});
...
...
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