Commit 65cfca61 by FE

modify bug 08.16

parent 70151df2
......@@ -239,8 +239,8 @@ function CourseList({modules}) {
const bottom = (
<div>
{!item.isbuy && <p className="course-price">
<span className="new">¥{item.price}</span>
<span className="old">¥{item.discounts_price}</span>
<span className="new">¥{item.discounts_price}</span>
<span className="old">¥{item.price}</span>
</p>
}
{item.isbuy &&
......
......@@ -56,7 +56,7 @@ class UseCoupon extends PureComponent {
})
.then(res => {
const data = res.data
if (data.code === 200) {
if (data.code === 0) {
const coupon = data.data
......
......@@ -81,7 +81,7 @@ class OutLine extends Component {
6-可试听但无试听权限
*/}
{ // 试听
!introduce.is_aist && item.class_status === 7 &&
!introduce.is_aist && item.class_status === 6 &&
<span className='btn-right-10 audition'
onClick={this.props.toAudition}>试听
<i className='iconfont iconcelluar'></i>
......
......@@ -5,6 +5,8 @@ import classnames from 'classnames'
import { Tag } from '../../common'
import OpenApp from './OpenApp'
import { http, html, htmlDecode} from '@/utils'
import { config } from 'rxjs';
import { Object } from 'core-js';
export default class Examination extends PureComponent {
......@@ -20,9 +22,13 @@ export default class Examination extends PureComponent {
componentDidMount() {
http.get(`${API.home}/m/dailyQuestion`)
.then(res => {
this.setState({
questionData: res.data.data
})
const { data: { data, code } } = res;
if(code === 200) {
const newData = Object.assign(data, {analysis: data.analysis.length> 0? data.analysis.split('\n'): []})
this.setState({
questionData: newData
})
}
})
}
......@@ -86,7 +92,7 @@ const Answer = React.memo(({content, isShowAnswer}) => {
return (
<div className={classnames('answer', {scale: isShowAnswer})}>
<p className='legend'>解析</p>
<p className='content' dangerouslySetInnerHTML={{__html: content}}/>
{content.length>0 && content.map((item, index) => <p key={index} className='content' dangerouslySetInnerHTML={{__html: item}}/>)}
</div>
)
})
......@@ -156,7 +156,7 @@ class SharePoster extends Component {
// 获取二维码
getCodeWe() {
let _this = this
let qrCodeLink = `/detail/${getParam('courseId')}/${getParam('dist_code')}`
let qrCodeLink = `http://m.julyedu.com/detail/${getParam('courseId')}/${getParam('dist_code')}`
return new Promise(resolve => {
QRCode.toDataURL(qrCodeLink, {}, function (err, url) {
_this.setState({
......
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