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
7dc9cf67
Commit
7dc9cf67
authored
Apr 01, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录后跳转加日志
parent
39172dc5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
src/pages/index/index.vue
+2
-0
src/pages/login/index.vue
+7
-0
No files found.
src/pages/index/index.vue
View file @
7dc9cf67
...
@@ -218,6 +218,8 @@ export default {
...
@@ -218,6 +218,8 @@ export default {
//来自小程序登录页面
//来自小程序登录页面
this
.
page
=
decodeURIComponent
(
options
.
backpath
);
this
.
page
=
decodeURIComponent
(
options
.
backpath
);
this
.
params
+=
"&"
+
decodeURIComponent
(
options
.
params
);
this
.
params
+=
"&"
+
decodeURIComponent
(
options
.
params
);
console
.
log
(
this
.
page
,
this
.
params
,
'-----------index---221'
)
log
.
info
(
this
.
page
,
this
.
params
,
'-----------index---221'
)
}
else
if
(
options
.
from
&&
options
.
from
==
"logout"
)
{
}
else
if
(
options
.
from
&&
options
.
from
==
"logout"
)
{
log
.
info
(
'options.from == "logout"'
)
log
.
info
(
'options.from == "logout"'
)
//来自用户登出
//来自用户登出
...
...
src/pages/login/index.vue
View file @
7dc9cf67
...
@@ -125,6 +125,7 @@ export default {
...
@@ -125,6 +125,7 @@ export default {
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
isOnLoad
=
true
;
this
.
isOnLoad
=
true
;
console
.
log
(
'----------------------login-onload'
)
console
.
log
(
'----------------------login-onload'
)
console
.
log
(
options
,
'----------------------login-onload-options'
)
log
.
info
(
options
,
'----------------------login-onload-options'
)
log
.
info
(
options
,
'----------------------login-onload-options'
)
this
.
getShopUserProtocol
();
this
.
getShopUserProtocol
();
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
//mpvue 的混合周期 使用小程序生命周期数据未初始化
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
//mpvue 的混合周期 使用小程序生命周期数据未初始化
...
@@ -141,6 +142,9 @@ export default {
...
@@ -141,6 +142,9 @@ export default {
this
.
backParams
=
this
.
defalutBackParams
;
this
.
backParams
=
this
.
defalutBackParams
;
let
params
=
JSON
.
parse
(
options
.
params
);
let
params
=
JSON
.
parse
(
options
.
params
);
this
.
fromType
=
params
.
fromType
;
this
.
fromType
=
params
.
fromType
;
console
.
log
(
this
.
backParams
,
'----this.backParams'
)
console
.
log
(
params
,
'----params'
)
console
.
log
(
this
.
fromType
,
'----this.fromType'
)
}
}
if
(
options
.
ossLink
)
{
if
(
options
.
ossLink
)
{
this
.
ossLink
=
decodeURIComponent
(
options
.
ossLink
)
this
.
ossLink
=
decodeURIComponent
(
options
.
ossLink
)
...
@@ -376,6 +380,7 @@ export default {
...
@@ -376,6 +380,7 @@ export default {
pushPageType
(){
pushPageType
(){
//绑定上下级关系
//绑定上下级关系
log
.
info
(
this
.
scene
,
'this.scene===='
,
this
.
backPath
)
log
.
info
(
this
.
scene
,
'this.scene===='
,
this
.
backPath
)
console
.
log
(
this
.
scene
,
'this.scene===='
,
this
.
backPath
)
log
.
info
(
wx
.
getStorageSync
(
"becomeInfo"
),
'pushPageType-getStorageSync-becomeInfo'
)
log
.
info
(
wx
.
getStorageSync
(
"becomeInfo"
),
'pushPageType-getStorageSync-becomeInfo'
)
app
.
fenxiaoModel
.
becomeRelation
(
wx
.
getStorageSync
(
"becomeInfo"
)?
JSON
.
parse
(
wx
.
getStorageSync
(
"becomeInfo"
)):
''
).
then
(
res
=>
{
app
.
fenxiaoModel
.
becomeRelation
(
wx
.
getStorageSync
(
"becomeInfo"
)?
JSON
.
parse
(
wx
.
getStorageSync
(
"becomeInfo"
)):
''
).
then
(
res
=>
{
log
.
info
(
'pushPageType调用becomeRelation-381'
)
log
.
info
(
'pushPageType调用becomeRelation-381'
)
...
@@ -426,6 +431,8 @@ export default {
...
@@ -426,6 +431,8 @@ export default {
url
:
parseLink
==
'/'
?
'/pages/home/main'
:
`/pages/tabBar
${
isTabbarIndex
}
/main`
,
url
:
parseLink
==
'/'
?
'/pages/home/main'
:
`/pages/tabBar
${
isTabbarIndex
}
/main`
,
})
})
}
else
{
}
else
{
console
.
log
(
this
.
backPath
,
this
.
backParams
,
'this.backParams'
)
log
.
info
(
this
.
backPath
,
this
.
backParams
,
'this.backParams--435'
)
wx
.
reLaunch
({
wx
.
reLaunch
({
url
:
`../index/main?from=login&backpath=
${
url
:
`../index/main?from=login&backpath=
${
this
.
backPath
this
.
backPath
...
...
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