Commit d4f05010 authored by baixian's avatar baixian

优化

parent 9b4f7ef5
<!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">
<link rel="shortcut icon" href="https://cdn.img.shangjiadao.cn/qingxiao/biz/image/qxlogo4.png" >
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Polyfills -->
<!-- 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>
<script src="/js/ueeditor/ueditor.config.js?20200102" charset="utf-8"></script>
<script src="/js/ueeditor/ueditor.all.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/json3.min.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/polyfill.js?20200102" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/lib/vendor.dll.js?20200102" charset="utf-8"></script>
<script src="/js/ueeditor/ueditor.config.js?20200102" charset="utf-8"></script><script src="/js/ueeditor/ueditor.all.js?20200102" charset="utf-8"></script>
<script src="js/console-polyfill.js?20200102" charset="utf-8"></script><script src="js/es6-shim.min.js?20200102" charset="utf-8"></script><script src="js/es5-shim.js?20200102" charset="utf-8"></script><script src="js/es5-sham.min.js?20200102" charset="utf-8"></script><script src="js/json3.min.js?20200102" charset="utf-8"></script><script src="js/html5shiv.min.js?20200102" charset="utf-8"></script><script src="js/polyfill.js?20200102" charset="utf-8"></script><script src="lib/vendor.dll.js?20200102" charset="utf-8"></script>
</head>
</head>
<body>
<div id="root"></div>
<script type="text/javascript" src="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/main.b8f35f.js"></script>
</body>
<script type="text/javascript" src="./dist/main.005a3a.js"></script></body>
</html>
\ No newline at end of file
......@@ -1108,22 +1108,22 @@ class StaticCenter extends React.Component {
</Col>
<Col xs={{ span: 8, offset: 0 }} sm={{ span: 8, offset: 0 }} md={{ span: 8, offset: 0 }} lg={{ span: 4, offset: 1 }} xl={{ span: 4, offset: 1 }} xxl={{ span: 4, offset: 1 }}>
<div className={pageStyle.fasterItem} onClick={this.goCallStudent}>
<div className={pageStyle.fasterLeft}>
<img className={pageStyle.fasterImg} src={`${__IMGCDN__}index/index_icon7.png`} alt="" />
<Badge className={pageStyle.fasterNum} overflowCount={999} count={callData.total}>
</Badge>
</div>
<Badge className={pageStyle.fasterNum} overflowCount={999} count={callData.total}>
<div className={pageStyle.fasterLeft}>
<img className={pageStyle.fasterImg} src={`${__IMGCDN__}index/index_icon7.png`} alt="" />
</div>
</Badge>
<span>点名提醒</span>
</div>
</Col>
{btnPermission(userPermission, 2) &&
<Col xs={{ span: 8, offset: 0 }} sm={{ span: 8, offset: 0 }} md={{ span: 8, offset: 0 }} lg={{ span: 4, offset: 1 }} xl={{ span: 4, offset: 1 }} xxl={{ span: 4, offset: 1 }}>
<div className={pageStyle.fasterItem} onClick={this.goPlanStudent}>
<div className={pageStyle.fasterLeft}>
<img className={pageStyle.fasterImg} src={`${__IMGCDN__}index/index_icon8.png`} alt="" />
<Badge className={pageStyle.fasterNum} overflowCount={999} count={assign.total}>
</Badge>
</div>
<Badge className={pageStyle.fasterNum} overflowCount={999} count={assign.total}>
<div className={pageStyle.fasterLeft}>
<img className={pageStyle.fasterImg} src={`${__IMGCDN__}index/index_icon8.png`} alt="" />
</div>
</Badge>
<span>分配提醒</span>
</div>
</Col>
......@@ -1131,22 +1131,22 @@ class StaticCenter extends React.Component {
{btnPermission(userPermission, 2) &&
<Col xs={{ span: 8, offset: 0 }} sm={{ span: 8, offset: 0 }} md={{ span: 8, offset: 0 }} lg={{ span: 4, offset: 1 }} xl={{ span: 4, offset: 1 }} xxl={{ span: 4, offset: 1 }}>
<div className={pageStyle.fasterItem} onClick={this.goBirthStudent}>
<div className={pageStyle.fasterLeft}>
<img className={pageStyle.fasterImg} src={`${__IMGCDN__}index/index_icon9.png`} alt="" />
<Badge className={pageStyle.fasterNum} overflowCount={999} count={birthday.total}>
</Badge>
</div>
<Badge className={pageStyle.fasterNum} overflowCount={999} count={birthday.total}>
<div className={pageStyle.fasterLeft}>
<img className={pageStyle.fasterImg} src={`${__IMGCDN__}index/index_icon9.png`} alt="" />
</div>
</Badge>
<span>生日提醒</span>
</div>
</Col>
}
<Col xs={{ span: 8, offset: 0 }} sm={{ span: 8, offset: 0 }} md={{ span: 8, offset: 0 }} lg={{ span: 4, offset: 1 }} xl={{ span: 4, offset: 1 }} xxl={{ span: 4, offset: 1 }}>
<div className={pageStyle.fasterItem} onClick={this.goLeaveShow}>
<div className={pageStyle.fasterLeft}>
<img className={pageStyle.fasterImg} src={`${__IMGCDN__}index/index_icon10.png`} alt="" />
<Badge className={pageStyle.fasterNum} overflowCount={999} count={leaveNum}>
</Badge>
</div>
<Badge className={pageStyle.fasterNum} overflowCount={999} count={leaveNum}>
<div className={pageStyle.fasterLeft}>
<img className={pageStyle.fasterImg} src={`${__IMGCDN__}index/index_icon10.png`} alt="" />
</div>
</Badge>
<span>请假提醒</span>
</div>
</Col>
......@@ -1155,11 +1155,11 @@ class StaticCenter extends React.Component {
{btnPermission(userPermission, 2) &&
<Col xs={{ span: 8, offset: 0 }} sm={{ span: 8, offset: 0 }} md={{ span: 8, offset: 0 }} lg={{ span: 4, offset: 0 }} xl={{ span: 4, offset: 0 }} xxl={{ span: 4, offset: 0 }}>
<div className={pageStyle.fasterItem} onClick={this.goDeadlineStudent}>
<div className={pageStyle.fasterLeft}>
<img className={pageStyle.fasterImg} src={`${__IMGCDN__}index/index_icon11.png`} alt="" />
<Badge className={pageStyle.fasterNum} overflowCount={999} count={renew.total}>
</Badge>
</div>
<Badge className={pageStyle.fasterNum} overflowCount={999} count={renew.total}>
<div className={pageStyle.fasterLeft}>
<img className={pageStyle.fasterImg} src={`${__IMGCDN__}index/index_icon11.png`} alt="" />
</div>
</Badge>
<span>续费提醒</span>
</div>
</Col>
......
......@@ -55,6 +55,10 @@
white-space: nowrap;
margin-top: 40px;
cursor: pointer;
.fasterNum {
top: -5px;
right: 2px;
}
.fasterLeft {
position: relative;
margin-right: 18px;
......@@ -64,11 +68,7 @@
width: 40px;
height: 40px;
}
.fasterNum {
position: absolute;
top: -15px;
right: -15px
}
}
&>span {
font-size:15px;
......
......@@ -859,23 +859,23 @@ class StudentMgt extends React.Component {
let dom = null;
switch (item.source_type) {
case 1:
return <div className={pageStyle.logitem}>{item.created_at} 老师:<span className={pageStyle.logTeacherName}>{item.data.teacher_name || '-'}</span> <span className={pageStyle.logAction}>点名学员</span><span className={pageStyle.logTeacherName}>{item.data.student_name || '-'}</span> 状态: <span className={pageStyle.logAction}>{item.data.type == 1 && '到课'}{item.data.type == 3 && '请假'}{item.data.type == 2 && '迟到'}{item.data.type == 4 && '未到'}</span> {item.data.course_mode == 1 && `扣除课时${item.data.expend}课时`} {item.data.class_title && <span>班级:<span className={pageStyle.logTeacherName}>{item.data.class_title || '-'}</span> </span>} {item.data.course_title && <span>课程:<span className={pageStyle.logTeacherName}>{item.data.course_title || '-'}</span></span>}</div>;
return <div className={pageStyle.logitem}>{item.created_at} 老师:<span className={pageStyle.logTeacherName}>{item.data.teacher_name || '-'}</span> <span className={pageStyle.logAction}>点名学员</span><span className={pageStyle.logTeacherName}>{item.data.student_name || '-'}</span> 状态: <span className={pageStyle.logAction}>{item.data.type == 1 && '到课'}{item.data.type == 3 && '请假'}{item.data.type == 2 && '迟到'}{item.data.type == 4 && '未到'}</span> {item.data.course_mode == 1 && `扣除课时${item.data.expend}课时`} {item.data.class_title && <span>班级:<span className={pageStyle.logTeacherName}>{item.data.class_title || '-'}</span> </span>} {item.data.course_title && <span>课程:<span className={pageStyle.logTeacherName}>{item.data.course_title || '-'}</span></span>}备注:{item.data.remark ? item.data.remark : '-'}</div>;
case 2:
if (item.data.mode_type == 1) {
dom = <div className={pageStyle.logitem}>{item.created_at} 老师:<span className={pageStyle.logTeacherName}>{item.data.teacher_name || '-'}</span> 为学员:<span className={pageStyle.logTeacherName}>{item.data.student_name || '-'}</span> <span className={pageStyle.logAction}>购买课程</span> <span className={pageStyle.logTeacherName}>{item.data.course_title || '-'}</span> 收费模式:按课时, 购买课时:{item.data.buy || '-'}课时, 赠送课时:{item.data.give ? `${item.data.give}课时` : '-'},备注:{item.data.remark || '-'}</div>;
dom = <div className={pageStyle.logitem}>{item.created_at} 老师:<span className={pageStyle.logTeacherName}>{item.data.teacher_name || '-'}</span> 为学员:<span className={pageStyle.logTeacherName}>{item.data.student_name || '-'}</span> <span className={pageStyle.logAction}>购买课程</span> <span className={pageStyle.logTeacherName}>{item.data.course_title || '-'}</span> 收费模式:按课时, 购买课时:{item.data.buy || '-'}课时, 赠送课时:{item.data.give ? `${item.data.give}课时` : '-'},备注:{item.data.remark ? item.data.remark : '-'}</div>;
} else if (item.data.mode_type == 2) {
dom = <div className={pageStyle.logitem}>{item.created_at} 老师:<span className={pageStyle.logTeacherName}>{item.data.teacher_name || '-'}</span> 为学员:<span className={pageStyle.logTeacherName}>{item.data.student_name || '-'}</span> <span className={pageStyle.logAction}>购买课程</span> <span className={pageStyle.logTeacherName}>{item.data.course_title || '-'}</span> 收费模式:按时段, 购买课时:{item.data.buy || '-'}天, 赠送课时:{item.data.give ? `${item.data.give}天` : '-'},备注:{item.data.remark || '-'}</div>;
dom = <div className={pageStyle.logitem}>{item.created_at} 老师:<span className={pageStyle.logTeacherName}>{item.data.teacher_name || '-'}</span> 为学员:<span className={pageStyle.logTeacherName}>{item.data.student_name || '-'}</span> <span className={pageStyle.logAction}>购买课程</span> <span className={pageStyle.logTeacherName}>{item.data.course_title || '-'}</span> 收费模式:按时段, 购买课时:{item.data.buy || '-'}天, 赠送课时:{item.data.give ? `${item.data.give}天` : '-'},备注:{item.data.remark ? item.data.remark : '-'}</div>;
} else if (item.data.mode_type == 3) {
dom = <div className={pageStyle.logitem}>{item.created_at} 老师:<span className={pageStyle.logTeacherName}>{item.data.teacher_name || '-'}</span> 为学员:<span className={pageStyle.logTeacherName}>{item.data.student_name || '-'}</span> <span className={pageStyle.logAction}>购买课程</span> <span className={pageStyle.logTeacherName}>{item.data.course_title || '-'}</span> 收费模式:班级,备注:{item.data.remark || '-'}</div>;
dom = <div className={pageStyle.logitem}>{item.created_at} 老师:<span className={pageStyle.logTeacherName}>{item.data.teacher_name || '-'}</span> 为学员:<span className={pageStyle.logTeacherName}>{item.data.student_name || '-'}</span> <span className={pageStyle.logAction}>购买课程</span> <span className={pageStyle.logTeacherName}>{item.data.course_title || '-'}</span> 收费模式:班级,备注:{item.data.remark ? item.data.remark : '-'}</div>;
}
return dom;
case 3:
if (item.data.mode_type == 1) {
dom = <div className={pageStyle.logitem}>{item.created_at} 老师:<span className={pageStyle.logTeacherName}>{item.data.teacher_name || '-'}</span> 为学员:<span className={pageStyle.logTeacherName}>{item.data.student_name || '-'}</span> <span className={pageStyle.logAction}>续费课程</span> <span className={pageStyle.logTeacherName}>{item.data.course_title || '-'}</span> 收费模式:按课时, 购买课时:{item.data.buy || '-'}课时, 赠送课时:{item.data.give ? `${item.data.give}课时` : '-'}</div>;
dom = <div className={pageStyle.logitem}>{item.created_at} 老师:<span className={pageStyle.logTeacherName}>{item.data.teacher_name || '-'}</span> 为学员:<span className={pageStyle.logTeacherName}>{item.data.student_name || '-'}</span> <span className={pageStyle.logAction}>续费课程</span> <span className={pageStyle.logTeacherName}>{item.data.course_title || '-'}</span> 收费模式:按课时, 购买课时:{item.data.buy || '-'}课时, 赠送课时:{item.data.give ? `${item.data.give}课时` : '-'},备注:{item.data.remark ? item.data.remark : '-'}</div>;
} else if (item.data.mode_type == 2) {
dom = <div className={pageStyle.logitem}>{item.created_at} 老师:<span className={pageStyle.logTeacherName}>{item.data.teacher_name || '-'}</span> 为学员:<span className={pageStyle.logTeacherName}>{item.data.student_name || '-'}</span> <span className={pageStyle.logAction}>续费课程</span> <span className={pageStyle.logTeacherName}>{item.data.course_title || '-'}</span> 收费模式:按时段, 购买课时:{item.data.buy || '-'}天, 赠送课时:{item.data.give ? `${item.data.give}天` : '-'}</div>;
dom = <div className={pageStyle.logitem}>{item.created_at} 老师:<span className={pageStyle.logTeacherName}>{item.data.teacher_name || '-'}</span> 为学员:<span className={pageStyle.logTeacherName}>{item.data.student_name || '-'}</span> <span className={pageStyle.logAction}>续费课程</span> <span className={pageStyle.logTeacherName}>{item.data.course_title || '-'}</span> 收费模式:按时段, 购买课时:{item.data.buy || '-'}天, 赠送课时:{item.data.give ? `${item.data.give}天` : '-'},备注:{item.data.remark ? item.data.remark : '-'}</div>;
} else if (item.data.mode_type == 3) {
dom = <div className={pageStyle.logitem}>{item.created_at} 老师:<span className={pageStyle.logTeacherName}>{item.data.teacher_name || '-'}</span> 为学员:<span className={pageStyle.logTeacherName}>{item.data.student_name || '-'}</span> <span className={pageStyle.logAction}>续费课程</span> <span className={pageStyle.logTeacherName}>{item.data.course_title || '-'}</span> 收费模式:班级</div>;
dom = <div className={pageStyle.logitem}>{item.created_at} 老师:<span className={pageStyle.logTeacherName}>{item.data.teacher_name || '-'}</span> 为学员:<span className={pageStyle.logTeacherName}>{item.data.student_name || '-'}</span> <span className={pageStyle.logAction}>续费课程</span> <span className={pageStyle.logTeacherName}>{item.data.course_title || '-'}</span> 收费模式:班级,备注:{item.data.remark ? item.data.remark : '-'}</div>;
}
return dom;
case 4:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment