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
bebfdb7f
Commit
bebfdb7f
authored
Aug 13, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
每一日题
parent
da9aeaf6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
109 additions
and
19 deletions
+109
-19
src/components/examination/examination.scss
+3
-0
src/components/examination/index.js
+5
-6
src/utils/index.js
+0
-1
yarn.lock
+101
-12
No files found.
src/components/examination/examination.scss
View file @
bebfdb7f
...
@@ -83,6 +83,9 @@
...
@@ -83,6 +83,9 @@
overflow
:
auto
;
overflow
:
auto
;
flex
:
1
;
flex
:
1
;
a
{
color
:
$active
;
}
.legend
{
.legend
{
font-size
:
$font_14
;
font-size
:
$font_14
;
...
...
src/components/examination/index.js
View file @
bebfdb7f
...
@@ -4,7 +4,8 @@ import classnames from 'classnames'
...
@@ -4,7 +4,8 @@ import classnames from 'classnames'
import
{
Tag
}
from
'../../common'
import
{
Tag
}
from
'../../common'
import
OpenApp
from
'./OpenApp'
import
OpenApp
from
'./OpenApp'
import
{
http
,
api
}
from
'@/utils'
import
{
http
,
html
,
htmlDecode
}
from
'@/utils'
export
default
class
Examination
extends
PureComponent
{
export
default
class
Examination
extends
PureComponent
{
...
@@ -41,11 +42,11 @@ export default class Examination extends PureComponent {
...
@@ -41,11 +42,11 @@ export default class Examination extends PureComponent {
<
div
className
=
"question-container"
>
<
div
className
=
"question-container"
>
<
div
className
=
"topic"
>
<
div
className
=
"topic"
>
<
Tag
className
=
'category-tag'
>
{
category
}
<
/Tag
>
<
Tag
className
=
'category-tag'
>
{
category
}
<
/Tag
>
{
ques
}
<
span
dangerouslySetInnerHTML
=
{{
__html
:
ques
}}
/
>
<
/div
>
<
/div
>
{
{
type_id
===
1
&&
<
MultiChoice
className
=
'options'
options
=
{
options
}
type_id
===
1
&&
<
MultiChoice
className
=
'options'
options
=
{
options
}
showCorrect
=
{
this
.
state
.
isShowAnswer
}
showCorrect
=
{
this
.
state
.
isShowAnswer
}
/
>
/
>
}
}
{
{
...
@@ -85,9 +86,7 @@ const Answer = React.memo(({content, isShowAnswer}) => {
...
@@ -85,9 +86,7 @@ const Answer = React.memo(({content, isShowAnswer}) => {
return
(
return
(
<
div
className
=
{
classnames
(
'answer'
,
{
scale
:
isShowAnswer
})}
>
<
div
className
=
{
classnames
(
'answer'
,
{
scale
:
isShowAnswer
})}
>
<
p
className
=
'legend'
>
解析
<
/p
>
<
p
className
=
'legend'
>
解析
<
/p
>
<
p
className
=
'content'
>
<
p
className
=
'content'
dangerouslySetInnerHTML
=
{{
__html
:
content
}}
/
>
{
content
}
<
/p
>
<
/div
>
<
/div
>
)
)
})
})
src/utils/index.js
View file @
bebfdb7f
...
@@ -93,6 +93,5 @@ const isLogin = (function () {
...
@@ -93,6 +93,5 @@ const isLogin = (function () {
export
{
default
as
http
}
from
'./http'
export
{
default
as
http
}
from
'./http'
// export { default as api } from './api'
export
{
default
as
wxShare
}
from
'./wechat/share'
export
{
default
as
wxShare
}
from
'./wechat/share'
export
{
html
,
initCaptcha
,
validateTel
,
validateEmail
,
browser
,
isLogin
}
export
{
html
,
initCaptcha
,
validateTel
,
validateEmail
,
browser
,
isLogin
}
yarn.lock
View file @
bebfdb7f
This diff is collapsed.
Click to expand it.
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