Commit ec6d0f60 by xuzhenghua

2

parents 89f1fbdc 1ebb9cfc
......@@ -519,7 +519,7 @@ class BlessingPreheat extends Component {
<RankList></RankList>
<Live isFormal={isFormal}></Live>
<Live isFormal={isFormal} isLogin={isLogin}></Live>
</div>
)
}
......
......@@ -69,10 +69,19 @@ class Live extends Component {
}
toLiveRoom = id => {
const {history,isLogin} = this.props;
if (this.state.isApp) {
SendMessageToApp('toLiveRoom', id)
if(isLogin){
SendMessageToApp('toLiveRoom', id)
}else {
SendMessageToApp("toLogin")
}
} else {
window.location.href = `${window.location.protocol}//www.julyedu.com/live/m_room/${id}`
if(isLogin){
window.location.href = `${window.location.protocol}//www.julyedu.com/live/m_room/${id}`
}else {
history.push('/passport')
}
}
}
......
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