From 1a35dddb058f9379779eed04584444e68c1a285b Mon Sep 17 00:00:00 2001
From: wangxi <123456>
Date: Mon, 13 Jun 2022 16:28:30 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95bug=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/src/pages/course/detail/index.tsx | 54 ++++++++-------------------
1 file changed, 16 insertions(+), 38 deletions(-)
diff --git a/web/src/pages/course/detail/index.tsx b/web/src/pages/course/detail/index.tsx
index 241b88c..f15aaab 100644
--- a/web/src/pages/course/detail/index.tsx
+++ b/web/src/pages/course/detail/index.tsx
@@ -54,8 +54,17 @@ const CardList = () => {
console.log('result9999',result);
let info={img:'',url:''};
if(JSON.stringify(result.course.attachment_json.url)!=='{}'){
- info.url= '/dsideal_yy/html/'+result.course.attachment_json.url;
- info.img=result.course.attachment_json.img;
+ console.log('1111s')
+ if(result.course.attachment_json.length!==undefined){
+ info.url= '/dsideal_yy/html/'+result.course.attachment_json[0].url;
+ info.img=result.course.attachment_json[0].img;
+ }else {
+ info.url= '/dsideal_yy/html/'+result.course.attachment_json.url;
+ info.img=result.course.attachment_json.img;
+ }
+
+ }else {
+ console.log(2222)
}
setVideo(info);
@@ -113,38 +122,7 @@ const CardList = () => {
},[learning]);
- //
- const content = (
-
-
{'生涯规划师初级认证培训课程你收到了 14 份新周报'}}
- hoverable={false}
- className={styles.card}
- actions={[]}
- extra={<>开始学习时间: 2020-4-9距离结束时间:300天考核学时:36学时>}
- >
- }
- title={false}
- description={
- <>
-
-
- {'请大家在规定时间内完成本培训任务安排,逾期本培训任务将自动关闭。祝大家学习愉快!请大家在规定时间内完成本培训任务安排,逾期本培训任务将自动关闭。祝大家学习愉快!这种模板用于提醒谁与你发生了互动,左侧放『谁』的头像'}
-
-
- 学习进度:
-
-
- 上次学习:生涯规划之升学路径知多少 主讲人:盖笑松
-
-
- >
- }
- />
-
-
- );
+
//const videoInfo = {url:'http://cctvalih5ca.v.myalicdn.com/live/cctv1_2/index.m3u8', img:''}
//const videoInfo = {url:'https://media.w3.org/2010/05/sintel/trailer_hd.mp4', img:''}
const videoInfo = {url:'http://10.10.14.199/dsideal_yy/html/down/M3u8/2D/2D99BF1D-2F37-47FB-8A24-45112A236B8F.m3u8', img:''}//有视频
@@ -161,6 +139,7 @@ const CardList = () => {
// content={content}
extraContent={false}>
+ {console.log('redddd')}