Commit 051e15b9 by zhangleyuan

feat:处理进入直播客户端

parent ddb42b09
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wufan * @Author: wufan
* @Date: 2020-12-01 17:21:21 * @Date: 2020-12-01 17:21:21
* @LastEditors: zhangleyuan * @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-22 15:39:00 * @LastEditTime: 2021-01-09 11:06:42
* @Description: Description * @Description: Description
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -38,6 +38,9 @@ export function sendNewPhoneAuthCode(params: object) { ...@@ -38,6 +38,9 @@ export function sendNewPhoneAuthCode(params: object) {
export function editUserPhone(params: object) { export function editUserPhone(params: object) {
return Service.Hades("public/hades/editUserPhone", params); return Service.Hades("public/hades/editUserPhone", params);
} }
export function getLastedVersion(params: object) {
return Service.Hades("public/hades/getLastedVersion", params);
}
export const getOssClient = ( export const getOssClient = (
data: object, data: object,
instId: string, instId: string,
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
* @Author: wufan * @Author: wufan
* @Date: 2020-12-01 17:20:49 * @Date: 2020-12-01 17:20:49
* @LastEditors: zhangleyuan * @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-11 11:36:19 * @LastEditTime: 2021-01-09 11:08:02
* @Description: Description * @Description: Description
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
import { getUserStore, getUserPermission ,logout,getStoreUser,sendBizAuthCode,editUserPhone,checkBizAuthCode,sendNewPhoneAuthCode,sendLoginAuthCode,login} from '@/data-source/base/request-apis'; import { getUserStore, getUserPermission ,logout,getStoreUser,sendBizAuthCode,editUserPhone,checkBizAuthCode,sendNewPhoneAuthCode,sendLoginAuthCode,login,getLastedVersion} from '@/data-source/base/request-apis';
export default class StoreService { export default class StoreService {
// 获取员工列表 // 获取员工列表
...@@ -46,4 +46,7 @@ export default class StoreService { ...@@ -46,4 +46,7 @@ export default class StoreService {
static login(params: any){ static login(params: any){
return login(params); return login(params);
} }
static getLastedVersion(params: any){
return getLastedVersion(params);
}
} }
\ No newline at end of file
...@@ -388,7 +388,7 @@ handleChangeBasicInfo = (field, value) => { ...@@ -388,7 +388,7 @@ handleChangeBasicInfo = (field, value) => {
message.warning('请选择上课日期'); message.warning('请选择上课日期');
resolve(false); resolve(false);
return; return;
} else if(startTime === endTime) { } else if(startTime === endTime || startTime > endTime) {
message.warning('结束时间必须晚于开始时间'); message.warning('结束时间必须晚于开始时间');
resolve(false); resolve(false);
return; return;
......
...@@ -98,8 +98,10 @@ class LiveCourseFilter extends React.Component { ...@@ -98,8 +98,10 @@ class LiveCourseFilter extends React.Component {
query.endTime = dates[1].valueOf(); query.endTime = dates[1].valueOf();
} }
this.setState({ this.setState({
query, query:{
...query,
current: 1, current: 1,
}
}, () => { }, () => {
this.props.onChange(this.state.query); this.props.onChange(this.state.query);
}) })
......
...@@ -383,25 +383,24 @@ class LiveCourseList extends React.Component { ...@@ -383,25 +383,24 @@ class LiveCourseList extends React.Component {
), ),
}); });
} else { } else {
// axios CourseService.getLiveCloudCourseDetail({
// .Apollo("public/businessLive/getCourseDetail", { liveCourseId: item.liveCourseId,
// liveCourseId: item.liveCourseId, })
// }) .then((res) => {
// .then((res) => { const url = `xmqx://liveCourseId=${item.liveCourseId}`;
// const url = `xiaomai5://instId=${instId}&courseId=${item.liveCourseId}&teacherId=${item.teacherId}&uid=${ teacherId ? User_t.uid() : User.uid()}&aid=${teacherId ? "" : User.aid()}&tid=${teacherId || ""}&identity=${identity}&classType=${item.liveType}&xmVersion=${window.NewVersion ? '5.0' : '4.0'}`; if (res.result.courseState === "FINISH") {
// if (res.result.courseState === "FINISH") { Modal.warning({
// Modal.warning({ title: "刷新页面",
// title: "刷新页面", icon: <QuestionCircleOutlined />,
// icon: <QuestionCircleOutlined />, content: "课次已结束,请刷新一下",
// content: "课次已结束,请刷新一下", onOk: () => {
// onOk: () => { this.refreshCourseList();
// this.refreshCourseList(); }
// } });
// }); } else {
// } else { this.setState({ url, openDownloadModal: true });
this.setState({ url:'', openDownloadModal: true }); }
// } });
// });
} }
} }
onShowSizeChange = (current, size) => { onShowSizeChange = (current, size) => {
......
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
import React from 'react'; import React from 'react';
import { Button, Modal, message } from 'antd'; import { Button, Modal, message } from 'antd';
import Service from '@/common/js/service';
import './liveCourseOpt.less'; import './liveCourseOpt.less';
import BaseService from "@/domains/basic-domain/baseService";
class LiveCourseOpt extends React.Component { class LiveCourseOpt extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
...@@ -23,15 +25,15 @@ class LiveCourseOpt extends React.Component { ...@@ -23,15 +25,15 @@ class LiveCourseOpt extends React.Component {
const isMac = /macintosh|mac os x/i.test(navigator.userAgent); const isMac = /macintosh|mac os x/i.test(navigator.userAgent);
// 判断用户系统 // 判断用户系统
if(!isMac) { if(!isMac) {
// axios BaseService
// .Apollo("anon/version/getLastedVersion", { model: 1, platform: 1 }) .getLastedVersion({ model: 1, platform: 1 })
// .then((res) => { .then((res) => {
// const a = document.createElement("a"); const a = document.createElement("a");
// document.body.appendChild(a); document.body.appendChild(a);
// a.href = res.result.releaseUrl; a.href = res.result.releaseUrl;
// a.click(); a.click();
// document.body.removeChild(a); document.body.removeChild(a);
// }) })
}else { }else {
Modal.info({ Modal.info({
title: "抱歉,暂不支持Mac版", title: "抱歉,暂不支持Mac版",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2020-07-23 14:54:16 * @Date: 2020-07-23 14:54:16
* @LastEditors: zhangleyuan * @LastEditors: zhangleyuan
* @LastEditTime: 2021-01-08 17:49:46 * @LastEditTime: 2021-01-09 10:55:29
* @Description: 大班直播课预览弹窗 * @Description: 大班直播课预览弹窗
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -144,13 +144,11 @@ class PreviewCourseModal extends React.Component { ...@@ -144,13 +144,11 @@ class PreviewCourseModal extends React.Component {
<span className="time__label">上课时间:</span> <span className="time__label">上课时间:</span>
<span className="time__value"> <span className="time__value">
{ {
[ [
<span>{liveDateStr}&nbsp;</span>, <span>{liveDateStr}&nbsp;</span>,
<span>{startTimeStr}~{endTimeStr }</span> <span>{startTimeStr}~{endTimeStr }</span>
] ]
} }
</span> </span>
</div> </div>
<div className="container__body__teacher"> <div className="container__body__teacher">
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2020-08-05 10:11:57 * @Date: 2020-08-05 10:11:57
* @LastEditors: zhangleyuan * @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-31 18:27:26 * @LastEditTime: 2021-01-09 11:50:00
* @Description: 视频课-搜索模块 * @Description: 视频课-搜索模块
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -97,8 +97,10 @@ class VideoCourseFilter extends React.Component { ...@@ -97,8 +97,10 @@ class VideoCourseFilter extends React.Component {
query.endTime = dates[1].valueOf(); query.endTime = dates[1].valueOf();
} }
this.setState({ this.setState({
query, query:{
...query,
current: 1, current: 1,
}
}, () => { }, () => {
this.props.onChange(this.state.query); this.props.onChange(this.state.query);
}) })
......
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