Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
biz.qingxiao.com
Commits
08cf0400
Commit
08cf0400
authored
Mar 05, 2020
by
baixian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
339adfc3
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
32 additions
and
16 deletions
+32
-16
banner.png
image/liveclass/banner.png
+0
-0
index.html
index.html
+1
-1
MaterialModal.js
src/components/MaterialModal.js
+2
-2
newregister.js
src/models/newregister.js
+2
-1
webapp.js
src/models/webapp.js
+1
-1
AddLive.js
src/pages/liveclass/AddLive.js
+7
-3
AddLive.less
src/pages/liveclass/AddLive.less
+1
-0
DownloadModal.js
src/pages/liveclass/DownloadModal.js
+5
-4
DownloadModal.less
src/pages/liveclass/DownloadModal.less
+4
-0
QrcodeShow.js
src/pages/liveclass/components/QrcodeShow.js
+0
-1
QrcodeShow.less
src/pages/liveclass/components/QrcodeShow.less
+2
-0
index.js
src/pages/liveclass/index.js
+6
-2
router.js
src/router.js
+1
-1
No files found.
image/liveclass/banner.png
0 → 100644
View file @
08cf0400
63.2 KB
index.html
View file @
08cf0400
...
...
@@ -18,5 +18,5 @@
</head>
<body>
<div
id=
"root"
></div>
<script
type=
"text/javascript"
src=
"/dist/main.
59d729
.js"
></script></body>
<script
type=
"text/javascript"
src=
"/dist/main.
df6d5a
.js"
></script></body>
</html>
\ No newline at end of file
src/components/MaterialModal.js
View file @
08cf0400
...
...
@@ -93,13 +93,13 @@ class MaterialModalForm extends React.Component {
{
item
.
type
===
1
&&
<
div
className
=
{
`
${
pageStyle
.
mediaBox
}
${
pageStyle
.
imgBox
}
`
}
title
=
{
JSON
.
parse
(
item
.
content
).
name
}
>
<
img
className
=
{
pageStyle
.
img
}
src
=
{
imagify
(
item
.
src
)}
alt
=
""
/>
<
img
className
=
{
pageStyle
.
imageicon
}
src
=
{
`
${
__IMGCDN__
}
/
course/photo_icon.png`
}
alt
=
""
/>
<
img
className
=
{
pageStyle
.
imageicon
}
src
=
{
`
${
__IMGCDN__
}
course/photo_icon.png`
}
alt
=
""
/>
<
/div
>
}
{
item
.
type
===
2
&&
<
div
className
=
{
`
${
pageStyle
.
mediaBox
}
${
pageStyle
.
videoBox
}
`
}
title
=
{
JSON
.
parse
(
item
.
content
).
name
}
>
<
img
className
=
{
pageStyle
.
img
}
src
=
{
`
${
videoPoster
(
item
.
src
)}
`
}
alt
=
""
/>
<
img
className
=
{
pageStyle
.
videoicon
}
src
=
{
`
${
__IMGCDN__
}
/
course/video_icon.png`
}
alt
=
""
/>
<
img
className
=
{
pageStyle
.
videoicon
}
src
=
{
`
${
__IMGCDN__
}
course/video_icon.png`
}
alt
=
""
/>
<
div
className
=
{
pageStyle
.
videoplay
}
>
<
img
className
=
{
pageStyle
.
videoplayicon
}
src
=
{
`
${
__IMGCDN__
}
smallplayicon.png`
}
alt
=
""
/>
<
/div
>
...
...
src/models/newregister.js
View file @
08cf0400
...
...
@@ -68,6 +68,7 @@ export default {
mobile
:
(
data
.
data
.
business
&&
data
.
data
.
business
.
mobile
)
||
''
,
nickname
:
(
data
.
data
.
business
&&
data
.
data
.
business
.
nickname
)
||
''
,
expiresDateTime
:
data
.
data
.
expiresDateTime
||
''
,
bind_member_id
:
(
data
.
data
.
business
&&
data
.
data
.
business
.
bind_member_id
)
||
0
,
});
}
message
.
success
(
'注册成功!'
,
1
);
...
...
@@ -125,7 +126,7 @@ export default {
});
// yield delay(200);
yield
put
(
routerRedux
.
push
({
pathname
:
`/deploySchool/
${
schooladd
.
data
.
id
}
`
,
pathname
:
`/
erp/
deploySchool/
${
schooladd
.
data
.
id
}
`
,
}));
}
}
else
{
...
...
src/models/webapp.js
View file @
08cf0400
...
...
@@ -1370,7 +1370,7 @@ export default {
},
});
}
const
deploySchoolMath
=
pathToRegexp
(
'/deploySchool/:id'
).
exec
(
pathname
);
const
deploySchoolMath
=
pathToRegexp
(
'/
erp/
deploySchool/:id'
).
exec
(
pathname
);
if
(
deploySchoolMath
)
{
dispatch
({
type
:
'deployschool/queryinfo'
,
...
...
src/pages/liveclass/AddLive.js
View file @
08cf0400
...
...
@@ -62,6 +62,10 @@ class AddCrmForm extends React.Component {
pay_switch
,
status
,
}
=
values
;
if
(
Number
(
pay_switch
)
==
1
&&
secret
==
''
)
{
message
.
error
(
'请先设置密码'
,
0.5
);
return
;
}
dispatch
({
type
:
'liveclass/saveLive'
,
payload
:
{
...
...
@@ -138,7 +142,8 @@ class AddCrmForm extends React.Component {
};
return
(
<
div
className
=
{
pageStyle
.
container
}
>
<
div
className
=
{
pageStyle
.
topTip
}
>
查看教程
<
/div
>
{
/* eslint-disable-next-line react/jsx-no-target-blank */
}
<
a
className
=
{
pageStyle
.
topTip
}
href
=
"https://w.url.cn/s/APP4rb7"
target
=
"_blank"
>
查看教程
<
/a
>
<
div
className
=
{
pageStyle
.
headerWrap
}
>
<
div
className
=
{
pageStyle
.
commonTitle
}
><
span
className
=
{
pageStyle
.
line
}
/>基本信息</
div
>
<
Form
labelAlign
=
"left"
onSubmit
=
{
this
.
save
}
>
...
...
@@ -205,7 +210,7 @@ class AddCrmForm extends React.Component {
<
div
className
=
{
pageStyle
.
imgCase
}
onClick
=
{
this
.
lookCase
}
>
<
span
>
查看示例
<
/span
>
<
div
className
=
{
pageStyle
.
caseWrap
}
>
<
img
src
=
"https://static-resource.xiaoeknow.com/b_static/course_manage/courseListResource/images/video_push.jpg?428ddd1727e2ef7dcad0112b98b0e453&app_id=appnsHaHvXv8409"
alt
=
""
/>
<
img
src
=
{
`
${
__IMGCDN__
}
liveclass/banner.png`
}
alt
=
""
/>
<
/div
>
<
/div
>
<
/div
>
...
...
@@ -235,7 +240,6 @@ class AddCrmForm extends React.Component {
{
getFieldDecorator
(
'secret'
,
{
initialValue
:
addLiveObj
.
secret
,
rules
:
[
{
required
:
true
,
message
:
'密码不能为空'
},
{
message
:
'请输入正整数'
,
pattern
:
new
RegExp
(
/^
[
0-9
]\d
*$/
,
'g'
),
...
...
src/pages/liveclass/AddLive.less
View file @
08cf0400
...
...
@@ -11,6 +11,7 @@
font-weight:400;
color:rgba(33,148,255,1);
padding-bottom: 20px;
display: block;
}
.headerWrap {
.commonTitle {
...
...
src/pages/liveclass/DownloadModal.js
View file @
08cf0400
...
...
@@ -41,7 +41,7 @@ class DownloadModal extends React.Component {
downLoadApp
=
(
type
)
=>
{
const
a
=
document
.
createElement
(
'a'
);
// 生成一个a元素
const
event
=
new
MouseEvent
(
'click'
);
// 创建一个单击事件
const
url
=
(
type
==
'windows'
?
'https://
xiaoetong-1252524126.file.myqcloud.com/obs-download/OBS-Studio-23.0.1-Full-Installer-x86.exe'
:
'https://xiaoetong-1252524126.file.myqcloud.com/obs-download/OBS-Studio-23.0.1-Full-Installer-x86.exe
'
);
const
url
=
(
type
==
'windows'
?
'https://
cdn.s.shangjiadao.cn/clock/software/OBS-Studio-23.0.1-Full-Installer-x86.exe'
:
'https://cdn.s.shangjiadao.cn/clock/software/obs-mac-23.2.1-installer.pkg
'
);
a
.
href
=
url
;
// 将生成的URL设置为a.href属性
a
.
dispatchEvent
(
event
);
// 触发a的单击事件
}
...
...
@@ -58,7 +58,7 @@ class DownloadModal extends React.Component {
onCancel
=
{
this
.
close
}
maskClosable
=
{
false
}
zIndex
=
{
110
}
width
=
{
80
0
}
width
=
{
74
0
}
bodyStyle
=
{{
borderRadius
:
8
}}
footer
=
{
<
div
className
=
{
pageStyle
.
footerTip
}
>
...
...
@@ -68,7 +68,8 @@ class DownloadModal extends React.Component {
>
<
div
className
=
{
pageStyle
.
wrap
}
>
<
div
className
=
{
pageStyle
.
title
}
>
直播间创建成功,快去
OBS
直播客户端开始学员讲课吧
<
/div
>
<
div
className
=
{
pageStyle
.
titleTip
}
>
说明:
OBS
是讲师进行直播推流使用的第三方软件,助教可以配合网页
/
h5
进行直播评论互动,详情操作
查看
<
span
>
OBS
直播使用教程
<
/span></
div
>
{
/* eslint-disable-next-line react/jsx-no-target-blank */
}
<
div
className
=
{
pageStyle
.
titleTip
}
>
说明:
OBS
是讲师进行直播推流使用的第三方软件,助教可以配合网页
/
h5
进行直播评论互动,详情操作
查看
<
a
className
=
{
pageStyle
.
dowTip
}
href
=
"https://w.url.cn/s/APP4rb7"
target
=
"_blank"
>
OBS
直播使用教程
<
/a></
div
>
<
div
className
=
{
pageStyle
.
stepOne
}
>
<
span
>
1
<
/span>OBS推
流
<
/div
>
...
...
@@ -109,7 +110,7 @@ class DownloadModal extends React.Component {
<
div
className
=
{
pageStyle
.
copyButton
}
data
-
clipboard
-
target
=
"#copy3"
id
=
"btnCopyLink3"
>
复制
<
/div
>
<
/div
>
<
/div
>
<
p
className
=
{
pageStyle
.
webTip
}
>
复制链接在网页直接打开
<
/p
>
<
p
className
=
{
pageStyle
.
webTip
}
>
复制链接在网页直接打开
<
/p
>
<
/div
>
<
/Modal
>
...
...
src/pages/liveclass/DownloadModal.less
View file @
08cf0400
...
...
@@ -29,6 +29,10 @@
color:rgba(128,128,128,1);
text-align: center;
}
.dowTip {
color: #2A75ED;
cursor: pointer;
}
}
}
.stepOne {
...
...
src/pages/liveclass/components/QrcodeShow.js
View file @
08cf0400
...
...
@@ -20,7 +20,6 @@ class QrcodeShow extends React.Component {
}
download
=
()
=>
{
const
{
previewQrcode
,
downloadTitle
}
=
this
.
props
;
const
Qr
=
document
.
getElementById
(
'qrid'
);
const
image
=
new
Image
();
image
.
src
=
Qr
.
toDataURL
(
'image/png'
);
...
...
src/pages/liveclass/components/QrcodeShow.less
View file @
08cf0400
...
...
@@ -79,6 +79,8 @@
text-align: center;
padding: 20px 0;
cursor: pointer;
width: 190px;
margin: 0 auto;
}
.copyWrap {
display: -webkit-flex;
...
...
src/pages/liveclass/index.js
View file @
08cf0400
...
...
@@ -252,6 +252,7 @@ class LiveClass extends React.Component {
payload
:
{
lookVideoShow
:
true
,
lookVideoUrl
:
record
.
replay_url
.
url
,
lookVideoPoster
:
record
.
cover
,
},
});
}
...
...
@@ -371,7 +372,8 @@ class LiveClass extends React.Component {
<
div
className
=
{
pageStyle
.
container
}
>
<
div
className
=
{
pageStyle
.
headerbox
}
>
<
Button
size
=
"small"
style
=
{{
marginRight
:
20
}}
type
=
"primary"
onClick
=
{
this
.
createLive
}
>
创建直播
<
/Button
>
<
span
className
=
{
pageStyle
.
headerbtn
}
>
查看直播教程
<
/span
>
{
/* eslint-disable-next-line react/jsx-no-target-blank */
}
<
a
className
=
{
pageStyle
.
headerbtn
}
href
=
"https://w.url.cn/s/APP4rb7"
target
=
"_blank"
>
查看直播教程
<
/a
>
<
/div
>
<
div
className
=
{
pageStyle
.
searchbox
}
>
<
Row
...
...
@@ -438,7 +440,6 @@ class LiveClass extends React.Component {
visible
=
{
downloadVisible
}
close
=
{
this
.
closeDownload
}
liveUrlData
=
{
liveUrlData
}
previewQrcode
=
{
previewQrcode
}
/
>
<
QrcodeShow
previewQrcodeShow
=
{
previewQrcodeShow
}
...
...
@@ -451,6 +452,7 @@ class LiveClass extends React.Component {
<
VideoPlay
src
=
{
lookVideoUrl
}
closeVideoPlay
=
{
this
.
closeVideoPlay
}
poster
=
{
lookVideoPoster
}
/
>
}
<
/div
>
...
...
@@ -473,6 +475,7 @@ function mapStateToProps(state) {
previewQrcode
,
lookVideoShow
,
lookVideoUrl
,
lookVideoPoster
,
}
=
state
.
liveclass
;
const
{
guideStep
,
...
...
@@ -496,6 +499,7 @@ function mapStateToProps(state) {
previewQrcode
,
lookVideoShow
,
lookVideoUrl
,
lookVideoPoster
,
};
}
export
default
connect
(
mapStateToProps
)(
LiveClassForm
);
...
...
src/router.js
View file @
08cf0400
...
...
@@ -370,6 +370,7 @@ function RouterConfig({ history }) {
render
=
{()
=>
(
<
OuterPage
>
<
Switch
>
<
Route
path
=
"/erp/deploySchool/:id"
exact
component
=
{
DeploySchool
}
/
>
<
Route
path
=
"/erp/joinschooladd"
exact
component
=
{
JoinSchoolAdd
}
/
>
<
Route
path
=
"/erp/schoollist"
exact
component
=
{
SchoolList
}
/
>
<
Route
path
=
"/erp/schooladd"
exact
component
=
{
SchoolAdd
}
/
>
...
...
@@ -384,7 +385,6 @@ function RouterConfig({ history }) {
<
Route
path
=
"/login"
exact
component
=
{
Login
}
/
>
<
Route
path
=
"/register"
exact
component
=
{
NewRegister
}
/
>
<
Route
path
=
"/rechargedesc"
exact
component
=
{
RechargeDesc
}
/
>
<
Route
path
=
"/deploySchool/:id"
exact
component
=
{
DeploySchool
}
/
>
<
Route
path
=
"/404"
render
=
{()
=>
(
<
Errorpage
/>
)}
/
>
<
Route
component
=
{
Errorpage
}
/
>
<
/Switch
>
...
...
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