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
969ed163
Commit
969ed163
authored
Oct 24, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'最细代码提交'
parent
1d8f0397
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
api.js
src/common/api.js
+1
-0
students.js
src/models/students.js
+10
-2
index.js
src/pages/student/index.js
+1
-0
students.js
src/services/students.js
+7
-0
No files found.
src/common/api.js
View file @
969ed163
...
...
@@ -73,6 +73,7 @@ export default {
studentClassRecords
:
`
${
dakaapi
}
member/erp/student/calls`
,
studentsLog
:
`
${
dakaapi
}
member/erp/student/logs`
,
studentsUnBindWx
:
`
${
dakaapi
}
member/erp/student/wechat/remove`
,
schoolUuid
:
`
${
dakaapi
}
member/school_uuid`
,
},
teachers
:
`
${
dakaapi
}
member/erp/teachers`
,
choose_teacher
:
`
${
dakaapi
}
member/erp/teacher/distribution`
,
...
...
src/models/students.js
View file @
969ed163
...
...
@@ -915,10 +915,18 @@ export default {
});
},
*
generateSingleBindQrcode
({
payload
},
{
call
,
put
,
select
})
{
const
{
mobile
,
school_id
}
=
payload
;
const
{
student_id
,
school_id
}
=
payload
;
const
loading
=
message
.
loading
(
'小程序生成中..'
);
const
getUUidData
=
yield
call
(
studentsAjax
.
createSchoolUuid
,
{
school_id
,
type
:
3
,
});
if
(
getUUidData
.
code
!=
200
)
{
message
.
error
(
'二维码生成失败,请重试'
,
1
);
return
;
}
const
qrcodeData
=
yield
call
(
commonAjax
.
generateQrcode
,
{
scene
:
`
m=
${
mobile
}
&s=
${
school_id
}
`
,
scene
:
`
std=
${
student_id
}
&s=
${
school_id
}
&uid=
${
getUUidData
.
data
}
`
,
page
:
'src/pages/setting/bindmobile2'
,
// src/pages/setting/bindmobile2
});
setTimeout
(
loading
);
...
...
src/pages/student/index.js
View file @
969ed163
...
...
@@ -497,6 +497,7 @@ class StudentMgt extends React.Component {
payload
:
{
mobile
:
student
.
mobile
,
school_id
:
student
.
school_id
,
student_id
:
student
.
id
,
},
});
this
.
setState
({
...
...
src/services/students.js
View file @
969ed163
...
...
@@ -73,3 +73,10 @@ export function studentsUnBindWx(params) {
data
,
});
}
export
function
createSchoolUuid
(
params
)
{
const
data
=
qs
.
stringify
(
params
);
return
request
({
url
:
`
${
api
.
students
.
schoolUuid
}
?
${
data
}
`
,
method
:
'GET'
,
});
}
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