洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

273 lines
12 KiB

10 months ago
3 weeks ago
10 months ago
10 months ago
10 months ago
10 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
3 weeks ago
9 months ago
9 months ago
3 weeks ago
3 weeks ago
8 months ago
8 months ago
8 months ago
3 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago
10 months ago
9 months ago
10 months ago
  1. var http = uni.$u.http
  2. // 微信小程序的一键登录
  3. export const weixinLogin = (data) => http.post('member/auth/weixin-mini-app-login', data)
  4. // 验证码登录
  5. export const loginSMS = (data) => http.post('member/auth/sms-login', data, { custom: { noToken: true }})
  6. // 登录发验证码
  7. export const getLoginCode = (data) => http.post('member/auth/send-sms-code', data, { custom: { noToken: true, catch: true,}})
  8. // 获取个人信息
  9. export const getUserInfo = (data) => http.post('member/user/get', {header: {'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'}})
  10. // 退出登录
  11. export const logOut = (data={}) => http.post('member/auth/logout', data, {custom: {catch: true, toast: false }})
  12. // 驾校列表分页
  13. export const schoolPage = (params) => http.get('business/school/page', {params: params})
  14. export const addSchoolComment = (data={}) => http.post('business/appcomplain/addSchoolComment', data,)
  15. // 创建教练评价
  16. export const addCoachComment = (data={}) => http.post('business/appcomplain/addCoachComment', data,)
  17. // 我的评价
  18. export const getUsersCommentById = (data) => http.post('business/appcomplain/getUsersById', data)
  19. // 获得学员档案记录
  20. export const getStudentinfo = () => http.get('app/student-record/get', )
  21. // 驾校评论分页
  22. export const getSchoolListComment = (params) => http.get('business/school/getListComment', {params: params})
  23. // 教练评价分页
  24. export const getListCoachComment = (params) => http.get('business/school/getListCoach', {params: params})
  25. // 驾校详情
  26. export const getSchoolDetail = (params) => http.get('business/school/getSchool', {params: params})
  27. // 驾校班型
  28. export const schoolClass = (params) => http.get('business/school-class/page', {params: params})
  29. // 教练列表分页
  30. export const coachPage = (params) => http.get('business/coach/page', {params: params})
  31. // 行业资讯,
  32. export const getarticleList = (params) => http.get('business/video/article', {params: params})
  33. // 行业政策
  34. export const getarticlezcList = (params) => http.get('business/video/articlezc', {params: params})
  35. // 行业资讯,行业政策 详情
  36. export const getarticle = (params) => http.get('business/video/getarticle', {params: params})
  37. // 创建咨询
  38. export const createconsult = (data) => http.post('business/appcomplain/createconsult', data)
  39. // 创建投诉
  40. export const createcomplain = (data) => http.post('business/appcomplain/createcomplain', data)
  41. // 关闭投诉/咨询
  42. export const consultationClosed = (params) => http.get('business/appcomplain/closed', {params: params})
  43. // 投诉类型
  44. export const consultationType = (params) => http.get('system/dict/consultationType',)
  45. // 投诉咨询记录
  46. export const studentComplain = (params) => http.get('business/appcomplain/studentComplain', {params: params})
  47. // 常见问题
  48. export const askedQuestion = (params) => http.get('business/complainqa/page', {params: params})
  49. // 获取地区
  50. export const areaTree = () => http.get('system/area/tree', )
  51. // 驾照类型
  52. export const licenseType = () => http.get('system/dict/licenseType', )
  53. // 区域
  54. export const nachangList = () => http.get('system/area/luoyangList', )
  55. // 线上提交学员报名信息
  56. export const applyOnline = (data) => http.post('app/student-record/applyOnline', data)
  57. // 人脸核身---获取BizToken
  58. export const getpersonface = (params) => http.get('app/student-record/getpersonface', {params})
  59. // 人脸核身结果查询
  60. export const GetDetectInfoEnhanced = (params) => http.get('app/student-record/GetDetectInfoEnhanced', {params})
  61. // 证件类型获取
  62. export const getCardType = (params) => http.get('system/dict/cardType', {params})
  63. // 我的合同
  64. export const selectContractPdfBase64 = (params) => http.get('business/contract/selectContractPdfBase64', {params})
  65. // 获取合同链接
  66. export const getSignContract = (data) => http.post('business/contract/signContract', data)
  67. // 查询学员合同签署状态
  68. export const getContractStatus = (params) => http.get('business/contract/getContractStatus', {params})
  69. // 1获得考场
  70. export const examSitePage = (params) => http.get('business/exam-site/list', {params})
  71. // 2获得车辆
  72. export const examCarPage = (params) => http.get('business/exam-car/page', {params})
  73. // 3 获得考场模拟排课
  74. export const examSimulationClass = (params) => http.get('business/exam-simulation-class/get', {params})
  75. // 4 创建预约
  76. export const examSimulationCreate = (data) => http.post('business/exam-simulation-record/create', data)
  77. // 5查看考场模拟记录
  78. export const examSimulationRecord = (params) => http.get('business/exam-simulation-record/page', {params})
  79. // 6 考场模拟详情
  80. export const examSimulationGet = (params) => http.get('business/exam-simulation-record/get', {params})
  81. // 7取消预约
  82. export const cancelSimulation = (data) => http.put(`business/exam-simulation-record/cancelSimulation?id=${data.id}`)
  83. // 1获得实操预约排课
  84. export const scheduleClass = (params) => http.get('business/booking/schedule-class/get', {params})
  85. // 2,创建预约记录
  86. export const masterCreate = (data) => http.post('business/booking/master/create', data)
  87. // 3,获取实操预约记录
  88. export const masterPage = (params) => http.get('business/booking/master/page', {params})
  89. // 4,实操预约详情
  90. export const masterDetail = (params) => http.get('business/booking/master/get', {params})
  91. // 5实操取消预约
  92. export const masterCancelBooking = (data) => http.put('business/booking/master/cancelBooking/'+data, )
  93. // 我的订单
  94. export const applyOrderPage = (params) => http.get('app/apply-order/page', {params})
  95. // 我的订单详情
  96. export const applyOrderGet = (params) => http.get('app/apply-order/get', {params})
  97. // 线上提交学员退款信息
  98. export const applyOnlineFund = (data) => http.post('app/refund/applyOnlineFund', data)
  99. // 查询退费详情
  100. export const selectRefundDetail = (params) => http.get('app/refund/selectRefundDetail', {params})
  101. // 获得退款记录分页
  102. export const refundPage = (params) => http.get('app/refund/page', {params})
  103. // 获取保存的biztonken
  104. export const getbiztoken = (params) => http.get('app/student-record/getbiztoken', {params})
  105. // 退款原因
  106. export const getdictDataList = (params) => http.get('app/refund/getdictDataList', {params})
  107. // 轮询是否已报名
  108. export const getApplyStep = (params) => http.get('app/student-record/getApplyStep', {params})
  109. // 查询缴费凭证
  110. export const getStudentVoucher = (params) => http.get('app/apply-order/getStudentVoucher.do', {params})
  111. // 扫卡识别银行卡号
  112. export const scanningBanks = (params) => http.get('app/apply-order/scanningBanks.do', {params})
  113. // 删除账号
  114. export const deleteTest = (params) => http.get('app/student-record/deleteTest', {params})
  115. // 用户协议和隐私协议
  116. export const getAgreement = (params={}) => http.get('app/student-record/getAgreement', {params})
  117. // 学车流程
  118. export const getDriveProcessDetails = (params={}) => http.get('app/student-record/getDriveProcessDetails', {params})
  119. // 学时查询
  120. export const getStudentProcess = (params={}) => http.get('app/student-process/getStudentProcess', {params})
  121. // 获得预报名记录列表
  122. export const trainingApplyList = (params={}) => http.get('app/training-apply/list', {params})
  123. // 删除预报名记录
  124. export const trainingApplyDelete = (params={}) => http.delete('app/training-apply/delete?id='+params.id, )
  125. // 新增的接口
  126. export const getBannerList = (params={}) => http.get('business/video/getBannerList', {params})
  127. // 获得推荐教练员信息列表
  128. export const getRecommendList = (data={}) => http.get('business/coach/recommendCoachList', data )
  129. // 推荐驾校
  130. export const recommendSchoolList = (params={}) => http.get('business/school/recommendSchoolList', {params})
  131. // 教练评价
  132. export const getBycoachId = (params={}) => http.get('business/appcomplain/getBycoachId', {params})
  133. // 实名人脸核身---获取certifyId
  134. export const getInitFaceVerify = (data) => http.post('app/student-record/getInitFaceVerify', data)
  135. // 实名人脸核身---核身结果
  136. export const GetDescribeFaceVerify = (params={}) => http.get('app/student-record/GetDescribeFaceVerify', {params})
  137. // 人脸核身---获取certifyId
  138. export const getInitBodyFaceVerify = (data) => http.post('app/student-record/getInitBodyFaceVerify', data)
  139. // 人脸核身---核身结果
  140. export const getDescribeBodyFaceVerify = (params={}) => http.get('app/student-record/getDescribeBodyFaceVerify', {params})
  141. // 获得科目一学习状态
  142. export const getStudentSubject1Status = (data) => http.post('app/student-process/getStudentSubject1Status', data)
  143. // 获得科目二学习状态
  144. export const getStudentSubject2Status = (data) => http.post('app/student-process/getStudentSubject2Status', data)
  145. // 获得科目三学习状态
  146. export const getStudentSubject3Status = (data) => http.post('app/student-process/getStudentSubject3Status', data)
  147. // 获得科目四学习状态
  148. export const getStudentSubject4Status = (data) => http.post('app/student-process/getStudentSubject4Status', data)
  149. // 实操签到
  150. export const operationSigin = (data) => http.post('business/coach/sign/in', data)
  151. // 学员签到信息校验接口
  152. export const vailStudentInfo = (data) => http.post('business/coach/sign/vailStudentInfo', data)
  153. // 签退校验
  154. export const signOutAuth = (data) => http.post('business/student/sign/outAuth', data)
  155. // 签退
  156. export const signOut = (data) => http.post('business/student/sign/out', data)
  157. // 学员扫码签到前置校验——理科
  158. export const vailStudentSignSubject1 = (data) => http.post('business/student/theorySign/before_in', data)
  159. // 学员扫码签退前置校验——理科
  160. export const vailStudentSignOutSubject1 = (data) => http.post('business/student/theorySign/before_out', data)
  161. // 学员扫码签到—理科
  162. export const theorySignSubject1 = (data) => http.post('business/student/theorySign/in', data)
  163. // 学员扫码签退 -- 签退不做人脸—理科
  164. export const theorySignOutSubject1 = (data) => http.post('business/student/theorySign/out', data)
  165. // 支付
  166. export const getStudentByPayment = (params={}) => http.get('app/student-record/getStudentByPayment', {params})
  167. // 补签
  168. export const reSignOut = (data) => http.post('business/student/sign/reSignOut', data)
  169. // 学员扫码签到记录 -- 按月查询
  170. export const monthSignRecord = (data) => http.post('business/student/sign/monthSignRecord', data)
  171. // 学员扫码签到记录 -- 按月查询-理科
  172. export const monthSignRecordSubjiect1 = (data) => http.post('business/student/theorySign/monthSignRecord', data)
  173. // 学员扫码签到记录 -- 按天查询
  174. export const signDetail = (data) => http.post('business/student/sign/signDetail', data)
  175. // 学员扫码签到记录 -- 按天查询-理科
  176. export const signDetailSubjiect1 = (data) => http.post('business/student/theorySign/signDetail', data)
  177. // 学时确认
  178. export const periodConfirm = (data) => http.post('app/student-process/periodConfirm', data)
  179. // 获得学员动态
  180. export const getStudentDynamics = (data) => http.post('app/student-dynamic/getStudentDynamics', data)
  181. // 根据已过科目计算价格
  182. export const paymentPrice = (data) => http.post('app/student-record/paymentPrice', data)
  183. // 创建订单
  184. export const pre_create = (data) => http.post('pay/ysb/pre_create', data)
  185. // 创建支付应用信息加密
  186. export const param_sign = (data) => http.post('pay/ysb/param_sign', data)
  187. // 支付订单详情接口
  188. export const course_info = (data) => http.post('pay/ysb/course_info', data)
  189. // 查询支付状态
  190. export const order_info = (data) => http.post('pay/ysb/order_info', data)
  191. // 退学申请
  192. export const refuse_apply = (data) => http.post('pay/ysb/refuse_apply', data)
  193. // 获取退款申请的金额
  194. export const refund_amount = (data) => http.post('pay/ysb/refund_amount', data)
  195. // 头像修改申请
  196. export const avatarApply = (data) => http.post('app/student-record/avatar_apply', data)