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
d834f514
Commit
d834f514
authored
Oct 11, 2019
by
baixian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
0328ee98
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
7 deletions
+8
-7
createtheme.js
src/models/createtheme.js
+0
-5
ThemeEditor.js
src/pages/newtheme/ThemeEditor.js
+1
-1
index.less
src/pages/newtheme/calendarclock/index.less
+3
-0
index.js
src/pages/newtheme/jobclock/index.js
+1
-1
index.less
src/pages/newtheme/jobclock/index.less
+3
-0
No files found.
src/models/createtheme.js
View file @
d834f514
...
...
@@ -17,7 +17,6 @@ import * as themeAjax from '../services/createtheme';
import
*
as
classMgtAjax
from
'../services/classmgt'
;
import
*
as
uploader
from
'../services/uploader'
;
import
{
calendar
}
from
'../utils/calendar'
;
import
*
as
goodsAjax
from
'../services/integral'
;
export
default
{
namespace
:
'createtheme'
,
state
:
{
...
...
@@ -437,7 +436,6 @@ export default {
const
{
unClockLoading
,
stepNumber
,
emigratedObj
,
}
=
yield
select
(
state
=>
state
.
createtheme
);
console
.
log
(
emigratedObj
,
'emigratedObj'
);
if
(
unClockLoading
)
{
return
;
}
...
...
@@ -466,7 +464,6 @@ export default {
id
:
emigratedObj
.
unlock_mode_id
,
...
emigratedObj
,
};
console
.
log
(
newParams
,
'newParams'
);
const
postFunction
=
(
newParams
.
id
!=
undefined
)
&&
newParams
.
id
!==
0
?
themeAjax
.
EditEmigrated
:
themeAjax
.
addEmigrated
;
const
data
=
yield
call
(
postFunction
,
Object
.
assign
(
newParams
,
{
title
,
...
...
@@ -567,8 +564,6 @@ export default {
if
(
newParams
.
school
)
{
delete
newParams
.
school
;
}
console
.
log
(
newParams
,
'newParams'
);
console
.
log
(
emigratedObj
,
'emigratedObj'
);
const
loadmessage
=
message
.
loading
(
'保存中...'
,
0
);
const
postFunction
=
(
newParams
.
id
!=
undefined
)
&&
newParams
.
id
!==
0
?
themeAjax
.
editTheme
:
themeAjax
.
addTheme
;
const
data
=
yield
call
(
postFunction
,
Object
.
assign
(
newParams
,
{
...
...
src/pages/newtheme/ThemeEditor.js
View file @
d834f514
...
...
@@ -55,7 +55,7 @@ class ThemeEditor extends React.Component {
case
'text'
:
return
(
<
div
className
=
{
pageStyle
.
textWrap
}
>
<
TextArea
autosize
=
{{
minRows
:
4
,
maxRows
:
10
}}
value
=
{
item
.
value
}
onChange
=
{
e
=>
editorChange
(
e
,
index
)}
placeholder
=
"请输入
内容
"
style
=
{{
width
:
560
}}
maxLength
=
{
500
}
/
>
<
TextArea
autosize
=
{{
minRows
:
4
,
maxRows
:
10
}}
value
=
{
item
.
value
}
onChange
=
{
e
=>
editorChange
(
e
,
index
)}
placeholder
=
"请输入
打卡主题的具体要求,如:演唱歌曲《小小少年》 演唱歌曲《小小少年》,具体要求 1.跟随伴奏唱一段副歌 2.视频录下唱歌过程 3.上传歌唱视频打卡成功 如果有该歌曲示例视频,你可以点击上传视频,供学员参考。
"
style
=
{{
width
:
560
}}
maxLength
=
{
500
}
/
>
<
div
className
=
{
pageStyle
.
sizeNumber
}
>
{
item
.
value
.
length
}
/500</
div
>
<
div
className
=
{
pageStyle
.
toolList
}
>
{
index
===
0
&&
<
div
aria
-
disabled
=
"true"
className
=
{
pageStyle
.
noup
}
><
img
src
=
{
upImg
}
alt
=
""
/>
<
/div>
}
...
...
src/pages/newtheme/calendarclock/index.less
View file @
d834f514
...
...
@@ -2,6 +2,9 @@
background-color: #fff;
padding: 20px;
position: relative;
min-width: 1200px;
border-radius: 2px;
overflow-y: hidden;
}
.title {
font-size:16px;
...
...
src/pages/newtheme/jobclock/index.js
View file @
d834f514
...
...
@@ -232,7 +232,7 @@ class JobClockForm extends React.Component {
},
};
const
selectBefore
=
(
<
div
>
{
jobParams
.
title
?
jobParams
.
title
.
length
:
title
.
length
||
0
}
/20</
div
>
<
div
>
{
jobParams
.
title
?
jobParams
.
title
.
length
:
title
.
length
||
0
}
/20</
div
>
);
const
dateFormat
=
'YYYY/MM/DD HH:mm'
;
return
(
...
...
src/pages/newtheme/jobclock/index.less
View file @
d834f514
...
...
@@ -2,6 +2,9 @@
background-color: #fff;
padding: 20px;
position: relative;
min-width: 1200px;
border-radius: 2px;
overflow-y: hidden;
}
.title {
font-size:16px;
...
...
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