Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
6f1e23d0
Commit
6f1e23d0
authored
Jun 11, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ai-test
parent
9d34350f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/components/ai-test/report/index.js
+2
-2
src/components/ai-test/scores/index.js
+1
-1
No files found.
src/components/ai-test/report/index.js
View file @
6f1e23d0
import
React
,
{
Component
}
from
'react'
import
React
,
{
Component
}
from
'react'
import
{
HeaderBar
}
from
'@/common'
import
{
HeaderBar
}
from
'@/common'
import
{
http
}
from
'@/utils'
import
{
getParam
,
http
}
from
'@/utils'
import
'./index.scss'
import
'./index.scss'
import
QRCode
from
'qrcode'
import
QRCode
from
'qrcode'
import
html2canvas
from
'html2canvas'
import
html2canvas
from
'html2canvas'
...
@@ -89,7 +89,7 @@ class scoreReport extends Component {
...
@@ -89,7 +89,7 @@ class scoreReport extends Component {
}
}
handleFetchInfo
=
(
index
)
=>
{
handleFetchInfo
=
(
index
)
=>
{
http
.
get
(
`
${
API
.
home
}
/sys/at/user_score/
${
index
}
`
).
then
(
res
=>
{
http
.
get
(
`
${
API
.
home
}
/sys/at/user_score/
${
index
}
/
${
getParam
(
'uid'
)
?
getParam
(
'uid'
)
:
0
}
`
).
then
(
res
=>
{
const
{
code
,
data
}
=
res
.
data
const
{
code
,
data
}
=
res
.
data
if
(
code
===
200
)
{
if
(
code
===
200
)
{
this
.
setState
({
this
.
setState
({
...
...
src/components/ai-test/scores/index.js
View file @
6f1e23d0
...
@@ -98,7 +98,7 @@ class Scores extends Component {
...
@@ -98,7 +98,7 @@ class Scores extends Component {
}
}
getUserScores
=
(
type
)
=>
{
getUserScores
=
(
type
)
=>
{
http
.
get
(
`
${
API
.
home
}
/sys/at/user_score/
${
type
}
`
)
http
.
get
(
`
${
API
.
home
}
/sys/at/user_score/
${
type
}
/0
`
)
.
then
(
res
=>
{
.
then
(
res
=>
{
const
{
code
,
msg
,
data
}
=
res
.
data
const
{
code
,
msg
,
data
}
=
res
.
data
...
...
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