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
4400055f
Commit
4400055f
authored
Oct 24, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'最新代码提交'
parent
47244aa2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
index.html
index.html
+2
-2
students.js
src/models/students.js
+15
-8
No files found.
index.html
View file @
4400055f
...
...
@@ -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?1571
647174527
"
rel=
"stylesheet"
>
<link
href=
"/dist/index.css?1571
740164893
"
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?1571
647174527
"
charset=
"utf-8"
></script>
<script
src=
"/dist/index.js?1571
740164893
"
charset=
"utf-8"
></script>
</body>
</html>
\ No newline at end of file
src/models/students.js
View file @
4400055f
...
...
@@ -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
,
...
...
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