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
dea75c4f
Commit
dea75c4f
authored
Oct 24, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
9477c64f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
17 deletions
+20
-17
SjdHeader.js
src/components/SjdHeader.js
+2
-2
ChangeCourse.js
src/pages/classdetail/ChangeCourse.js
+1
-1
clockitem.js
src/pages/clockmgt/clockitem.js
+5
-5
commenteditorbox.js
src/pages/clockmgt/commenteditorbox.js
+7
-7
index.js
src/pages/clockmgt/index.js
+5
-2
No files found.
src/components/SjdHeader.js
View file @
dea75c4f
...
...
@@ -64,10 +64,10 @@ class SjdMenu extends React.Component {
const
menu
=
(
<
Menu
onClick
=
{
this
.
signOut
}
>
<
Menu
.
Item
key
=
"0"
>
<
a
href
=
"javascript:;"
>
切换校区
<
/a
>
<
span
>
切换校区
<
/span
>
<
/Menu.Item
>
<
Menu
.
Item
key
=
"1"
>
<
a
href
=
"javascript:;"
>
退出
<
/a
>
<
span
>
退出
<
/span
>
<
/Menu.Item
>
<
/Menu
>
);
...
...
src/pages/classdetail/ChangeCourse.js
View file @
dea75c4f
...
...
@@ -80,7 +80,7 @@ class ChangeCourse extends React.Component {
key
:
'c'
,
render
:
(
text
,
record
,
index
)
=>
{
return
(
<
a
className
=
{
pageStyle
.
alink
}
href
=
"javascript:;"
onClick
=
{()
=>
changeStudentSchedule
(
record
)}
>
调课
<
/a
>
<
span
className
=
"hreflink"
onClick
=
{()
=>
changeStudentSchedule
(
record
)}
>
调课
<
/span
>
);
},
},
...
...
src/pages/clockmgt/clockitem.js
View file @
dea75c4f
...
...
@@ -73,7 +73,7 @@ class ClockItem extends React.Component {
<
div
className
=
{
pageStyle
.
imgsbox
}
>
{
JSON
.
parse
(
clock
.
video
).
filter
(
ele
=>
ele
.
type
==
'image'
).
length
>
0
&&
JSON
.
parse
(
clock
.
video
).
filter
(
ele
=>
ele
.
type
==
'image'
).
map
((
img
,
index
)
=>
{
return
<
img
className
=
{
pageStyle
.
imgitem
}
onClick
=
{()
=>
imgPreview
(
index
,
JSON
.
parse
(
clock
.
video
).
filter
(
ele
=>
ele
.
type
==
'image'
))}
src
=
{
imagify
(
img
.
src
,
'image/resize,w_80/format,jpg/crop,w_80,h_80,g_center'
)}
alt
=
"汪雪来"
/>
;
return
<
img
key
=
{
img
.
src
}
className
=
{
pageStyle
.
imgitem
}
onClick
=
{()
=>
imgPreview
(
index
,
JSON
.
parse
(
clock
.
video
).
filter
(
ele
=>
ele
.
type
==
'image'
))}
src
=
{
imagify
(
img
.
src
,
'image/resize,w_80/format,jpg/crop,w_80,h_80,g_center'
)}
alt
=
"汪雪来"
/>
;
})
}
<
/div
>
...
...
@@ -81,7 +81,7 @@ class ClockItem extends React.Component {
{
JSON
.
parse
(
clock
.
video
).
filter
(
ele
=>
ele
.
type
==
'video'
).
length
>
0
&&
JSON
.
parse
(
clock
.
video
).
filter
(
ele
=>
ele
.
type
==
'video'
).
map
((
video
)
=>
{
return
(
<
div
className
=
{
pageStyle
.
videoitem
}
onClick
=
{()
=>
playVideo
(
video
.
src
)}
>
<
div
key
=
{
video
.
src
}
className
=
{
pageStyle
.
videoitem
}
onClick
=
{()
=>
playVideo
(
video
.
src
)}
>
<
img
className
=
{
pageStyle
.
videoposter
}
src
=
{
videoPoster
(
video
.
src
,
'image/resize,w_320/format,jpg/quality,q_50'
)}
alt
=
"汪雪来"
/>
<
div
className
=
{
pageStyle
.
playbox
}
>
<
Icon
type
=
"caret-right"
/>
...
...
@@ -94,7 +94,7 @@ class ClockItem extends React.Component {
<
div
className
=
{
pageStyle
.
audiobox
}
>
{
JSON
.
parse
(
clock
.
audio
).
map
((
audio
)
=>
{
return
(
<
audio
className
=
{
pageStyle
.
audioitem
}
controls
id
=
{
audio
.
src
}
src
=
{
audioorigin
(
audio
.
src
)}
/
>
<
audio
key
=
{
audio
.
src
}
className
=
{
pageStyle
.
audioitem
}
controls
id
=
{
audio
.
src
}
src
=
{
audioorigin
(
audio
.
src
)}
/
>
);
})
}
...
...
@@ -135,7 +135,7 @@ class ClockItem extends React.Component {
{
clock
.
review
[
1
].
method
==
1
&&
<
div
className
=
{
pageStyle
.
newSmallScoreBox
}
>
{
clock
.
review
[
1
].
scores
.
map
(
ele
=>
(
<
div
className
=
{
pageStyle
.
newSmallScoreItem
}
>
{
ele
.
template
&&
ele
.
template
.
title
}
:
&
nbsp
;{
ele
.
number
/
5
}
<
/div
>
<
div
key
=
{
ele
.
id
}
className
=
{
pageStyle
.
newSmallScoreItem
}
>
{
ele
.
template
&&
ele
.
template
.
title
}
:
&
nbsp
;{
ele
.
number
/
5
}
<
/div
>
))}
<
/div
>
}
...
...
@@ -150,7 +150,7 @@ class ClockItem extends React.Component {
{
clock
.
review
[
1
].
img
&&
clock
.
review
[
1
].
img
.
length
>
0
&&
<
div
className
=
{
pageStyle
.
teacherimgbox
}
>
{
clock
.
review
[
1
].
img
.
map
((
ele
,
index
)
=>
(
<
div
>
<
div
key
=
{
ele
.
src
}
>
{
ele
.
type
==
'image'
&&
<
img
className
=
{
pageStyle
.
teacherimg
}
onClick
=
{()
=>
imgPreview
(
index
-
clock
.
review
[
1
].
img
.
filter
(
ele
=>
ele
.
type
==
'video'
).
length
,
clock
.
review
[
1
].
img
.
filter
(
ele
=>
ele
.
type
==
'image'
))}
src
=
{
imagify
(
ele
.
src
,
'image/resize,w_320/format,jpg/quality,q_50'
)}
alt
=
""
/>
}
...
...
src/pages/clockmgt/commenteditorbox.js
View file @
dea75c4f
...
...
@@ -95,7 +95,7 @@ class CommentEditorBox extends React.Component {
{
tempScoreArr
.
map
(
ele
=>
(
<
div
className
=
{
pageStyle
.
newstaritem
}
>
<
div
className
=
{
pageStyle
.
newstartitle
}
>
{
ele
.
title
.
split
(
''
).
map
(
word
=>
<
span
>
{
word
}
<
/span>
)
}
{
ele
.
title
.
split
(
''
).
map
(
(
word
,
index
)
=>
<
span
key
=
{
index
}
>
{
word
}
<
/span>
)
}
<
/div
>
<
Rate
allowClear
=
{
false
}
className
=
{
pageStyle
.
newstarrate
}
onChange
=
{
e
=>
smallScoreChange
(
e
,
ele
)}
allowHalf
value
=
{
ele
.
score
}
/><span style={{ paddingLeft: '10px' }}>{ele.score * 2}</
span
>
<
/div
>
...
...
@@ -106,7 +106,7 @@ class CommentEditorBox extends React.Component {
<
/div
>
<
/div
>
<
div
className
=
{
pageStyle
.
textareabox
}
>
<
TextArea
autoSize
max
l
ength
=
{
500
}
className
=
{
pageStyle
.
textareabox
}
value
=
{
commentParams
.
common
.
content
}
onChange
=
{
contentChange
}
style
=
{{
minHeight
:
'100px'
}}
/
>
<
TextArea
autoSize
max
L
ength
=
{
500
}
className
=
{
pageStyle
.
textareabox
}
value
=
{
commentParams
.
common
.
content
}
onChange
=
{
contentChange
}
style
=
{{
minHeight
:
'100px'
}}
/
>
<
div
className
=
{
pageStyle
.
wordcount
}
>
{
commentParams
.
common
.
content
.
length
}
/500</
div
>
<
/div
>
<
div
className
=
{
pageStyle
.
shortwordbox
}
>
...
...
@@ -118,11 +118,11 @@ class CommentEditorBox extends React.Component {
<
/div
>
<
div
className
=
{
pageStyle
.
shortwordList
}
>
{
oldWordsList
.
map
((
ele
,
index
)
=>
(
<
div
className
=
{
pageStyle
.
shortwordItem
}
onClick
=
{()
=>
pushShortWords
(
ele
)}
>
<
div
key
=
{
ele
.
id
}
className
=
{
pageStyle
.
shortwordItem
}
onClick
=
{()
=>
pushShortWords
(
ele
)}
>
{
index
+
1
}.{
ele
}
<
/div>
))
}
{
shortWordsList
.
map
((
ele
,
index
)
=>
(
<
div
className
=
{
pageStyle
.
shortwordItem
}
onClick
=
{()
=>
pushShortWords
(
ele
)}
>
<
div
key
=
{
ele
.
id
}
className
=
{
pageStyle
.
shortwordItem
}
onClick
=
{()
=>
pushShortWords
(
ele
)}
>
{
oldWordsList
.
length
+
index
+
1
}.{
ele
.
word
}
<
/div>
))
}
<
/div
>
...
...
@@ -130,7 +130,7 @@ class CommentEditorBox extends React.Component {
<
div
className
=
{
pageStyle
.
uploadimgbox
}
>
<
div
className
=
{
pageStyle
.
uploadimglist
}
>
{
commentParams
.
common
.
img
.
map
((
ele
,
index
)
=>
(
<
div
>
<
div
key
=
{
ele
.
src
}
>
{
ele
.
type
==
'image'
&&
<
div
className
=
{
pageStyle
.
uploadimgitem
}
>
<
img
alt
=
{
ele
.
src
}
onClick
=
{()
=>
imgPreview
(
index
-
commentParams
.
common
.
img
.
filter
(
ele
=>
ele
.
type
==
'video'
).
length
,
commentParams
.
common
.
img
.
filter
(
ele
=>
ele
.
type
==
'image'
))}
className
=
{
pageStyle
.
teacheruploadimg
}
src
=
{
imagify
(
ele
.
src
)}
/
>
...
...
@@ -172,7 +172,7 @@ class CommentEditorBox extends React.Component {
<
div
>
{
stampImgArr
.
map
((
ele
)
=>
{
return
(
<
img
alt
=
""
onClick
=
{()
=>
toSelectStamp
(
ele
)}
className
=
{
`
${
pageStyle
.
stampImg
}
${
ele
==
commentParams
.
common
.
flag
?
pageStyle
.
selectStamp
:
''
}
`
}
src
=
{
`https://cdn.img.shangjiadao.cn/source/images/dakav4/2b/commenteditor/stamp-img-
${
ele
}
.png`
}
/
>
<
img
key
=
{
ele
}
alt
=
""
onClick
=
{()
=>
toSelectStamp
(
ele
)}
className
=
{
`
${
pageStyle
.
stampImg
}
${
ele
==
commentParams
.
common
.
flag
?
pageStyle
.
selectStamp
:
''
}
`
}
src
=
{
`https://cdn.img.shangjiadao.cn/source/images/dakav4/2b/commenteditor/stamp-img-
${
ele
}
.png`
}
/
>
);
})}
<
/div
>
...
...
@@ -183,7 +183,7 @@ class CommentEditorBox extends React.Component {
{
privitecommentOpen
&&
<
div
>
<
div
className
=
{
pageStyle
.
textareabox
}
>
<
TextArea
max
l
ength
=
{
500
}
autoSize
value
=
{
commentParams
.
privite
.
content
}
className
=
{
pageStyle
.
textareabox
}
onChange
=
{
priviteContentChange
}
style
=
{{
minHeight
:
'100px'
}}
/
>
<
TextArea
max
L
ength
=
{
500
}
autoSize
value
=
{
commentParams
.
privite
.
content
}
className
=
{
pageStyle
.
textareabox
}
onChange
=
{
priviteContentChange
}
style
=
{{
minHeight
:
'100px'
}}
/
>
<
div
className
=
{
pageStyle
.
wordcount
}
>
{
commentParams
.
privite
.
content
.
length
}
/500</
div
>
<
/div
>
{((
commentParams
.
privite
.
audio
&&
commentParams
.
privite
.
audio
.
length
>
0
)
||
commentParams
.
privite
.
audio
.
src
)
&&
...
...
src/pages/clockmgt/index.js
View file @
dea75c4f
...
...
@@ -856,7 +856,7 @@ class ClockMgt extends React.Component {
<
Col
span
=
{
4
}
className
=
{
pageStyle
.
themelist
}
>
{
calendarDays
.
map
((
ele
,
index
)
=>
{
return
(
<
div
className
=
{
`
${
pageStyle
.
themeitem
}
${
selectId
==
ele
.
day
?
pageStyle
.
themeitemselected
:
''
}
`
}
onClick
=
{()
=>
this
.
calendarSelect
(
ele
)}
>
<
div
key
=
{
ele
.
day
}
className
=
{
`
${
pageStyle
.
themeitem
}
${
selectId
==
ele
.
day
?
pageStyle
.
themeitemselected
:
''
}
`
}
onClick
=
{()
=>
this
.
calendarSelect
(
ele
)}
>
<
div
className
=
{
pageStyle
.
themetitle
}
>
{
ele
.
day
}
<
/div
>
<
/div
>
);
...
...
@@ -868,7 +868,7 @@ class ClockMgt extends React.Component {
<
Col
span
=
{
4
}
className
=
{
pageStyle
.
themelist
}
>
{
unlockSubjectLocks
.
map
((
ele
,
index
)
=>
{
return
(
<
div
className
=
{
`
${
pageStyle
.
themeitem
}
${
selectId
==
ele
.
id
?
pageStyle
.
themeitemselected
:
''
}
`
}
onClick
=
{()
=>
this
.
unlockSubjectLocksSelect
(
ele
)}
>
<
div
key
=
{
ele
.
id
}
className
=
{
`
${
pageStyle
.
themeitem
}
${
selectId
==
ele
.
id
?
pageStyle
.
themeitemselected
:
''
}
`
}
onClick
=
{()
=>
this
.
unlockSubjectLocksSelect
(
ele
)}
>
<
div
className
=
{
pageStyle
.
themetitle
}
>
第
{
index
+
1
}
关
<
/div
>
<
div
className
=
{
pageStyle
.
themetitle
}
>
{
ele
.
title
}
<
/div
>
<
div
className
=
{
pageStyle
.
themeduration
}
>
{
ele
.
clock_count
}
人次打卡
<
/div
>
...
...
@@ -886,6 +886,7 @@ class ClockMgt extends React.Component {
<
div
className
=
{
pageStyle
.
clocklistbox
}
>
{
tabAClockList
.
map
(
clock
=>
(
<
ClockItem
key
=
{
clock
.
id
}
clock
=
{
clock
}
showcommentbtn
=
{()
=>
true
}
startComment
=
{
this
.
startSingleComment
}
...
...
@@ -968,6 +969,7 @@ class ClockMgt extends React.Component {
<
Checkbox
style
=
{{
marginRight
:
'15px'
}}
onChange
=
{
e
=>
this
.
singleClockChecked
(
clock
,
e
)}
checked
=
{
selectClockObj
[
clock
.
id
]}
className
=
{
pageStyle
.
clockcheckbox
}
/
>
<
ClockItem
clock
=
{
clock
}
key
=
{
clock
.
id
}
showcommentbtn
=
{
false
}
placeTop
=
{
this
.
placeTop
}
delClock
=
{
this
.
delClock
}
...
...
@@ -1016,6 +1018,7 @@ class ClockMgt extends React.Component {
{
tabCClockDetail
&&
<
ClockItem
clock
=
{
tabCClockDetail
}
key
=
{
tabCClockDetail
.
id
}
showcommentbtn
=
{
false
}
placeTop
=
{
this
.
placeTop
}
delClock
=
{
this
.
delClock
}
...
...
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