Commit 6ec8b30f by wangshuo

Python小课价格以及序号

parent 8b38b20c
......@@ -40,7 +40,7 @@ export default class Test extends Component {
{
item.questions.map((question, index)=>{
return <div key={index} className={'line'}>
<span>{index}</span>
<span>{question.number}</span>
<div className={'test_name'}>
<img src={question.icon} alt=""/>
<p>{question.name}</p>
......
......@@ -95,6 +95,7 @@ class PythonDes extends Component {
subTitle: '每节课的知识点都设有代码编写部分,每节课课后都有课后实操。有多次代码编写练习的机会,助你真正学以致用。'
},
],
payMoney: 0,
}
}
......@@ -202,6 +203,7 @@ class PythonDes extends Component {
allSyllabus: data.syllabus,
practice: data.practice.slice(0, 2),
allPractice: data.practice,
payMoney: data.course_info.price1,
})
} else {
Toast.info(msg)
......@@ -223,7 +225,7 @@ class PythonDes extends Component {
}
render() {
const {defineList, desList, worryList, syllabus, practice, allSyllabusShow, allPracticeShow, toApp} = this.state
const {defineList, desList, worryList, syllabus, practice, allSyllabusShow, allPracticeShow, toApp, payMoney} = this.state
return (
<div className={'python__des'}>
<div className={'des__start'}></div>
......@@ -242,7 +244,7 @@ class PythonDes extends Component {
<div className={'course__introduce'}></div>
<div className={'bottom__btn_group'}>
<div className={'course__price'}>
<div className={'money'}>199<span style={{fontSize: '18px'}}></span></div>
<div className={'money'}>{payMoney}<span style={{fontSize: '18px'}}></span></div>
<div className={'discount'}>
限时特惠
<div className={'triangle'}></div>
......
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