Commit 4400055f authored by wangxuelai's avatar wangxuelai

'最新代码提交'

parent 47244aa2
......@@ -11,7 +11,7 @@
<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?1571647174527" rel="stylesheet">
<link href="/dist/index.css?1571740164893" rel="stylesheet">
<script src="/lib/vendor.dll.js?20191012" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?20191012" charset="utf-8"></script>
<script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?20191012" charset="utf-8"></script>
......@@ -24,7 +24,7 @@
<body>
<div id="root"></div>
<script src="/dist/index.js?1571647174527" charset="utf-8"></script>
<script src="/dist/index.js?1571740164893" charset="utf-8"></script>
</body>
</html>
\ No newline at end of file
......@@ -481,7 +481,9 @@ export default {
},
* studentsAdd({ payload }, { call, put, select }) {
const { sid } = yield select(state => state.webapp);
const { studentSubmiting, studentAvator, schoolUserInfo } = yield select(state => state.students);
const {
studentSubmiting, studentAvator, schoolUserInfo, repeatStudentList,
} = yield select(state => state.students);
if (!sid) {
return;
}
......@@ -548,6 +550,7 @@ export default {
yield put({
type: 'updateState',
payload: {
repeatStudentList: [],
selectdeStudent: data.data,
goNewRenewCourseShow: true,
courseList,
......@@ -562,6 +565,7 @@ export default {
yield put({
type: 'updateState',
payload: {
repeatStudentList: [],
addOrUpdateDiaShow: false,
repeatStudentShow: false,
studentAvator: '',
......@@ -571,13 +575,6 @@ export default {
},
},
});
yield put({
type: 'generateSingleBindQrcode',
payload: {
mobile,
school_id: sid,
},
});
yield put({
type: 'studentsList',
payload: {
......@@ -591,6 +588,15 @@ export default {
addOrUpdateDiaShow: false,
},
});
if (repeatStudentList.length == 0 || (repeatStudentList.length > 0 && repeatStudentList[0].consumer_id == 0)) {
yield put({
type: 'generateSingleBindQrcode',
payload: {
mobile,
school_id: sid,
},
});
}
}
} else if (data.code == 40203) {
yield put({
......@@ -602,6 +608,7 @@ export default {
yield put({
type: 'updateState',
payload: {
repeatStudentList: [],
repeatStudentShow: true,
studentAddParams: {
school_id: sid,
......
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