import React,{ Component } from "react"; import { getImageUrl } from 'educoder'; 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("复制成功!"); } const $ = window.$; function getRight(){ var right = parseInt($(".-task-sidebar").css("right")); return right===0?0:right; } class LiveItem extends Component{ constructor(props) { super(props); this.state = { visible:false } } deleteLive=(id)=>{ this.props.confirm({ content: '是否确认删除?', onOk: () => { const url = `/live_links/${id}.json`; axios.delete(url).then(result=>{ if(result){ this.props.showNotification(`删除成功!`); const { successFunc } = this.props; successFunc && successFunc(1); } }).catch(error=>{ console.log(error); }) }, onCancel() { console.log('Cancel'); }, }); } alertInfo=()=>{ this.setState({ visible:true }) getRight(); } onDialogOkBtnClick=()=>{ this.setState({ visible:false, }) } 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(
打开威佰通客户端,输入会议号即可进入直播
{wei_flag ? "当前直播无会议号":"直播链接失效"}
{ item.platform && 直播平台:{item.platform} }
{ item.live_time && 开播时间:{item.live_time}}
{ item.duration && 直播预计时长:{item.duration}分钟 }
{
item.op_auth ?