Commit 0d70b54c by xuzhenghua

bug

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