Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
zhwy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d0de159c
authored
Oct 10, 2023
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复扫码进入问题
1 parent
d989051c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
pages/loading/loading.js
pages/loading/loading.js
View file @
d0de159
...
@@ -68,12 +68,12 @@ Page({
...
@@ -68,12 +68,12 @@ Page({
const
{
code
,
data
}
=
await
wx
.
p
.
api
.
wechatApi
.
getSceneById
({
const
{
code
,
data
}
=
await
wx
.
p
.
api
.
wechatApi
.
getSceneById
({
id
id
})
})
const
params
=
data
.
scene
.
split
(
'
&
url='
),
options
=
{}
const
params
=
data
.
scene
.
split
(
'url='
),
options
=
{}
data
.
scene
.
split
(
'&'
).
map
(
item
=>
{
data
.
scene
.
split
(
'&'
).
map
(
item
=>
{
const
[
key
,
val
]
=
item
.
split
(
'='
)
const
[
key
,
val
]
=
item
.
split
(
'='
)
options
[
key
]
=
val
options
[
key
]
=
val
})
})
//
if (params.length > 1) options.url = params.at(-1)
if
(
params
.
length
>
1
)
options
.
url
=
params
.
at
(
-
1
)
if
(
code
==
0
)
this
.
login
(
options
)
if
(
code
==
0
)
this
.
login
(
options
)
else
throw
{}
else
throw
{}
}
catch
(
error
)
{
}
catch
(
error
)
{
...
@@ -82,6 +82,7 @@ Page({
...
@@ -82,6 +82,7 @@ Page({
}
}
},
},
jumpPage
(
val
)
{
jumpPage
(
val
)
{
console
.
log
(
val
);
const
targetPath
=
decodeURIComponent
(
val
),
const
targetPath
=
decodeURIComponent
(
val
),
{
url
,
events
}
=
this
.
setRouteData
(
targetPath
),
{
url
,
events
}
=
this
.
setRouteData
(
targetPath
),
routeName
=
this
.
tabList
.
findIndex
(
e
=>
`/
${
e
.
pagePath
}
`
==
`
${
url
}
.html`
)
>
-
1
?
'switchTab'
:
'redirectTo'
routeName
=
this
.
tabList
.
findIndex
(
e
=>
`/
${
e
.
pagePath
}
`
==
`
${
url
}
.html`
)
>
-
1
?
'switchTab'
:
'redirectTo'
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment