Commit add2a825 by wangshuo

Python小课 价格 以及 序号

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