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
6da10838
Commit
6da10838
authored
Jun 24, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
题库适配
parent
04606300
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
src/components/problems/index.js
+11
-8
src/components/problems/index.scss
+1
-0
No files found.
src/components/problems/index.js
View file @
6da10838
import
React
,
{
Component
}
from
'react'
;
import
'./index.scss'
import
{
HeaderBar
,
CallApp
,
CaptchaAli
}
from
"@common/index"
import
{
isToday
}
from
"date-fns"
;
import
{
http
}
from
"@/utils"
import
{
Toast
}
from
"antd-mobile"
;
import
{
Link
}
from
'react-router-dom'
class
Problems
extends
Component
{
...
...
@@ -55,9 +55,10 @@ class Problems extends Component {
{
!
isShowCaptcha
?
<>
<
HeaderBar
title
=
'机器学习'
arrow
=
{
true
}
cart
=
{
false
}
><
/HeaderBar
>
<
HeaderBar
title
=
{
quesInfo
&&
quesInfo
.
category
}
arrow
=
{
true
}
cart
=
{
false
}
><
/HeaderBar
>
<
div
className
=
"topic"
>
{
quesInfo
&&
quesInfo
.
ques
}
<
span
>
{
quesInfo
&&
quesInfo
.
order_id
}.
<
/span
>
<
span
dangerouslySetInnerHTML
=
{{
__html
:
quesInfo
&&
quesInfo
.
ques
}}
><
/span
>
<
/div
>
{
!
isShowAnswer
&&
...
...
@@ -73,16 +74,18 @@ class Problems extends Component {
isShowAnswer
&&
<
div
className
=
{
`content
${
isShowAnswer
?
'slideInDown'
:
''
}
`
}
>
<
div
className
=
{
'title'
}
>
解析
<
/div
>
<
span
>
{
quesInfo
.
analysis
}
<
/span
>
<
span
dangerouslySetInnerHTML
=
{{
__html
:
quesInfo
.
analysis
}}
><
/span
>
<
/div
>
}
<
footer
>
<
div
className
=
"app"
>
更多题目请
<
CallApp
text
=
{
'前往APP'
}
/></
div
>
<
div
className
=
"op"
>
<
a
href
=
"javascript:void(0);"
className
=
{
'nav'
}
>
上一题
<
/a
>
<
a
href
=
"javascript:void(0);"
className
=
{
'nav'
}
>
下一题
<
/a
>
{
between
&&
!!
between
.
up
&&
<
Link
to
=
{
`/problems/
${
between
.
up
}
`
}
className
=
{
'nav'
}
>
上一题
<
/Link
>
}
{
between
&&
!!
between
.
down
&&
<
Link
to
=
{
`/problems/
${
between
.
down
}
`
}
className
=
{
'nav'
}
>
下一题
<
/Link
>
}
<
/div
>
<
/footer
>
<
/
>
...
...
src/components/problems/index.scss
View file @
6da10838
#problems
{
height
:
100%
;
padding
:
58px
0
54px
;
overflow-x
:
hidden
;
.detail-header
{
position
:
fixed
;
...
...
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