From 384d3634825ed1161767d2415efb26e6b0390f0c Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Thu, 13 Feb 2020 19:05:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=B9=E6=A1=86=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/courses/Video/LiveItem.js | 65 +++++++++++++++++-- .../src/modules/courses/Video/LiveNew.js | 3 +- 2 files changed, 63 insertions(+), 5 deletions(-) diff --git a/public/react/src/modules/courses/Video/LiveItem.js b/public/react/src/modules/courses/Video/LiveItem.js index 8e70e2972..c6796d747 100644 --- a/public/react/src/modules/courses/Video/LiveItem.js +++ b/public/react/src/modules/courses/Video/LiveItem.js @@ -1,11 +1,16 @@ import React,{ Component } from "react"; import { getImageUrl } from 'educoder'; +import { Modal } from 'antd'; import { WordsBtn } from 'educoder'; -import moment from 'moment'; import axios from 'axios'; class LiveItem extends Component{ - + constructor(props) { + super(props); + this.state = { + visible:false + } + } deleteLive=(id)=>{ this.props.confirm({ @@ -27,12 +32,55 @@ class LiveItem extends Component{ console.log('Cancel'); }, }); + } + alertInfo=()=>{ + console.log("dddd"); + this.setState({ + visible:true + }) + } + onDialogOkBtnClick=()=>{ + this.setState({ + visible:false, + }) } render(){ const { key, item , setLiveId } = this.props; + const { visible } = this.state; + console.log(visible); return(
+ +
+

直播链接失效

+
+
+ 知道了 +
+
+ { + visible ? + + : + "" + }
{item.course_name} @@ -44,11 +92,20 @@ class LiveItem extends Component{

{item.description}

{ - (item.on_status && item.url)? - 进入 + item.on_status ? + + { + item.url ? + 进入 + : + 进入 + } + : 进入 } + 进入 +

diff --git a/public/react/src/modules/courses/Video/LiveNew.js b/public/react/src/modules/courses/Video/LiveNew.js index e9d9bf9b1..0961d0ef7 100644 --- a/public/react/src/modules/courses/Video/LiveNew.js +++ b/public/react/src/modules/courses/Video/LiveNew.js @@ -9,7 +9,8 @@ import axios from 'axios'; const { TextArea } = Input; const { Option } = Select; -const array=['腾讯课堂','B站','斗鱼','威佰通'] +// ,'威佰通' +const array=['腾讯课堂','B站','斗鱼']; function range(start, end) { const result = [];