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
e842c26c
Commit
e842c26c
authored
Apr 01, 2020
by
baixian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打卡完成
parent
afea53ae
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
72 additions
and
44 deletions
+72
-44
index.html
index.html
+1
-1
clockmgt.js
src/models/clockmgt.js
+0
-1
createtheme.js
src/models/createtheme.js
+41
-30
newthemelist.js
src/models/newthemelist.js
+3
-3
uploader.js
src/models/uploader.js
+0
-1
index.js
src/pages/newtheme/calendarclock/index.js
+3
-3
Unclock.js
src/pages/newtheme/customsclock/Unclock.js
+1
-1
detail.js
src/pages/newtheme/customsclock/detail.js
+20
-0
index.js
src/pages/newtheme/jobclock/index.js
+3
-4
No files found.
index.html
View file @
e842c26c
...
...
@@ -18,5 +18,5 @@
</head>
<body>
<div
id=
"root"
></div>
<script
type=
"text/javascript"
src=
"/dist/main.8
8d533
.js"
></script></body>
<script
type=
"text/javascript"
src=
"/dist/main.8
c8aaa
.js"
></script></body>
</html>
\ No newline at end of file
src/models/clockmgt.js
View file @
e842c26c
...
...
@@ -295,7 +295,6 @@ export default {
themetype
,
}
=
yield
select
(
state
=>
state
.
clockmgt
);
const
{
type
,
callBack
}
=
payload
;
console
.
log
(
singleClock
,
'singleClock'
);
const
emptyIndex
=
copyTempArr
.
findIndex
(
ele
=>
ele
.
title
.
trim
()
==
''
);
if
(
emptyIndex
!=
-
1
)
{
message
.
warn
(
`第
${
emptyIndex
+
1
}
个模板名称不能为空`
,
1
);
...
...
src/models/createtheme.js
View file @
e842c26c
...
...
@@ -355,12 +355,6 @@ export default {
...
calendarParams
,
};
}
console
.
log
(
jobParams
,
'jobParams'
);
console
.
log
(
calendarParams
,
'calendarParams'
);
if
(
title
.
length
>
20
)
{
message
.
error
(
'标题长度不能超过20个字!'
,
1
);
return
;
}
if
(
themeAdInfo
.
id
==
0
)
{
message
.
error
(
'请选择营销页!'
,
1
);
return
;
...
...
@@ -500,40 +494,57 @@ export default {
callBack
();
}
if
((
newParams
.
id
!=
undefined
)
&&
newParams
.
id
!==
0
)
{
//
yield delay(500);
yield
delay
(
500
);
yield
put
(
routerRedux
.
goBack
());
// yield put({
// type: 'thememgt/getCode',
// payload: {
// record: {
// class_id: data.data.class_id,
// id: data.data.id,
// title: data.data.title,
// subject_type: Number(data.data.subject_type),
// },
// },
// });
yield
put
({
type
:
'newthemelist/updateState'
,
payload
:
{
clockListParams
:
{
title
:
''
,
page
:
1
,
perPage
:
10
,
subject_type
:
data
.
data
.
subject_type
,
},
},
});
yield
put
({
type
:
'newthemelist/getCode'
,
payload
:
{
record
:
{
school_id
:
data
.
data
.
school_id
,
id
:
data
.
data
.
id
,
title
:
data
.
data
.
title
,
subject_type
:
Number
(
data
.
data
.
subject_type
),
},
},
});
}
else
{
yield
delay
(
500
);
yield
put
(
routerRedux
.
push
({
pathname
:
'/sjd/clockList'
,
}));
yield
put
({
type
:
'updateState'
,
type
:
'newthemelist/updateState'
,
payload
:
{
clockListParams
:
{
title
:
''
,
page
:
1
,
perPage
:
10
,
subject_type
:
data
.
data
.
subject_type
,
},
},
});
yield
put
({
type
:
'newthemelist/getCode'
,
payload
:
{
record
:
{
school_id
:
data
.
data
.
school_id
,
id
:
data
.
data
.
id
,
title
:
data
.
data
.
title
,
subject_type
:
Number
(
data
.
data
.
subject_type
),
},
},
});
// yield put({
// type: 'thememgt/getCode',
// payload: {
// record: {
// class_id: data.data.class_id,
// id: data.data.id,
// title: data.data.title,
// subject_type: Number(data.data.subject_type),
// },
// },
// });
}
}
else
{
yield
put
({
...
...
src/models/newthemelist.js
View file @
e842c26c
...
...
@@ -149,21 +149,21 @@ export default {
switch
(
record
.
subject_type
)
{
case
1
:
params
=
{
scene
:
`
i=
${
record
.
class_id
}
&t=
${
record
.
id
}
&w=
${
record
.
school_id
}
`
,
scene
:
`
t=
${
record
.
id
}
&s=
${
record
.
school_id
}
&w=0
`
,
page
:
'src/pages/themeindex/index'
,
width
:
430
,
};
break
;
case
2
:
params
=
{
scene
:
`
i=
${
record
.
class_id
}
&t=
${
record
.
id
}
&w=
${
record
.
school_id
}
`
,
scene
:
`
t=
${
record
.
id
}
&s=
${
record
.
school_id
}
&w=0
`
,
page
:
'src/pages/calendarthemeindex/index'
,
width
:
430
,
};
break
;
case
3
:
params
=
{
scene
:
`
i=
${
record
.
class_id
}
&t=
${
record
.
id
}
`
,
scene
:
`
t=
${
record
.
id
}
&s=
${
record
.
school_id
}
&w=0
`
,
page
:
'src/pages/sharemoretheme/index'
,
width
:
430
,
};
...
...
src/models/uploader.js
View file @
e842c26c
...
...
@@ -137,7 +137,6 @@ export default {
const
file
=
files
.
files
?
files
.
files
[
0
]
:
null
;
uploaderLoading
();
const
filename
=
`
${
signature
.
dir
}${
getRandomFilename
(
file
.
name
)}
`
;
console
.
log
(
filename
,
'filename'
);
const
params
=
{
key
:
filename
,
policy
:
signature
.
policy
,
...
...
src/pages/newtheme/calendarclock/index.js
View file @
e842c26c
...
...
@@ -468,7 +468,7 @@ class CalendarClockForm extends React.Component {
},
};
const
selectBefore
=
(
<
div
>
{
calendarParams
.
title
.
length
+
textLength
||
0
}
/
2
0</
div
>
<
div
>
{
calendarParams
.
title
.
length
+
textLength
||
0
}
/
4
0</
div
>
);
const
dateFormat
=
'YYYY/MM/DD HH:mm'
;
return
(
...
...
@@ -485,7 +485,7 @@ class CalendarClockForm extends React.Component {
},
],
})(
<
Input
maxLength
=
{
2
0
}
onChange
=
{
e
=>
this
.
titleChange
(
e
)}
addonAfter
=
{
selectBefore
}
placeholder
=
"请输入标题"
style
=
{{
width
:
435
}}
/>
,
<
Input
maxLength
=
{
4
0
}
onChange
=
{
e
=>
this
.
titleChange
(
e
)}
addonAfter
=
{
selectBefore
}
placeholder
=
"请输入标题"
style
=
{{
width
:
435
}}
/>
,
)}
<
/FormItem
>
{
getFieldDecorator
(
'subject_type'
,
{
initialValue
:
2
})(
<
Input
type
=
"hidden"
/>
)}
...
...
@@ -592,7 +592,7 @@ class CalendarClockForm extends React.Component {
<
/FormItem
>
<
Divider
/>
<
div
className
=
{
pageStyle
.
title
}
>
打卡营销页
<
/div
>
<
FormItem
{...
formItemModalLineLayout
}
label
=
"打卡营销页"
style
=
{{
marginBottom
:
0
}}
>
<
FormItem
required
{...
formItemModalLineLayout
}
label
=
"打卡营销页"
style
=
{{
marginBottom
:
0
}}
>
<
span
onClick
=
{
this
.
handleClickMarketing
}
>
{
themeAdInfo
.
title
?
themeAdInfo
.
title
:
'请选择营销页'
}
<
Icon
type
=
"right"
/><
/span
>
<
/FormItem
>
<
p
className
=
{
pageStyle
.
markeTip
}
>
可在学生加入打卡前展示
,
此功能可收集有意向学生的联系方式
<
span
>
了解详情
<
/span></
p
>
...
...
src/pages/newtheme/customsclock/Unclock.js
View file @
e842c26c
...
...
@@ -585,7 +585,7 @@ class UnClockForm extends React.Component {
)}
<
span
className
=
"ant-form-text"
>
次
<
/span
>
<
/FormItem
>
<
FormItem
{...
formItemModalLineLayout
}
label
=
"打卡营销页"
style
=
{{
marginBottom
:
0
}}
>
<
FormItem
required
{...
formItemModalLineLayout
}
label
=
"打卡营销页"
>
<
span
onClick
=
{
this
.
handleClickMarketing
}
>
{
themeAdInfo
.
title
?
themeAdInfo
.
title
:
'请选择营销页'
}
<
Icon
type
=
"right"
/><
/span
>
<
/FormItem
>
<
FormItem
{...
formItemModaltypeLayout
}
label
=
"参与打卡方式"
style
=
{{
marginBottom
:
0
}}
>
...
...
src/pages/newtheme/customsclock/detail.js
View file @
e842c26c
...
...
@@ -161,6 +161,19 @@ class SuccessStoreForm extends React.Component {
},
});
}
savePublish
=
(
record
)
=>
{
const
{
dispatch
}
=
this
.
props
;
if
(
record
.
has_subjects_count
==
0
)
{
message
.
warning
(
'请先编辑关卡内容再发布噢~'
,
0.5
);
return
;
}
dispatch
({
type
:
'newthemelist/savePublish'
,
payload
:
{
record
,
},
});
}
render
()
{
const
{
form
:
{
getFieldDecorator
,
getFieldValue
},
...
...
@@ -319,6 +332,13 @@ class SuccessStoreForm extends React.Component {
<
Divider
type
=
"vertical"
/>
<
span
className
=
"hreflink"
onClick
=
{()
=>
this
.
editStore
(
emigratedObj
.
id
)}
>
编辑
<
/span
>
<
Divider
type
=
"vertical"
/>
{
emigratedObj
.
status
==
1
&&
<
span
>
<
span
className
=
"hreflink"
onClick
=
{()
=>
this
.
savePublish
(
emigratedObj
)}
>
发布
<
/span
>
<
Divider
type
=
"vertical"
/>
<
/span
>
}
<
span
className
=
"hreflink"
onClick
=
{()
=>
this
.
lookClockMgt
(
emigratedObj
)}
>
分享
<
/span
>
<
/div
>
<
/div
>
...
...
src/pages/newtheme/jobclock/index.js
View file @
e842c26c
...
...
@@ -52,7 +52,6 @@ class JobClockForm extends React.Component {
e
.
preventDefault
();
this
.
props
.
form
.
validateFields
((
err
,
values
)
=>
{
if
(
!
err
)
{
console
.
log
(
values
,
'params'
);
const
{
is_cheat
,
is_encrypt
,
...
...
@@ -421,7 +420,7 @@ class JobClockForm extends React.Component {
lineHeight
:
'40px'
,
};
const
selectBefore
=
(
<
div
>
{
jobParams
.
title
.
length
+
textLength
}
/
2
0</
div
>
<
div
>
{
jobParams
.
title
.
length
+
textLength
}
/
4
0</
div
>
);
const
dateFormat
=
'YYYY/MM/DD HH:mm'
;
return
(
...
...
@@ -438,7 +437,7 @@ class JobClockForm extends React.Component {
},
],
})(
<
Input
maxLength
=
{
2
0
}
onChange
=
{
e
=>
this
.
titleChange
(
e
)}
addonAfter
=
{
selectBefore
}
placeholder
=
"请输入标题"
style
=
{{
width
:
435
}}
/>
,
<
Input
maxLength
=
{
4
0
}
onChange
=
{
e
=>
this
.
titleChange
(
e
)}
addonAfter
=
{
selectBefore
}
placeholder
=
"请输入标题"
style
=
{{
width
:
435
}}
/>
,
)}
<
/FormItem
>
{
getFieldDecorator
(
'subject_type'
,
{
initialValue
:
1
})(
<
Input
type
=
"hidden"
/>
)}
...
...
@@ -492,7 +491,7 @@ class JobClockForm extends React.Component {
<
/div
>
<
Divider
/>
<
div
className
=
{
pageStyle
.
title
}
>
打卡营销页
<
/div
>
<
FormItem
{...
formItemModalLineLayout
}
label
=
"打卡营销页"
style
=
{{
marginBottom
:
0
}}
>
<
FormItem
{...
formItemModalLineLayout
}
required
label
=
"打卡营销页"
style
=
{{
marginBottom
:
0
}}
>
<
span
onClick
=
{
this
.
handleClickMarketing
}
>
{
themeAdInfo
.
title
?
themeAdInfo
.
title
:
'请选择营销页'
}
<
Icon
type
=
"right"
/><
/span
>
<
/FormItem
>
<
p
className
=
{
pageStyle
.
markeTip
}
>
可在学生加入打卡前展示
,
此功能可收集有意向学生的联系方式
<
span
>
了解详情
<
/span></
p
>
...
...
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