Commit 97d500db by zhujian

'fix:直播回放模拟'

parent e3269458
...@@ -14,7 +14,7 @@ export default class WechatApi { ...@@ -14,7 +14,7 @@ export default class WechatApi {
timestamp: res.timestamp, // 必填,生成签名的时间戳 timestamp: res.timestamp, // 必填,生成签名的时间戳
nonceStr: res.nonceStr,// 必填,生成签名的随机串 nonceStr: res.nonceStr,// 必填,生成签名的随机串
signature: res.signature, signature: res.signature,
jsApiList: ['startLiving'], jsApiList: ['startLiving','downloadLivingReplay'],
success: function(res) { success: function(res) {
console.log(res,'agentConfig') console.log(res,'agentConfig')
}, },
......
...@@ -72,6 +72,18 @@ function CerateQWCourse(props: any) { ...@@ -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 "> return <div className="page createQWCourse ">
<Breadcrumbs navList={props.type === 'edit' ? "编辑考试" : "新建直播课"} goBack={props.history.goBack} /> <Breadcrumbs navList={props.type === 'edit' ? "编辑考试" : "新建直播课"} goBack={props.history.goBack} />
...@@ -139,6 +151,7 @@ function CerateQWCourse(props: any) { ...@@ -139,6 +151,7 @@ function CerateQWCourse(props: any) {
<div style={{width:100,margin:'0 auto'}} className="qrcode"></div> <div style={{width:100,margin:'0 auto'}} className="qrcode"></div>
</div> </div>
<div className="footer"> <div className="footer">
<Button onClick={downloadLivingReplay}>下载直播回放</Button>
<Button onClick={props.history.goBack}>取消</Button> <Button onClick={props.history.goBack}>取消</Button>
<Button type="primary" onClick={handleSave}>保存</Button> <Button type="primary" onClick={handleSave}>保存</Button>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment