|
@@ -2,133 +2,137 @@ import fetch from '@/common/utils/fetch.js'
|
2
|
2
|
|
3
|
3
|
// 获取课程列表
|
4
|
4
|
export function _optionCourse (params) {
|
5
|
|
- return fetch('/parents/Mycourses/option_course', params)
|
|
5
|
+ return fetch('/parents/Mycourses/option_course', params)
|
6
|
6
|
}
|
7
|
7
|
//智能报课获取周期
|
8
|
8
|
export function _intelligentDates () {
|
9
|
|
- return fetch('/parents/Intelligent/getLigentDate')
|
|
9
|
+ return fetch('/parents/Intelligent/getLigentDate')
|
10
|
10
|
}
|
11
|
11
|
//智能报课获取兴趣
|
12
|
12
|
export function _intelligentInterests () {
|
13
|
|
- return fetch('/parents/Intelligent/getLigentCategory')
|
|
13
|
+ return fetch('/parents/Intelligent/getLigentCategory')
|
|
14
|
+}
|
|
15
|
+//智能报课关键词检索
|
|
16
|
+export function _intelligentGetKeys (params) {
|
|
17
|
+ return fetch('/parents/Intelligent/getKeywords', params)
|
14
|
18
|
}
|
15
|
19
|
//智能报课获取课程
|
16
|
20
|
export function _intelligentCourses (params) {
|
17
|
|
- return fetch('/parents/Intelligent/pickLigentCourse', params)
|
|
21
|
+ return fetch('/parents/Intelligent/pickLigentCourse', params)
|
18
|
22
|
}
|
19
|
23
|
// 获取课程筛选选项 parents/Mycourses/advanced_filter
|
20
|
24
|
export function _filter (params) {
|
21
|
|
- return fetch('/parents/Mycourses/advanced_filter', params)
|
|
25
|
+ return fetch('/parents/Mycourses/advanced_filter', params)
|
22
|
26
|
}
|
23
|
27
|
// 课程详情 parents/Mycourses/course_details
|
24
|
28
|
export function _detail (params) {
|
25
|
|
- return fetch('/parents/Mycourses/course_details', params)
|
|
29
|
+ return fetch('/parents/Mycourses/course_details', params)
|
26
|
30
|
}
|
27
|
31
|
// 课程套餐详情 parents/Mycourses/course_gift
|
28
|
32
|
export function _gift (params) {
|
29
|
|
- return fetch('/parents/Mycourses/course_gift', params)
|
|
33
|
+ return fetch('/parents/Mycourses/course_gift', params)
|
30
|
34
|
}
|
31
|
35
|
// 课程评价 parents/Mycourses/now_details_comment
|
32
|
36
|
export function _comments (params) {
|
33
|
|
- return fetch('/parents/Mycourses/now_details_comment', params, 'POST', false)
|
|
37
|
+ return fetch('/parents/Mycourses/now_details_comment', params, 'POST', false)
|
34
|
38
|
}
|
35
|
39
|
// 添加购物车 parents/Commit/join_shop
|
36
|
40
|
export function _joinShop (params, showFail = true) {
|
37
|
|
- return fetch('/parents/Commit/join_shop', params, 'POST', showFail)
|
|
41
|
+ return fetch('/parents/Commit/join_shop', params, 'POST', showFail)
|
38
|
42
|
}
|
39
|
43
|
// 批量添加购物车
|
40
|
44
|
export function _joinShops (params) {
|
41
|
|
- return fetch('/parents/Commit/joinShopMulti', params)
|
|
45
|
+ return fetch('/parents/Commit/joinShopMulti', params)
|
42
|
46
|
}
|
43
|
47
|
// 购物车列表 /parents/Shopping/index
|
44
|
48
|
export function _shopList (params) {
|
45
|
|
- return fetch('/parents/Shopping/index', params)
|
|
49
|
+ return fetch('/parents/Shopping/index', params)
|
46
|
50
|
}
|
47
|
51
|
// 删除购物车 /parents/Shopping/del_shopping
|
48
|
52
|
export function _delShop (params) {
|
49
|
|
- return fetch('/parents/Shopping/del_shopping', params)
|
|
53
|
+ return fetch('/parents/Shopping/del_shopping', params)
|
50
|
54
|
}
|
51
|
55
|
// 生成订单 parents/Commit/order
|
52
|
56
|
export function _createOrder (params) {
|
53
|
|
- return fetch('/parents/Commit/order', params)
|
|
57
|
+ return fetch('/parents/Commit/order', params)
|
54
|
58
|
}
|
55
|
59
|
// 订单列表 parents/Ordercentre/index
|
56
|
60
|
export function _orderCenter (params) {
|
57
|
|
- return fetch('/parents/Ordercentre/index', params)
|
|
61
|
+ return fetch('/parents/Ordercentre/index', params)
|
58
|
62
|
}
|
59
|
63
|
// 退课数据 get_dropcourse_byorder
|
60
|
64
|
export function _dropList (params) {
|
61
|
|
- return fetch('/parents/dropcourse/get_dropcourse_byorder', params)
|
|
65
|
+ return fetch('/parents/dropcourse/get_dropcourse_byorder', params)
|
62
|
66
|
}
|
63
|
67
|
// 订单支付
|
64
|
68
|
export function _payOrder (params) {
|
65
|
|
- return fetch('/parents/pay/payment', params)
|
|
69
|
+ return fetch('/parents/pay/payment', params)
|
66
|
70
|
}
|
67
|
71
|
// 取消订单 /parents/Ordercentre/del_order
|
68
|
72
|
export function _cancelOrder (params) {
|
69
|
|
- return fetch('/parents/Ordercentre/del_order', params)
|
|
73
|
+ return fetch('/parents/Ordercentre/del_order', params)
|
70
|
74
|
}
|
71
|
75
|
// 进行退课 /parents/dropcourse/to_drop_course
|
72
|
76
|
export function _dropCourse (params) {
|
73
|
|
- return fetch('/parents/dropcourse/to_drop_course', params)
|
|
77
|
+ return fetch('/parents/dropcourse/to_drop_course', params)
|
74
|
78
|
}
|
75
|
79
|
// 历史课程 /parents/Mycourses/course_history
|
76
|
80
|
export function _courseHistory (params) {
|
77
|
|
- return fetch('/parents/Mycourses/course_history', params)
|
|
81
|
+ return fetch('/parents/Mycourses/course_history', params)
|
78
|
82
|
}
|
79
|
83
|
// 我的课程 /parents/Mycourses/course_history
|
80
|
84
|
export function _nowCourse (params) {
|
81
|
|
- return fetch('/parents/Mycourses/now_course', params)
|
|
85
|
+ return fetch('/parents/Mycourses/now_course', params)
|
82
|
86
|
}
|
83
|
87
|
// 课程表 /parents/Mycourses/date_course
|
84
|
88
|
export function _dateCourse (params) {
|
85
|
|
- return fetch('/parents/Mycourses/date_course', params)
|
|
89
|
+ return fetch('/parents/Mycourses/date_course', params)
|
86
|
90
|
}
|
87
|
91
|
// 考勤记录 /parents/attendance/get_attendance
|
88
|
92
|
export function _attendance (params) {
|
89
|
|
- return fetch('/parents/attendance/get_attendance', params)
|
|
93
|
+ return fetch('/parents/attendance/get_attendance', params)
|
90
|
94
|
}
|
91
|
95
|
// 课堂详情 /parents/dailyclass/get_dailyclass_details
|
92
|
96
|
export function _dailiClass (params) {
|
93
|
|
- return fetch('/parents/dailyclass/get_dailyclass_details', params)
|
|
97
|
+ return fetch('/parents/dailyclass/get_dailyclass_details', params)
|
94
|
98
|
}
|
95
|
99
|
// 安全交接情况 /parents/sign/get_sign
|
96
|
100
|
export function _getSignIn (params) {
|
97
|
|
- return fetch('/parents/sign/get_sign', params)
|
|
101
|
+ return fetch('/parents/sign/get_sign', params)
|
98
|
102
|
}
|
99
|
103
|
// 进行安全交接 /parents/sign/to_sign
|
100
|
104
|
export function _toSignIn (params) {
|
101
|
|
- return fetch('/parents/sign/to_sign', params)
|
|
105
|
+ return fetch('/parents/sign/to_sign', params)
|
102
|
106
|
}
|
103
|
107
|
// 进行评价 /parents/Todayclass/comment
|
104
|
108
|
export function _tocomment (params) {
|
105
|
|
- return fetch('/parents/Todayclass/comment', params)
|
|
109
|
+ return fetch('/parents/Todayclass/comment', params)
|
106
|
110
|
}
|
107
|
111
|
// 评价详情
|
108
|
112
|
export function _commentDetail (params) {
|
109
|
|
- return fetch('/parents/dailyclass/get_satisfaction', params)
|
|
113
|
+ return fetch('/parents/dailyclass/get_satisfaction', params)
|
110
|
114
|
}
|
111
|
115
|
// 获取请假类型
|
112
|
116
|
export function _leaveType (params) {
|
113
|
|
- return fetch('/teacher/leave/get_leave_type', params)
|
|
117
|
+ return fetch('/teacher/leave/get_leave_type', params)
|
114
|
118
|
}
|
115
|
119
|
// 申请请假
|
116
|
120
|
export function _askLeave (params) {
|
117
|
|
- return fetch('/parents/schedule/student_leave', params)
|
|
121
|
+ return fetch('/parents/schedule/student_leave', params)
|
118
|
122
|
}
|
119
|
123
|
//获取学生课程档案
|
120
|
124
|
export function _getStudentFiles (params) {
|
121
|
|
- return fetch('/parents/courseFiles/get_list', params)
|
|
125
|
+ return fetch('/parents/courseFiles/get_list', params)
|
122
|
126
|
}
|
123
|
127
|
//获取年级
|
124
|
128
|
export function _getGrades () {
|
125
|
|
- return fetch('/parents/init/get_grades')
|
|
129
|
+ return fetch('/parents/init/get_grades')
|
126
|
130
|
}
|
127
|
131
|
//获取班级
|
128
|
132
|
export function _getClasses (params) {
|
129
|
|
- return fetch('/parents/init/get_classes', params)
|
|
133
|
+ return fetch('/parents/init/get_classes', params)
|
130
|
134
|
}
|
131
|
135
|
//修改信息
|
132
|
136
|
export function _fixStudent (params) {
|
133
|
|
- return fetch('/parents/init/edit_student', params)
|
|
137
|
+ return fetch('/parents/init/edit_student', params)
|
134
|
138
|
}
|