Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
172c142a
Commit
172c142a
authored
Jan 11, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:处理点击进入查看回放
parent
38be97f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
src/domains/basic-domain/constants.ts
+3
-3
src/domains/course-domain/constants.ts
+6
-3
src/modules/course-manage/components/LiveCourseList.jsx
+7
-1
No files found.
src/domains/basic-domain/constants.ts
View file @
172c142a
/*
* @Author: 陈剑宇
* @Date: 2020-05-07 14:43:01
* @LastEditTime: 202
0-12-26 14:10:34
* @LastEditTime: 202
1-01-11 15:21:59
* @LastEditors: zhangleyuan
* @Description:
* @FilePath: /wheat-web-demo/src/domains/basic-domain/constants.ts
...
...
@@ -25,5 +25,6 @@ export const USER_TYPE: string = 'B';
export
const
PROJECT
=
'xmzj-web-b'
;
export
const
VERSION
=
'5.4.8'
;
export
const
PREFIX
=
'cloud-class'
;
// host
export
const
BASIC_HOST
:
string
=
BASIC_HOST_MAP
[
ENV
];
\ No newline at end of file
export
const
BASIC_HOST
:
string
=
BASIC_HOST_MAP
[
ENV
];
src/domains/course-domain/constants.ts
View file @
172c142a
/*
* @Author: 吴文洁
* @Date: 2020-08-20 09:21:40
* @LastEditors:
wuf
an
* @LastEditTime: 2021-01-
06 21:16:34
* @LastEditors:
zhangleyu
an
* @LastEditTime: 2021-01-
11 15:35:49
* @Description:
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -25,7 +25,7 @@ const shareUrlMap: MapInterface = {
'gray'
:
'https://prod.xiaomai5.com/share/show?appid='
}
const
LIVE_SHARE_MAP
:
MapInterface
=
{
const
LIVE_SHARE_MAP
:
MapInterface
=
{
dev
:
'https://dev.xiaomai5.com/store-live/index.html#/'
,
dev1
:
'https://dev.xiaomai5.com/store-live/index.html#/'
,
rc
:
'https://rc.xiaomai5.com/store-live/index.html#/'
,
...
...
@@ -33,6 +33,9 @@ const shareUrlMap: MapInterface = {
prod
:
'https://res.xiaomai0.com/store-live/index.html#/'
,
}
export
const
appId
:
string
=
appIdMap
[
ENV
];
export
const
shareUrl
:
string
=
shareUrlMap
[
ENV
];
export
const
LIVE_SHARE
:
string
=
LIVE_SHARE_MAP
[
ENV
];
src/modules/course-manage/components/LiveCourseList.jsx
View file @
172c142a
...
...
@@ -28,7 +28,7 @@ import ShareLiveModal from '../modal/ShareLiveModal';
import
'./LiveCourseList.less'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
{
appId
,
shareUrl
,
LIVE_SHARE
}
from
'@/domains/course-domain/constants'
;
import
{
appId
,
shareUrl
,
LIVE_SHARE
,
LIVE_REPLAY_MAP
}
from
'@/domains/course-domain/constants'
;
import
CourseService
from
"@/domains/course-domain/CourseService"
;
import
BaseService
from
"@/domains/basic-domain/baseService"
;
import
DataList
from
'../DataList/DataList'
;
...
...
@@ -277,6 +277,7 @@ class LiveCourseList extends React.Component {
<
div
key=
"view_play_back"
className=
"operate__item"
onClick=
{
()
=>
{
this
.
handleViewPlayBack
(
item
)}
}
>
查看回放
</
div
>
<
span
className=
"operate__item split"
key=
"view_play_back_split"
>
|
</
span
>
</>
...
...
@@ -426,6 +427,11 @@ class LiveCourseList extends React.Component {
this
.
setState
({
downloadUrl
:
result
.
releaseUrl
});
})
}
handleViewPlayBack
=
(
item
)
=>
{
const
htmlUrl
=
`
${
LIVE_SHARE
}
replay/
${
item
.
liveCourseId
}
?teacherId=
${
item
.
teacherId
}
`
;
window
.
open
(
htmlUrl
);
}
render
()
{
const
{
total
,
query
,
courseList
,
loading
}
=
this
.
props
;
const
{
current
,
size
}
=
query
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment