Commit bebfdb7f by zhanghaozhe

每一日题

parent da9aeaf6
...@@ -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;
......
...@@ -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>
) )
}) })
...@@ -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 }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment