Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Damon
study
Commits
b0e175db
Commit
b0e175db
authored
Aug 02, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 【ID1001428】【小程序-题库-模拟考试】:第一次进入分享后的成绩页面时报错,提示“传入的ID与预期的不符···”
parent
c4e5825e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
score.vue
src/pages/learn/score.vue
+20
-6
No files found.
src/pages/learn/score.vue
View file @
b0e175db
...
...
@@ -97,6 +97,7 @@ export default {
},
data
()
{
return
{
id
:
''
,
info
:
{},
show
:
false
,
}
...
...
@@ -172,22 +173,35 @@ export default {
return
this
.
$u
.
random
(
random
[
0
],
random
[
1
])
},
},
onLoad
()
{
let
options
=
wx
.
getLaunchOptionsSync
()
if
(
!
options
.
query
?.
id
)
{
onShareAppMessage
(
res
)
{
return
{
title
:
'模考大师'
,
path
:
`/pages/learn/score?id=
${
this
.
id
}
`
}
},
onLoad
(
options
)
{
if
(
options
)
{
this
.
id
=
options
.
id
}
else
{
let
option
=
wx
.
getLaunchOptionsSync
()
this
.
id
=
option
.
query
.
id
}
if
(
!
this
.
id
)
{
this
.
$u
.
route
({
url
:
'pages/index/index'
,
type
:
'tab'
,
})
return
}
this
.
init
(
options
.
query
?.
id
)
this
.
init
()
},
methods
:
{
init
(
id
)
{
init
()
{
uni
.
showLoading
({
title
:
'加载中'
,
})
this
.
$u
.
api
.
queryExamRecordOne
({
id
:
id
}).
then
((
res
)
=>
{
this
.
$u
.
api
.
queryExamRecordOne
({
id
:
this
.
id
}).
then
((
res
)
=>
{
uni
.
hideLoading
()
if
(
res
)
{
const
echoMap
=
res
.
echoMap
...
...
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