123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- import fetch from '@/common/utils/fetch.js'
- // 获取课程列表
- export function _optionCourse (params) {
- return fetch('/parents/Mycourses/option_course', params)
- }
- //智能报课获取周期
- export function _intelligentDates () {
- return fetch('/parents/Intelligent/getLigentDate')
- }
- //智能报课获取兴趣
- export function _intelligentInterests () {
- return fetch('/parents/Intelligent/getLigentCategory')
- }
- //智能报课关键词检索
- export function _intelligentGetKeys (params) {
- return fetch('/parents/Intelligent/getKeywords', params)
- }
- //智能报课获取课程
- export function _intelligentCourses (params) {
- return fetch('/parents/Intelligent/pickLigentCourse', params)
- }
- // 获取课程筛选选项
- export function _filter (params) {
- return fetch('/parents/Mycourses/advanced_filter', params)
- }
- // 课程详情
- export function _detail (params) {
- return fetch('/parents/Mycourses/course_details', params)
- }
- // 课程套餐详情
- export function _gift (params) {
- return fetch('/parents/Mycourses/course_gift', params)
- }
- // 课程评价
- export function _comments (params) {
- return fetch('/parents/Mycourses/now_details_comment', params, 'POST', false)
- }
- // 添加购物车
- export function _joinShop (params, showFail = true) {
- return fetch('/parents/Commit/join_shop', params, 'POST', showFail)
- }
- // 批量添加购物车
- export function _joinShops (params) {
- return fetch('/parents/Commit/joinShopMulti', params)
- }
- // 购物车列表
- export function _shopList (params) {
- return fetch('/parents/Shopping/index', params)
- }
- // 删除购物车
- export function _delShop (params) {
- return fetch('/parents/Shopping/del_shopping', params)
- }
- // 生成订单
- export function _createOrder (params) {
- return fetch('/parents/Commit/order', params)
- }
- // 订单列表
- export function _orderCenter (params) {
- return fetch('/parents/Ordercentre/index', params)
- }
- // 退课数据
- export function _dropList (params) {
- return fetch('/parents/dropcourse/get_dropcourse_byorder', params)
- }
- // 订单支付
- export function _payOrder (params) {
- return fetch('/parents/pay/payment', params)
- }
- // 取消订单
- export function _cancelOrder (params) {
- return fetch('/parents/Ordercentre/del_order', params)
- }
- // 进行退课
- export function _dropCourse (params) {
- return fetch('/parents/dropcourse/to_drop_course', params)
- }
- // 历史课程
- export function _courseHistory (params) {
- return fetch('/parents/Mycourses/course_history', params)
- }
- // 我的课程
- export function _nowCourse (params) {
- return fetch('/parents/Mycourses/now_course', params)
- }
- // 课程表
- export function _dateCourse (params) {
- return fetch('/parents/Mycourses/date_course', params)
- }
- // 考勤记录
- export function _attendance (params) {
- return fetch('/parents/attendance/get_attendance', params)
- }
- // 课堂详情
- export function _dailiClass (params) {
- return fetch('/parents/dailyclass/get_dailyclass_details', params)
- }
- // 安全交接情况
- export function _getSignIn (params) {
- return fetch('/parents/sign/get_sign', params)
- }
- // 进行安全交接
- export function _toSignIn (params) {
- return fetch('/parents/sign/to_sign', params)
- }
- // 进行评价
- export function _tocomment (params) {
- return fetch('/parents/Todayclass/comment', params)
- }
- // 评价详情
- export function _commentDetail (params) {
- return fetch('/parents/dailyclass/get_satisfaction', params)
- }
- // 获取请假类型
- export function _leaveType (params) {
- return fetch('/teacher/leave/get_leave_type', params)
- }
- // 申请请假
- export function _askLeave (params) {
- return fetch('/parents/schedule/student_leave', params)
- }
- //获取学生课程档案
- export function _getStudentFiles (params) {
- return fetch('/parents/courseFiles/get_list', params)
- }
- //获取年级
- export function _getGrades () {
- return fetch('/parents/student/grade_list')
- }
- //获取班级
- export function _getClasses (params) {
- return fetch('/parents/student/class_list', params)
- }
- //修改信息
- export function _fixStudent (params) {
- return fetch('/parents/student/update', params)
- }
|