|
|
|
@ -4,6 +4,13 @@ import { Modal } from 'antd';
|
|
|
|
|
import { WordsBtn } from 'educoder';
|
|
|
|
|
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
// 点击按钮复制功能
|
|
|
|
|
function jsCopy(props){
|
|
|
|
|
var e = document.getElementById("copy_meet_content");
|
|
|
|
|
e.select();
|
|
|
|
|
document.execCommand("Copy");
|
|
|
|
|
props.showNotification("复制成功!");
|
|
|
|
|
}
|
|
|
|
|
class LiveItem extends Component{
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
@ -48,6 +55,9 @@ class LiveItem extends Component{
|
|
|
|
|
render(){
|
|
|
|
|
const { key, item , setLiveId } = this.props;
|
|
|
|
|
const { visible } = this.state;
|
|
|
|
|
|
|
|
|
|
const wei_flag = item.platform && (item.platform === "威佰通");
|
|
|
|
|
console.log(wei_flag && item.url);
|
|
|
|
|
return(
|
|
|
|
|
<div className="liveItem" key={key}>
|
|
|
|
|
<Modal
|
|
|
|
@ -58,12 +68,34 @@ class LiveItem extends Component{
|
|
|
|
|
keyboard={false}
|
|
|
|
|
centered={true}
|
|
|
|
|
>
|
|
|
|
|
<div className="task-popup-content">
|
|
|
|
|
<p className="task-popup-text-center font-16 pb20">直播链接失效</p >
|
|
|
|
|
</div>
|
|
|
|
|
<div className="task-popup-submit clearfix edu-txt-center">
|
|
|
|
|
<a className="task-btn task-btn-orange mr51" onClick={this.onDialogOkBtnClick}>知道了</a >
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
wei_flag && item.url ?
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<div className="task-popup-content edu-txt-center">
|
|
|
|
|
<p className="font-16">打开威佰通客户端,输入会议号即可进入直播</p>
|
|
|
|
|
<div className="wei_meet">
|
|
|
|
|
<p className="wei_meet_info">
|
|
|
|
|
<span>会议号:</span>
|
|
|
|
|
<input value={item.url} className="showNumber" readOnly id="copy_meet_content"/>
|
|
|
|
|
<a className="color-blue ml50" onClick={()=>jsCopy(this.props)}>复制会议号</a>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="task-popup-submit clearfix edu-txt-center">
|
|
|
|
|
<a className="task-btn fl" onClick={this.onDialogOkBtnClick}>取消</a >
|
|
|
|
|
<a className="task-btn task-btn-orange fr" onClick={this.onDialogOkBtnClick}>完成</a >
|
|
|
|
|
</div>
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
:
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<div className="task-popup-content">
|
|
|
|
|
<p className="task-popup-text-center font-16 pb20">{wei_flag ? "当前直播无会议号":"直播链接失效"}</p >
|
|
|
|
|
</div>
|
|
|
|
|
<div className="task-popup-submit clearfix edu-txt-center">
|
|
|
|
|
<a className="task-btn task-btn-orange mr51" onClick={this.onDialogOkBtnClick}>知道了</a >
|
|
|
|
|
</div>
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
}
|
|
|
|
|
</Modal>
|
|
|
|
|
{
|
|
|
|
|
visible ?
|
|
|
|
@ -96,7 +128,14 @@ class LiveItem extends Component{
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
{
|
|
|
|
|
item.url ?
|
|
|
|
|
<a className="btns going" target="_blank" href={`${item.url}`}>进入</a>
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
{
|
|
|
|
|
wei_flag ?
|
|
|
|
|
<a className="btns going" onClick={this.alertInfo}>进入</a>
|
|
|
|
|
:
|
|
|
|
|
<a className="btns going" target="_blank" href={`${item.url}`}>进入</a>
|
|
|
|
|
}
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
:
|
|
|
|
|
<a className="btns going" onClick={this.alertInfo}>进入</a>
|
|
|
|
|
}
|
|
|
|
@ -111,7 +150,7 @@ class LiveItem extends Component{
|
|
|
|
|
<label className="mr50">{item.author_name}</label>
|
|
|
|
|
{ item.platform && <span className="mr50">直播平台:{item.platform}</span> }
|
|
|
|
|
{ item.live_time && <span className="mr50">开播时间:{item.live_time}</span>}
|
|
|
|
|
{ item.duration && <span className="mr50">直播时长:{item.duration}</span> }
|
|
|
|
|
{ item.duration && <span className="mr50">直播时长:{item.duration}分钟</span> }
|
|
|
|
|
</span>
|
|
|
|
|
<span>
|
|
|
|
|
{
|
|
|
|
|