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
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
108 additions
and
18 deletions
+108
-18
src/components/examination/examination.scss
+3
-0
src/components/examination/index.js
+4
-5
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 @@
overflow
:
auto
;
flex
:
1
;
a
{
color
:
$active
;
}
.legend
{
font-size
:
$font_14
;
...
...
src/components/examination/index.js
View file @
bebfdb7f
...
...
@@ -4,7 +4,8 @@ import classnames from 'classnames'
import
{
Tag
}
from
'../../common'
import
OpenApp
from
'./OpenApp'
import
{
http
,
api
}
from
'@/utils'
import
{
http
,
html
,
htmlDecode
}
from
'@/utils'
export
default
class
Examination
extends
PureComponent
{
...
...
@@ -41,7 +42,7 @@ export default class Examination extends PureComponent {
<
div
className
=
"question-container"
>
<
div
className
=
"topic"
>
<
Tag
className
=
'category-tag'
>
{
category
}
<
/Tag
>
{
ques
}
<
span
dangerouslySetInnerHTML
=
{{
__html
:
ques
}}
/
>
<
/div
>
{
type_id
===
1
&&
<
MultiChoice
className
=
'options'
options
=
{
options
}
...
...
@@ -85,9 +86,7 @@ const Answer = React.memo(({content, isShowAnswer}) => {
return
(
<
div
className
=
{
classnames
(
'answer'
,
{
scale
:
isShowAnswer
})}
>
<
p
className
=
'legend'
>
解析
<
/p
>
<
p
className
=
'content'
>
{
content
}
<
/p
>
<
p
className
=
'content'
dangerouslySetInnerHTML
=
{{
__html
:
content
}}
/
>
<
/div
>
)
})
src/utils/index.js
View file @
bebfdb7f
...
...
@@ -93,6 +93,5 @@ const isLogin = (function () {
export
{
default
as
http
}
from
'./http'
// export { default as api } from './api'
export
{
default
as
wxShare
}
from
'./wechat/share'
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