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
97d500db
Commit
97d500db
authored
Jun 21, 2021
by
zhujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'fix:直播回放模拟'
parent
e3269458
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
+14
-1
src/core/wechatApi.js
+1
-1
src/modules/course-manage/components/CerateQWCourse.tsx
+13
-0
No files found.
src/core/wechatApi.js
View file @
97d500db
...
...
@@ -14,7 +14,7 @@ export default class WechatApi {
timestamp
:
res
.
timestamp
,
// 必填,生成签名的时间戳
nonceStr
:
res
.
nonceStr
,
// 必填,生成签名的随机串
signature
:
res
.
signature
,
jsApiList
:
[
'startLiving'
],
jsApiList
:
[
'startLiving'
,
'downloadLivingReplay'
],
success
:
function
(
res
)
{
console
.
log
(
res
,
'agentConfig'
)
},
...
...
src/modules/course-manage/components/CerateQWCourse.tsx
View file @
97d500db
...
...
@@ -72,6 +72,18 @@ function CerateQWCourse(props: any) {
})
}
function
downloadLivingReplay
(){
wx
.
invoke
(
'downloadLivingReplay'
,
{
"livingId"
:
"LIVINGID"
,
},
function
(
res
:
any
)
{
console
.
log
(
res
,
'tyuuioythbn'
)
if
(
res
.
err_msg
!=
"downloadLivingReplay:ok"
)
{
// 错误处理
}
});
}
return
<
div
className=
"page createQWCourse "
>
<
Breadcrumbs
navList=
{
props
.
type
===
'edit'
?
"编辑考试"
:
"新建直播课"
}
goBack=
{
props
.
history
.
goBack
}
/>
...
...
@@ -139,6 +151,7 @@ function CerateQWCourse(props: any) {
<
div
style=
{
{
width
:
100
,
margin
:
'0 auto'
}
}
className=
"qrcode"
></
div
>
</
div
>
<
div
className=
"footer"
>
<
Button
onClick=
{
downloadLivingReplay
}
>
下载直播回放
</
Button
>
<
Button
onClick=
{
props
.
history
.
goBack
}
>
取消
</
Button
>
<
Button
type=
"primary"
onClick=
{
handleSave
}
>
保存
</
Button
>
</
div
>
...
...
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