Commit 32fb53ac by zhanghaozhe

课程详情页

parent 7dde01da
...@@ -269,10 +269,12 @@ function CourseList({modules, toDetail}) { ...@@ -269,10 +269,12 @@ function CourseList({modules, toDetail}) {
{item.is_buy {item.is_buy
? <a className="isbuy">已购买</a> ? <a className="isbuy">已购买</a>
: item.is_limit_free : item.is_limit_free
? <p className={'course-price'}> ? <Link to={`/detail?id=${item.course_id}`}>
<span className={'free'}>免费领取</span> <p className={'course-price'}>
<span className={'old'}>¥{item.price}</span> <span className={'free'}>免费领取</span>
</p> <span className={'old'}>¥{item.price}</span>
</p>
</Link>
: <p className="course-price"> : <p className="course-price">
<span className="new">¥{item.discounts_price}</span> <span className="new">¥{item.discounts_price}</span>
<span className="old">¥{item.price}</span> <span className="old">¥{item.price}</span>
......
...@@ -523,6 +523,7 @@ class Detail extends Component { ...@@ -523,6 +523,7 @@ class Detail extends Component {
</button> </button>
<button onClick={() => { <button onClick={() => {
history.push(`/play/video?id=${id}`) history.push(`/play/video?id=${id}`)
instance.close()
}}>立即学习 }}>立即学习
</button> </button>
</div> </div>
...@@ -651,15 +652,15 @@ class Detail extends Component { ...@@ -651,15 +652,15 @@ class Detail extends Component {
is_vip 1是属于vip赠的 0是不在vip范围内的 is_vip 1是属于vip赠的 0是不在vip范围内的
*/} */}
{ {
course_info.is_baoming === 1 && course_info.is_pay == 1 && course_info.contact_type == 1 && course_info.course_qq && !(course_info.is_limit_free && course_info.limit_free_status == 1) && course_info.is_baoming === 1 && course_info.is_pay == 1 && course_info.contact_type == 1 && course_info.course_qq &&
<div className='group'> <div className='group'>
上课QQ群:{course_info.course_qq},加群请备注您的学号:{course_info.uid} 上课QQ群:{course_info.course_qq},加群请备注您的学号:{course_info.uid}
</div> </div>
} }
{ {
course_info.is_baoming === 1 && course_info.is_pay == 1 && course_info.contact_type == 2 && course_info.course_qq && !(course_info.is_limit_free && course_info.limit_free_status == 1) && course_info.is_baoming === 1 && course_info.is_pay == 1 && course_info.contact_type == 2 && course_info.course_qq &&
<div className='group'> <div className='group'>
请添加班主任微信:{course_info.course_qq},添加时备注学号:{course_info.uid} 请添加班主任微信:{course_info.course_qq},添加时备注学号:{course_info.uid}
</div> </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