Commit bebfdb7f by zhanghaozhe

每一日题

parent da9aeaf6
......@@ -83,6 +83,9 @@
overflow: auto;
flex: 1;
a{
color: $active;
}
.legend {
font-size: $font_14;
......
......@@ -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,11 +42,11 @@ 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}
showCorrect={this.state.isShowAnswer}
showCorrect={this.state.isShowAnswer}
/>
}
{
......@@ -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>
)
})
......@@ -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 }
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