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
199a8137
Commit
199a8137
authored
Aug 26, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'最新代码提交'
parent
1b0439ce
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
276 additions
and
50 deletions
+276
-50
qrboxheader.png
image/qrboxheader.png
+0
-0
index.html
index.html
+29
-2
api.js
src/common/api.js
+1
-0
CallStudents.js
src/components/CallStudents.js
+14
-5
CallStudents.less
src/components/CallStudents.less
+3
-0
qrcodeShow.js
src/components/qrcodeShow.js
+46
-0
qrcodeShow.less
src/components/qrcodeShow.less
+73
-0
callstudents.js
src/models/callstudents.js
+24
-2
classdetail.js
src/models/classdetail.js
+4
-3
schoollist.js
src/models/schoollist.js
+11
-2
usersetting.js
src/models/usersetting.js
+6
-3
index.js
src/pages/classdetail/index.js
+1
-0
index.js
src/pages/schoollist/index.js
+10
-6
index.less
src/pages/schoollist/index.less
+5
-0
SelfJoin.js
src/pages/student/SelfJoin.js
+0
-17
index.js
src/pages/student/index.js
+30
-4
Renew.js
src/pages/studentinfo/Renew.js
+1
-1
BindWx.js
src/pages/usersetting/BindWx.js
+3
-2
index.js
src/pages/usersetting/index.js
+7
-3
common.js
src/services/common.js
+8
-0
No files found.
image/qrboxheader.png
0 → 100644
View file @
199a8137
6.23 KB
index.html
View file @
199a8137
<!DOCTYPE html>
<html
lang=
"en"
><head><meta
charset=
"UTF-8"
><title>
轻校
</title><link
rel=
"shortcut icon"
href=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/image/qxlogo4.png"
><meta
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0;"
name=
"viewport"
><meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<!-- Polyfills --><!--[if lt IE 10]>
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
轻校
</title>
<link
rel=
"shortcut icon"
href=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/image/qxlogo4.png"
>
<meta
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0;"
name=
"viewport"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<!-- Polyfills -->
<!--[if lt IE 10]>
<script src="js/console-polyfill.js"></script>
<![endif]-->
<script
charset=
"utf-8"
src=
"https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"
></script><link
href=
"/dist/index.css?1566791322338"
rel=
"stylesheet"
><script
src=
"/lib/vendor.dll.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/json3.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/polyfill.js?3"
charset=
"utf-8"
></script></head><body><div
id=
"root"
></div><script
src=
"/dist/index.js?1566791322338"
charset=
"utf-8"
></script></body></html>
\ No newline at end of file
<![endif]-->
<script
charset=
"utf-8"
src=
"https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"
></script>
<link
href=
"/dist/index.css?1566806592255"
rel=
"stylesheet"
>
<script
src=
"/lib/vendor.dll.js?3"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?3"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?3"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?3"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?3"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/json3.min.js?3"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?3"
charset=
"utf-8"
></script>
<script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/polyfill.js?3"
charset=
"utf-8"
></script>
</head>
<body>
<div
id=
"root"
></div>
<script
src=
"/dist/index.js?1566806592255"
charset=
"utf-8"
></script>
</body>
</html>
\ No newline at end of file
src/common/api.js
View file @
199a8137
...
...
@@ -24,6 +24,7 @@ export default {
courseTemplate
:
`
${
dakaapi
}
member/erp/course_template`
,
erpVerifyCode
:
`
${
dakaapi
}
common/sms`
,
erpVerifyCodeCheck
:
`
${
dakaapi
}
common/sms/check`
,
schoolLoginTime
:
`
${
dakaapi
}
member/erp/stronghold/login_time`
,
newLogin
:
{
loginPost
:
`
${
dakaapi
}
common/business_login`
,
},
...
...
src/components/CallStudents.js
View file @
199a8137
...
...
@@ -181,15 +181,17 @@ class CallStudentsForm extends React.Component {
type
:
'callstudents/updateState'
,
payload
:
{
bukeStudentModalShow
:
false
,
},
});
dispatch
({
type
:
'callstudents/updateState'
,
payload
:
{
selectedbukeClassKey
:
[],
selectedbukeClassRow
:
[],
},
});
// dispatch({
// type: 'callstudents/updateState',
// payload: {
// selectedbukeClassKey: [],
// selectedbukeClassRow: [],
// },
// });
}
addbukeStudent
=
()
=>
{
const
{
dispatch
}
=
this
.
props
;
...
...
@@ -250,6 +252,13 @@ class CallStudentsForm extends React.Component {
dispatch
({
type
:
'callstudents/sureaddLinShiStudent'
,
});
// dispatch({
// type: 'callstudents/updateState',
// payload: {
// selectedLinshiClassKey: [],
// selectedLinshiClassRow: [],
// },
// });
}
sureaddbukeStudent
=
()
=>
{
const
{
dispatch
}
=
this
.
props
;
...
...
src/components/CallStudents.less
View file @
199a8137
...
...
@@ -8,4 +8,7 @@
.hasSearch {
background-color: red;
color: #fff;
}
.endsearchcol {
margin-bottom: 24px;
}
\ No newline at end of file
src/components/qrcodeShow.js
0 → 100644
View file @
199a8137
import
React
from
'react'
;
import
{
Modal
,
Icon
}
from
'antd'
;
import
{
imagify
}
from
'../utils/index'
;
import
pageStyle
from
'./qrcodeShow.less'
;
class
qrcodeShow
extends
React
.
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
// date: '',
};
}
componentDidMount
()
{
// 挂载
}
componentWillUnmount
()
{
// 卸载
}
render
()
{
const
{
previewQrcodeShow
,
previewQrcode
,
closeQrcodeShow
,
title
,
}
=
this
.
props
;
return
(
<
div
className
=
{
pageStyle
.
container
}
style
=
{{
display
:
previewQrcodeShow
?
'flex'
:
'none'
}}
>
<
div
className
=
{
pageStyle
.
mask
}
><
/div
>
<
div
className
=
{
pageStyle
.
qrcodeBox
}
>
<
Icon
type
=
"close-circle"
className
=
{
pageStyle
.
closeIcon
}
onClick
=
{
closeQrcodeShow
}
/
>
<
div
className
=
{
pageStyle
.
boxHeader
}
>
<
div
className
=
{
pageStyle
.
headerTitle
}
>
{
title
}
<
/div
>
<
/div
>
<
div
className
=
{
pageStyle
.
qrCode
}
>
<
img
className
=
{
pageStyle
.
qrCodeImage
}
src
=
{
imagify
(
previewQrcode
)}
alt
=
""
/>
<
/div
>
<
/div
>
<
/div
>
);
}
}
qrcodeShow
.
propTypes
=
{
};
export
default
qrcodeShow
;
src/components/qrcodeShow.less
0 → 100644
View file @
199a8137
@import '../less/variables.less';
@keyframes qrCodefadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.container {
position: fixed;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 200;
display: flex;
align-items: center;
justify-content: center;
}
.mask {
position: absolute;
z-index: 1;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
}
.qrcodeBox {
width: 520px;
height: 320px;
border-radius: 10px;
background-color: #fff;
position: relative;
z-index: 2;
animation: qrCodefadeIn 0.1s linear 1 forwards;
// overflow: hidden;
}
.boxHeader {
height: 150px;
background-image: url('@{imagesroot}qrboxheader.png');
background-size: 100% 100%;
}
.headerTitle {
color: #fff;
text-align: center;
font-size: 18px;
line-height: 1;
padding-top: 34px;
}
.closeIcon {
position: absolute;
font-size: 30px;
color: rgba(255, 255, 255 ,0.7);
// right: 0;
// top: 0;
right: -15px;
z-index: 2;
top: -15px;
cursor: pointer;
&:hover {
transition: 0.2s;
color: rgba(255, 255, 255 ,1);
}
}
.qrCode {
text-align: center;
}
.qrCodeImage {
width: 160px;
height: 160px;
display: block;
margin: -10px auto 0;
}
\ No newline at end of file
src/models/callstudents.js
View file @
199a8137
import
{
routerRedux
}
from
'dva/router'
;
import
{
message
}
from
'antd'
;
import
{
message
,
Modal
}
from
'antd'
;
import
{
LocalStorage
,
SessionStorage
,
...
...
@@ -369,6 +369,15 @@ export default {
message
.
warn
(
'请选择临时学员'
);
return
;
}
for
(
let
i
=
0
,
_length
=
selectedLinshiClassRow
.
length
;
i
<
_length
;
i
++
)
{
const
currentStudent
=
selectedLinshiClassRow
[
i
];
if
(
callStudentOperateList
.
find
(
ele
=>
ele
.
student_id
==
currentStudent
.
id
))
{
Modal
.
warn
({
title
:
`学生【
${
currentStudent
.
name
}
】已经在点名列表中,不能重复添加,请将该学员取消勾选后后点击确定`
,
});
return
;
}
}
selectedLinshiClassRow
.
forEach
((
ele
)
=>
{
callStudentOperateList
.
push
({
student_id
:
ele
.
id
,
...
...
@@ -388,6 +397,8 @@ export default {
callStudentTotal
:
newcallStudentTotal
,
callStudentOperateList
:
[...
callStudentOperateList
],
linshiStudentModalShow
:
false
,
selectedLinshiClassKey
:
[],
selectedLinshiClassRow
:
[],
},
});
},
...
...
@@ -400,6 +411,15 @@ export default {
message
.
warn
(
'请选择临时学员'
);
return
;
}
for
(
let
i
=
0
,
_length
=
selectedbukeClassRow
.
length
;
i
<
_length
;
i
++
)
{
const
currentStudent
=
selectedbukeClassRow
[
i
];
if
(
callStudentOperateList
.
find
(
ele
=>
ele
.
student_id
==
currentStudent
.
student_id
))
{
Modal
.
warn
({
title
:
`学生【
${
currentStudent
.
formal_school_student
.
name
}
】已经在点名列表中,不能重复添加,请将该学员取消勾选后后点击确定`
,
});
return
;
}
}
selectedbukeClassRow
.
forEach
((
ele
)
=>
{
const
ELE
=
{};
ELE
.
student_id
=
ele
.
student_id
;
...
...
@@ -421,6 +441,8 @@ export default {
callStudentOperateList
:
[...
callStudentOperateList
],
linshiStudentModalShow
:
false
,
bukeStudentModalShow
:
false
,
selectedbukeClassKey
:
[],
selectedbukeClassRow
:
[],
},
});
},
...
...
@@ -556,7 +578,7 @@ export default {
const
{
sid
}
=
yield
select
(
state
=>
state
.
webapp
);
const
callStudent
=
[];
callStudentOperateList
.
forEach
((
ele
)
=>
{
callStudent
.
push
(
`
${
ele
.
student_id
}
,
${
ele
.
type
}
,
${
ele
.
student_type
}
,
${
ele
.
expend
}
,
${
encodeURIComponent
(
ele
.
remark
)}
,
${
ele
.
call_id
||
''
}
`
);
callStudent
.
push
(
`
${
ele
.
student_id
}
,
${
ele
.
type
}
,
${
ele
.
student_type
}
,
${
ele
.
expend
||
0
}
,
${
encodeURIComponent
(
ele
.
remark
)}
,
${
ele
.
call_id
||
''
}
`
);
});
const
loading
=
message
.
loading
(
'点名处理中...'
,
0
);
const
studentCallsDate
=
yield
call
(
schedulemgtAjax
.
studentCalls
,
{
...
...
src/models/classdetail.js
View file @
199a8137
...
...
@@ -194,7 +194,7 @@ export default {
studentChangeScheduleListQueryParams
,
studentChangeScheduleListTotal
,
classDetail
,
classId
,
studentChangeScheduleListLoading
,
datetime
,
}
=
yield
select
(
state
=>
state
.
classdetail
);
const
{
sid
}
=
yield
select
(
state
=>
state
.
webapp
);
const
{
params
,
action
}
=
payload
;
const
{
params
,
action
,
exclude_student_id
}
=
payload
;
let
loading
=
null
;
if
(
action
!=
'init'
)
{
if
(
studentChangeScheduleListLoading
)
{
...
...
@@ -213,8 +213,9 @@ export default {
school_id
:
sid
,
course_id
:
classDetail
.
course_id
,
exclude_class_id
:
params
.
exclude_class_id
||
classId
,
start_time
:
datetime
.
split
(
' '
)[
0
],
end_time
:
''
,
start_date
:
datetime
,
exclude_student_id
,
// end_time: '',
});
const
queryScheduleListData
=
yield
call
(
schedulemgtAjax
.
scheduleList
,
newScheduleListQueryParams
);
if
(
action
!=
'init'
)
{
...
...
src/models/schoollist.js
View file @
199a8137
...
...
@@ -10,6 +10,7 @@ import {
getRandomFilename
,
}
from
'../utils/index'
;
import
*
as
getschoollistajax
from
'../services/schoollist'
;
import
*
as
commonAjax
from
'../services/common'
;
import
errorcode
from
'../common/errorcode'
;
import
rootMap
from
'../common/constants'
;
export
default
{
...
...
@@ -57,7 +58,7 @@ export default {
}));
},
*
goSchoolSystem
({
payload
},
{
call
,
put
,
select
})
{
const
{
school
,
sid
}
=
payload
;
const
{
school
,
sid
,
type
}
=
payload
;
LocalStorage
.
setItem
(
'sid'
,
sid
||
school
.
id
);
LocalStorage
.
setItem
(
'role'
,
school
.
school_teacher
?
school
.
school_teacher
.
type
:
5
);
if
(
school
.
school_teacher
)
{
...
...
@@ -72,6 +73,10 @@ export default {
role
:
school
.
school_teacher
?
school
.
school_teacher
.
type
:
''
,
},
});
yield
call
(
commonAjax
.
schoolLoginTime
,
{
id
:
school
.
id
,
type
,
});
yield
put
(
routerRedux
.
push
({
pathname
:
'/sjd/indexstaic'
,
}));
...
...
@@ -127,7 +132,7 @@ export default {
}
},
*
goDepartmentSystem
({
payload
},
{
call
,
put
,
select
})
{
const
{
department
}
=
payload
;
const
{
department
,
type
}
=
payload
;
LocalStorage
.
setItem
(
'departmentid'
,
department
.
id
);
yield
put
({
type
:
'webapp/updateState'
,
...
...
@@ -135,6 +140,10 @@ export default {
departmentid
:
department
.
id
,
},
});
yield
call
(
commonAjax
.
schoolLoginTime
,
{
id
:
department
.
id
,
type
,
});
yield
put
(
routerRedux
.
push
({
pathname
:
'/sjd/headquarters/index'
,
}));
...
...
src/models/usersetting.js
View file @
199a8137
...
...
@@ -254,11 +254,13 @@ export default {
}
},
*
createQrcode
({
payload
},
{
call
,
put
,
select
})
{
const
{
mobile
,
callBack
}
=
payload
;
const
{
mobile
,
callBack
,
random_str
}
=
payload
;
const
loading
=
message
.
loading
(
'绑定小程序二维码生成中...'
);
const
qrcodeData
=
yield
call
(
commonAjax
.
generateQrcode
,
{
scene
:
mobile
,
page
:
'src/pages/
websiteindex/inde
x'
,
scene
:
`m=
${
mobile
}
&uid=
${
random_str
}
`
,
page
:
'src/pages/
signup/orgBindW
x'
,
});
setTimeout
(
loading
);
if
(
qrcodeData
.
code
==
200
)
{
message
.
success
(
'小程序码生成成功'
,
1
);
yield
put
({
...
...
@@ -303,6 +305,7 @@ export default {
type
:
'createQrcode'
,
payload
:
{
mobile
,
random_str
:
checkoutData
.
data
.
random_str
,
callBack
,
},
});
...
...
src/pages/classdetail/index.js
View file @
199a8137
...
...
@@ -649,6 +649,7 @@ class ClassDetailForm extends React.Component {
dispatch
({
type
:
'classdetail/querystudentChangeScheduleList'
,
payload
:
{
exclude_student_id
:
student
.
id
,
params
:
{
page
:
1
,
perPage
:
10
,
...
...
src/pages/schoollist/index.js
View file @
199a8137
...
...
@@ -30,6 +30,7 @@ class JoinSchoolAddForm extends React.Component {
type
:
'schoollist/goSchoolSystem'
,
payload
:
{
school
,
type
:
1
,
},
});
}
...
...
@@ -87,6 +88,7 @@ class JoinSchoolAddForm extends React.Component {
type
:
'schoollist/goDepartmentSystem'
,
payload
:
{
department
,
type
:
2
,
},
});
}
...
...
@@ -160,10 +162,12 @@ class JoinSchoolAddForm extends React.Component {
<
div
className
=
{
pageStyles
.
rolename
}
>
总部
<
/div
>
<
/Col
>
<
/Row
>
<
Row
className
=
{
pageStyles
.
logintimebox
}
type
=
"flex"
justify
=
"space-between"
align
=
"middle"
>
<
Col
span
=
{
12
}
className
=
{
pageStyles
.
timetitle
}
>
上次登录时间
:
<
/Col
>
<
Col
span
=
{
12
}
className
=
{
pageStyles
.
time
}
>
{
stronghold
.
last_login_time
}
<
/Col
>
<
/Row
>
{
stronghold
.
last_login_time
&&
<
Row
className
=
{
pageStyles
.
logintimebox
}
type
=
"flex"
justify
=
"space-between"
align
=
"middle"
>
<
Col
span
=
{
12
}
className
=
{
pageStyles
.
timetitle
}
>
上次登录时间
:
<
/Col
>
<
Col
span
=
{
12
}
className
=
{
pageStyles
.
time
}
>
{
stronghold
.
last_login_time
}
<
/Col
>
<
/Row
>
}
<
/div
>
<
/Col
>
}
...
...
@@ -173,7 +177,7 @@ class JoinSchoolAddForm extends React.Component {
<
div
className
=
{
pageStyles
.
schoolbox
}
>
<
Row
className
=
{
pageStyles
.
inviteschoolnamebox
}
type
=
"flex"
justify
=
"space-between"
align
=
"middle"
>
{
/* <Col span={24} className={pageStyles.inviteschoolname}>sadasdsadasdsa萨撒多撒sa萨达撒多撒多撒多撒</Col> */
}
<
Col
span
=
{
24
}
className
=
{
pageStyles
.
inviteschooltext
}
>
{
ele
.
school
.
title
}
邀请你成为校区老师,你是否愿意加入?
<
/Col
>
<
Col
span
=
{
24
}
className
=
{
pageStyles
.
inviteschooltext
}
>
<
span
className
=
{
pageStyles
.
invitefromname
}
>
{
ele
.
school
.
title
}
<
/span>
邀请你成为校区老师,你是否愿意加入?</
Col
>
<
/Row
>
<
Row
className
=
{
pageStyles
.
confirmbox
}
type
=
"flex"
justify
=
"space-between"
align
=
"middle"
>
<
Col
span
=
{
12
}
className
=
{
pageStyles
.
cancel
}
onClick
=
{()
=>
this
.
joinTeacheroperate
(
ele
,
3
)}
>
取消
<
/Col
>
...
...
@@ -189,7 +193,7 @@ class JoinSchoolAddForm extends React.Component {
<
div
className
=
{
pageStyles
.
schoolbox
}
>
<
Row
className
=
{
pageStyles
.
inviteschoolnamebox
}
type
=
"flex"
justify
=
"space-between"
align
=
"middle"
>
{
/* <Col span={24} className={pageStyles.inviteschoolname}>sadasdsadasdsa萨撒多撒sa萨达撒多撒多撒多撒</Col> */
}
<
Col
span
=
{
24
}
className
=
{
pageStyles
.
inviteschooltext
}
>
{
ele
.
title
}
总部
添加你到他的校区总部,你是否同意?
<
/Col
>
<
Col
span
=
{
24
}
className
=
{
pageStyles
.
inviteschooltext
}
>
<
span
className
=
{
pageStyles
.
invitefromname
}
>
{
ele
.
stronghold
&&
ele
.
stronghold
.
title
}
<
/span>
添加你到他的校区总部,你是否同意?</
Col
>
<
/Row
>
<
Row
className
=
{
pageStyles
.
confirmbox
}
type
=
"flex"
justify
=
"space-between"
align
=
"middle"
>
<
Col
span
=
{
12
}
className
=
{
pageStyles
.
cancel
}
onClick
=
{()
=>
this
.
joinDepartment
(
ele
,
3
)}
>
取消
<
/Col
>
...
...
src/pages/schoollist/index.less
View file @
199a8137
...
...
@@ -182,6 +182,11 @@
position: absolute;
right: 100px;
}
.invitefromname {
font-weight: 700;
padding-right: 5px;
color: #000;
}
@media (max-width: 768px){
.content {
padding: 23px 8px 33px;
...
...
src/pages/student/SelfJoin.js
View file @
199a8137
...
...
@@ -187,23 +187,6 @@ class SelfJoinForm extends React.Component {
const
{
getFieldDecorator
}
=
this
.
props
.
form
;
return
(
<
div
>
<
Modal
visible
=
{
previewQrcodeShow
}
footer
=
{
null
}
onCancel
=
{
closeQrcodeShow
}
title
=
{
<
div
style
=
{{
textAlign
:
'center'
,
fontWeight
:
700
}}
>
扫描二维码报名
<
/div>
}
>
<
img
alt
=
""
src
=
{
imagify
(
previewQrcode
)}
style
=
{{
width
:
200
,
height
:
200
,
display
:
'block'
,
margin
:
'0 auto'
,
}}
/
>
<
/Modal
>
<
Modal
visible
=
{
visible
}
title
=
{
<
div
><
span
style
=
{{
fontWeight
:
700
}}
>
自主报名
<
/span><Button onClick={this.toAddCourseQrcode} style={{ marginLeft: '30px' }} type="primary" size="small">新 增</
Button
><
/div>
}
...
...
src/pages/student/index.js
View file @
199a8137
...
...
@@ -9,11 +9,13 @@ import EliminateEdit from './eliminateEdit';
import
SelfJoin
from
'./SelfJoin'
;
import
StudentAdd
from
'./StudentAdd'
;
import
Cropper
from
'../../components/Cropper'
;
import
QrcodeShow
from
'../../components/qrcodeShow'
;
const
{
Option
}
=
Select
;
const
{
TextArea
}
=
Input
;
class
StudentMgt
extends
React
.
Component
{
state
=
{
cage
:
0
,
qrCodeTitle
:
''
,
avatorUploader
:
{
maxsize
:
8192
,
// 奖品图片最大尺寸KBcropper: {
cropper
:
{
...
...
@@ -177,6 +179,9 @@ class StudentMgt extends React.Component {
type
:
'students/studentsAdd'
,
payload
:
value
,
});
this
.
setState
({
qrCodeTitle
:
`请学员
${
value
.
name
}
扫描绑定小程序`
,
});
}
closeEditClassModal
=
()
=>
{
const
{
dispatch
}
=
this
.
props
;
...
...
@@ -408,6 +413,9 @@ class StudentMgt extends React.Component {
record
,
},
});
this
.
setState
({
qrCodeTitle
:
'扫码自助报名'
,
});
}
// 自主报名相关代码
// 图片上传的接口
...
...
@@ -461,6 +469,9 @@ class StudentMgt extends React.Component {
payload
:
{
},
});
this
.
setState
({
qrCodeTitle
:
'微信扫描绑定小程序'
,
});
}
// 图片上传的接口
generateSingleBindQrcode
=
(
student
)
=>
{
...
...
@@ -472,6 +483,9 @@ class StudentMgt extends React.Component {
school_id
:
student
.
school_id
,
},
});
this
.
setState
({
qrCodeTitle
:
`请学员
${
student
.
name
}
扫描绑定小程序`
,
});
}
render
()
{
const
{
getFieldDecorator
}
=
this
.
props
.
form
;
...
...
@@ -517,6 +531,7 @@ class StudentMgt extends React.Component {
modeToCourse
,
// 续课的逻辑代码
}
=
this
.
props
;
const
{
qrCodeTitle
}
=
this
.
state
;
const
columns
=
[
{
title
:
'学员姓名'
,
...
...
@@ -705,7 +720,7 @@ class StudentMgt extends React.Component {
<
/Col
>
<
Col
className
=
{
pageStyle
.
formitem
}
xs
=
{{
span
:
24
}}
sm
=
{{
span
:
12
}}
md
=
{{
span
:
12
}}
lg
=
{{
span
:
3
}}
>
<
div
className
=
{
pageStyle
.
formitemlabel
}
>
学员年龄
<
/div
>
<
InputNumber
style
=
{{
width
:
38
}}
value
=
{
searchstudentListQueryParams
.
age_start
}
onChange
=
{
e
=>
this
.
searchParamsChange
(
e
,
'Select'
,
'age_start'
)}
/> ~ <InputNumber style={{ width: 38 }}
value={searchstudentListQueryParams.age_end} onChange={e => this.searchParamsChange
(
e, 'Select', 'age_end'
)
} /
>
<
InputNumber
style
=
{{
width
:
38
}}
value
=
{
searchstudentListQueryParams
.
age_start
}
min
=
"0"
onChange
=
{
e
=>
this
.
searchParamsChange
(
e
,
'Select'
,
'age_start'
)}
/> ~ <InputNumber style={{ width: 38 }} min="0"
value={searchstudentListQueryParams.age_end} onChange={e => this.searchParamsChange
(
e, 'Select', 'age_end'
)
} /
>
<
/Col
>
<
Col
className
=
{
pageStyle
.
searchbtnbox
}
xs
=
{{
span
:
12
}}
sm
=
{{
span
:
12
}}
md
=
{{
span
:
12
}}
lg
=
{{
span
:
6
}}
>
<
Button
className
=
{
pageStyle
.
resetbtn
}
onClick
=
{
this
.
reset
}
>
重置
<
/Button
>
...
...
@@ -739,6 +754,19 @@ class StudentMgt extends React.Component {
/
>
<
/div
>
<
/div
>
<
QrcodeShow
previewQrcodeShow
=
{
previewBindQrcodeShow
}
closeQrcodeShow
=
{
this
.
closeBindQrcodeShow
}
previewQrcode
=
{
previewBindQrcode
}
title
=
{
qrCodeTitle
}
/
>
<
QrcodeShow
previewQrcodeShow
=
{
previewQrcodeShow
}
closeQrcodeShow
=
{
this
.
closeQrcodeShow
}
previewQrcode
=
{
previewQrcode
}
title
=
{
qrCodeTitle
}
/
>
{
/*
<Modal
visible={previewBindQrcodeShow}
footer={null}
...
...
@@ -756,6 +784,7 @@ class StudentMgt extends React.Component {
}}
/>
</Modal>
*/
}
<
RenewEdit
// {...this.props}
operator
=
{
operator
}
...
...
@@ -823,9 +852,6 @@ class StudentMgt extends React.Component {
editCourseModule
=
{
this
.
editCourseModule
}
closeCourseQrcode
=
{
this
.
closeCourseQrcode
}
toAddCourseQrcode
=
{
this
.
toAddCourseQrcode
}
previewQrcode
=
{
previewQrcode
}
previewQrcodeShow
=
{
previewQrcodeShow
}
closeQrcodeShow
=
{
this
.
closeQrcodeShow
}
seeCourseTmpQrcode
=
{
this
.
seeCourseTmpQrcode
}
/
>
<
/div
>
...
...
src/pages/studentinfo/Renew.js
View file @
199a8137
...
...
@@ -237,7 +237,7 @@ class StudentAddForm extends React.Component {
}}
>
{
getFieldDecorator
(
'class_ids'
,
{
initialValue
:
(
selectedCourseInfo
.
classes
.
length
>
0
&&
selectedCourseInfo
.
classes
.
map
(
ele
=>
ele
.
id
))
||
[],
initialValue
:
(
selectedCourseInfo
.
classes
&&
selectedCourseInfo
.
classes
.
length
>
0
&&
selectedCourseInfo
.
classes
.
map
(
ele
=>
ele
.
id
))
||
[],
rules
:
[
{
required
:
true
,
...
...
src/pages/usersetting/BindWx.js
View file @
199a8137
...
...
@@ -82,7 +82,7 @@ class UserSettingForm extends React.Component {
<
/Form
>
<
/div
>
<
/Modal
>
<
Modal
{
/*
<Modal
visible={previewQrcodeShow}
footer={null}
onCancel={closeQrcodeShow}
...
...
@@ -98,7 +98,8 @@ class UserSettingForm extends React.Component {
margin: '0 auto',
}}
/>
<
/Modal
>
</Modal> */
}
<
/div
>
);
}
...
...
src/pages/usersetting/index.js
View file @
199a8137
...
...
@@ -4,6 +4,7 @@ import { Row, Col, Modal, Form, Input, Button, message } from 'antd';
import
pageStyles
from
'./index.less'
;
import
BindWx
from
'./BindWx'
;
import
Cropper
from
'../../components/Cropper'
;
import
QrcodeShow
from
'../../components/qrcodeShow'
;
import
{
pageIn
,
imagify
}
from
'../../utils/index'
;
const
{
Search
}
=
Input
;
const
FormItem
=
Form
.
Item
;
...
...
@@ -361,6 +362,12 @@ class UserSettingForm extends React.Component {
<
/Form.Item
>
<
/Form
>
<
/Modal
>
<
QrcodeShow
previewQrcodeShow
=
{
previewQrcodeShow
}
closeQrcodeShow
=
{
this
.
closeQrcodeShow
}
previewQrcode
=
{
previewQrcode
}
title
=
"微信扫描绑定机构二维码"
/>
<
BindWx
visible
=
{
bindWxShow
}
userInfo
=
{
userInfo
}
...
...
@@ -369,9 +376,6 @@ class UserSettingForm extends React.Component {
sendVerifyCode
=
{
this
.
sendBindWxVerifyCode
}
onCancel
=
{()
=>
this
.
BindWxDiaVisible
(
false
)}
bindWxPost
=
{
this
.
bindWxPost
}
previewQrcodeShow
=
{
previewQrcodeShow
}
previewQrcode
=
{
previewQrcode
}
closeQrcodeShow
=
{
this
.
closeQrcodeShow
}
checkoutVerifyCode
=
{
checkoutVerifyCode
}
/
>
<
/Row
>
...
...
src/services/common.js
View file @
199a8137
...
...
@@ -81,3 +81,11 @@ export function erpVerifyCodeCheck(params) {
method
:
'GET'
,
});
}
export
function
schoolLoginTime
(
params
)
{
const
data
=
qs
.
stringify
(
params
);
return
request
({
url
:
`
${
api
.
schoolLoginTime
}
?
${
data
}
`
,
method
:
'POST'
,
data
,
});
}
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