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
d2523711
Commit
d2523711
authored
Apr 01, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录返回参数丢失
parent
7dc9cf67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
src/pages/index/index.vue
+10
-3
src/pages/login/index.vue
+1
-0
No files found.
src/pages/index/index.vue
View file @
d2523711
...
...
@@ -283,10 +283,15 @@ export default {
}
})
}
else
{
/**
* 如果进入的是需要登录的webview页面 h5环境有接口300就会重定向到登录页面
* 这里也判断了是否登录就跳转到登录页面
* 这样就会重复跳转到登录页面
*/
log
.
info
(
'未登录过需要授权头像昵称信息。'
)
const
url
=
`/pages/login/main?back=
${
encodeURIComponent
(
this
.
page
)}
¶m=
${
encodeURIComponent
(
JSON
.
stringify
(
paramsObj
)
)
console
.
log
(
'未登录过需要授权头像昵称信息。'
)
const
url
=
`/pages/login/main?back=
${
encodeURIComponent
(
this
.
page
)}
¶m
s
=
${
JSON
.
stringify
(
paramsObj
)
}
`
;
log
.
info
(
url
)
...
...
@@ -404,6 +409,8 @@ export default {
this
.
init
();
},
onShow
(){
console
.
log
(
'index页面------onShow'
)
log
.
info
(
'index页面------onShow'
)
},
methods
:
{
init
()
{
...
...
src/pages/login/index.vue
View file @
d2523711
...
...
@@ -126,6 +126,7 @@ export default {
this
.
isOnLoad
=
true
;
console
.
log
(
'----------------------login-onload'
)
console
.
log
(
options
,
'----------------------login-onload-options'
)
console
.
log
(
options
.
params
,
'----------------------login-onload-options.params'
)
log
.
info
(
options
,
'----------------------login-onload-options'
)
this
.
getShopUserProtocol
();
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
//mpvue 的混合周期 使用小程序生命周期数据未初始化
...
...
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