Commit 0d70b54c by xuzhenghua

bug

parent 19e77109
......@@ -280,6 +280,7 @@ class BargainMiddlePage extends Component {
// 邀请好友砍价
shareFriendBargain = () => {
alert(location.href)
this.setState({
isShowOverlay: true,
status: 7,
......
......@@ -41,16 +41,16 @@ function ProgressShareModal(props) {
<div className="title">分享到</div>
<ul>
<li className='share-icon'>
<Link style={{display: 'block'}} to={props.data.url}>
<a style={{display: 'block'}} href={props.data.url}>
<div className="icon"><i className='iconfont iconweixinzhifu'/></div>
<div className='text'>微信好友</div>
</Link>
</a>
</li>
<li className='share-icon'>
<Link style={{display: 'block'}} to={props.data.url}>
<a style={{display: 'block'}} href={props.data.url}>
<div className="icon"><i className='iconfont iconpengyouquaniconx'/></div>
<div className='text'>朋友圈</div>
</Link>
</a>
</li>
</ul>
</div>
......@@ -557,7 +557,7 @@ class Video extends Component {
this.setState(
{
activeIndex: index
},
},
() => {
if (this.lessonAvailable(index)) {
if (this.hasAuth(index)) {
......@@ -673,14 +673,14 @@ class Video extends Component {
<div className="purchase-box">
<div className='hint'>您尚未购买该课时,请购买后学习。</div>
<div className='btns'>
<button
<button
type='button'
onClick={this.tobuy}
className='purchase-class'
>
¥{salePrice} 购买课程
</button>
<button
<button
type='button'
onClick={this.toSingleset.bind(this, videoList[activeIndex])}
className='purchase-episode'
......@@ -719,10 +719,10 @@ class Video extends Component {
{/*单集购买*/}
{
singleBox &&
<Single
<Single
courseId={course.course_id}
singleBox={this.state.singleBox}
boxHide={this.boxHide}
singleBox={this.state.singleBox}
boxHide={this.boxHide}
data={this.state.singMess}
singleType={this.state.singleType}
vcourseId={course.v_course_id}
......@@ -751,8 +751,8 @@ class Video extends Component {
pathname: '/play/video',
search: location.search
}}/>
<Route
path={`${match.path}/video`}
<Route
path={`${match.path}/video`}
render={props => {
return (
<VideoCatalog
......
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