洛阳学员端
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.

300 lines
14 KiB

10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
8 months ago
10 months ago
10 months ago
8 months ago
8 months ago
9 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
10 months ago
10 months ago
8 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. // 附近场地
  15. // export const getexamSite = (params) => http.get('business/school/getexamSite', {params: params})
  16. // 考场详情
  17. // export const getExamSiteDatil = (params) => http.get('business/school/getExamSiteDatil', {params: params})
  18. // 考场资讯
  19. // export const getExamSiteInfo = (params) => http.get('business/school/getExamSiteInfo', {params: params})
  20. // 创建驾校评价
  21. export const addSchoolComment = (data={}) => http.post('business/appcomplain/addSchoolComment', data,)
  22. // 创建教练评价
  23. export const addCoachComment = (data={}) => http.post('business/appcomplain/addCoachComment', data,)
  24. // 我的评价
  25. export const getUsersCommentById = (data) => http.post('business/appcomplain/getUsersById', data)
  26. // 获得学员档案记录
  27. export const getStudentinfo = () => http.get('app/student-record/get', )
  28. // 驾校评论分页
  29. export const getSchoolListComment = (params) => http.get('business/school/getListComment', {params: params})
  30. // 教练评价分页
  31. export const getListCoachComment = (params) => http.get('business/school/getListCoach', {params: params})
  32. // 驾校详情
  33. export const getSchoolDetail = (params) => http.get('business/school/getSchool', {params: params})
  34. // 驾校班型
  35. export const schoolClass = (params) => http.get('business/school-class/page', {params: params})
  36. // 教练列表分页
  37. export const coachPage = (params) => http.get('business/coach/page', {params: params})
  38. // 公益视频
  39. // export const publicVideoPage = (params) => http.get('business/video/page', {params: params})
  40. // 公益视频 详情
  41. // export const publicGetvideo = (params) => http.get('business/video/getvideo', {params: params})
  42. // 公益视频点赞
  43. // export const createUpvote = (data) => http.post('business/contentdata/createUpvote', data)
  44. // 公益视频取消点赞 upvoteId
  45. // export const deleteUpvote = (data) => http.delete(`/business/contentdata/deleteUpvote?upvoteId=${data.upvoteId}&mobile=${data.mobile}`)
  46. // 公益视频收藏
  47. // export const createCollect = (data) => http.post('business/contentdata/createCollect', data)
  48. // 公益视频取消收藏 CollectId
  49. // export const deleteRetransmission = (data) => http.delete(`business/contentdata/deleteCollect?collectId=${data.CollectId}&mobile=${data.mobile}`)
  50. // 公益视频分享
  51. // export const createRetransmission = (data) => http.post('business/contentdata/createRetransmission', data)
  52. // 公益视频是否点赞收藏
  53. // export const getlikesCollection = (params) => http.get('business/users/getContent', {params: params})
  54. // 公益视频我的收藏
  55. // export const getcollectVideo = (params) => http.get('business/users/getcollectVideo', {params: params})
  56. // 行业资讯,
  57. export const getarticleList = (params) => http.get('business/video/article', {params: params})
  58. // 行业政策
  59. export const getarticlezcList = (params) => http.get('business/video/articlezc', {params: params})
  60. // 行业资讯,行业政策 详情
  61. export const getarticle = (params) => http.get('business/video/getarticle', {params: params})
  62. // 创建咨询
  63. export const createconsult = (data) => http.post('business/appcomplain/createconsult', data)
  64. // 创建投诉
  65. export const createcomplain = (data) => http.post('business/appcomplain/createcomplain', data)
  66. // 关闭投诉/咨询
  67. export const consultationClosed = (params) => http.get('business/appcomplain/closed', {params: params})
  68. // 投诉类型
  69. export const consultationType = (params) => http.get('system/dict/consultationType',)
  70. // 投诉咨询记录
  71. export const studentComplain = (params) => http.get('business/appcomplain/studentComplain', {params: params})
  72. // 常见问题
  73. export const askedQuestion = (params) => http.get('business/complainqa/page', {params: params})
  74. // 获取地区
  75. export const areaTree = () => http.get('system/area/tree', )
  76. // 驾照类型
  77. export const licenseType = () => http.get('system/dict/licenseType', )
  78. // 区域
  79. export const nachangList = () => http.get('system/area/luoyangList', )
  80. // 线上提交学员报名信息
  81. export const applyOnline = (data) => http.post('app/student-record/applyOnline', data)
  82. // 人脸核身---获取BizToken
  83. export const getpersonface = (params) => http.get('app/student-record/getpersonface', {params})
  84. // 人脸核身结果查询
  85. export const GetDetectInfoEnhanced = (params) => http.get('app/student-record/GetDetectInfoEnhanced', {params})
  86. // 证件类型获取
  87. export const getCardType = (params) => http.get('system/dict/cardType', {params})
  88. // // 获得合同信息
  89. // export const getContract = (params) => http.get('business/contract/get', {params})
  90. // // 创建合同信息
  91. // export const contractCreate = (data) => http.post('business/contract/create', data)
  92. // // 获取驾校的合同
  93. // export const getSchoolContract = (params) => http.get('business/contract/getSchoolContract', {params})
  94. // 我的合同
  95. export const selectContractPdfBase64 = (params) => http.get('business/contract/selectContractPdfBase64', {params})
  96. // 获取合同链接
  97. export const getSignContract = (data) => http.post('business/contract/signContract', data)
  98. // 查询学员合同签署状态
  99. export const getContractStatus = (params) => http.get('business/contract/getContractStatus', {params})
  100. // 1获得模拟预约点
  101. // export const simulationPoint = (params) => http.get('business/booking/simulation-point/page', {params})
  102. // 2获得模拟器排课
  103. // export const simulationClass = (params) => http.get('business/booking/simulation-class/get', {params})
  104. // 3获得模拟器
  105. // export const simulationDevices = (params) => http.get('business/booking/simulation-devices/list', {params})
  106. // 4创建模拟预约
  107. // export const simulationCreate = (data) => http.post('business/booking/simulation-record/create', data)
  108. // 5获得模拟预约记录
  109. // export const simulationPage = (params) => http.get('business/booking/simulation-record/page', {params})
  110. // 6获得模拟详情
  111. // export const simulationDetail = (params) => http.get('business/booking/simulation-record/get', {params})
  112. // 7取消模拟预约
  113. // export const cancelSimulationDevice = (params) => http.put('business/booking/simulation-record/cancelSimulation?id='+ params.id,)
  114. // 1获得考场
  115. export const examSitePage = (params) => http.get('business/exam-site/list', {params})
  116. // 2获得车辆
  117. export const examCarPage = (params) => http.get('business/exam-car/page', {params})
  118. // 3 获得考场模拟排课
  119. export const examSimulationClass = (params) => http.get('business/exam-simulation-class/get', {params})
  120. // 4 创建预约
  121. export const examSimulationCreate = (data) => http.post('business/exam-simulation-record/create', data)
  122. // 5查看考场模拟记录
  123. export const examSimulationRecord = (params) => http.get('business/exam-simulation-record/page', {params})
  124. // 6 考场模拟详情
  125. export const examSimulationGet = (params) => http.get('business/exam-simulation-record/get', {params})
  126. // 7取消预约
  127. export const cancelSimulation = (data) => http.put(`business/exam-simulation-record/cancelSimulation?id=${data.id}`)
  128. // 1获得实操预约排课
  129. export const scheduleClass = (params) => http.get('business/booking/schedule-class/get', {params})
  130. // 2,创建预约记录
  131. export const masterCreate = (data) => http.post('business/booking/master/create', data)
  132. // 3,获取实操预约记录
  133. export const masterPage = (params) => http.get('business/booking/master/page', {params})
  134. // 4,实操预约详情
  135. export const masterDetail = (params) => http.get('business/booking/master/get', {params})
  136. // 5实操取消预约
  137. export const masterCancelBooking = (data) => http.put('business/booking/master/cancelBooking/'+data, )
  138. // 我的订单
  139. export const applyOrderPage = (params) => http.get('app/apply-order/page', {params})
  140. // 我的订单详情
  141. export const applyOrderGet = (params) => http.get('app/apply-order/get', {params})
  142. // 线上提交学员退款信息
  143. export const applyOnlineFund = (data) => http.post('app/refund/applyOnlineFund', data)
  144. // 查询退费详情
  145. export const selectRefundDetail = (params) => http.get('app/refund/selectRefundDetail', {params})
  146. // 获得退款记录分页
  147. export const refundPage = (params) => http.get('app/refund/page', {params})
  148. // 获取保存的biztonken
  149. export const getbiztoken = (params) => http.get('app/student-record/getbiztoken', {params})
  150. // 退款原因
  151. export const getdictDataList = (params) => http.get('app/refund/getdictDataList', {params})
  152. // 轮询是否已报名
  153. export const getApplyStep = (params) => http.get('app/student-record/getApplyStep', {params})
  154. // 查询缴费凭证
  155. export const getStudentVoucher = (params) => http.get('app/apply-order/getStudentVoucher.do', {params})
  156. // 扫卡识别银行卡号
  157. export const scanningBanks = (params) => http.get('app/apply-order/scanningBanks.do', {params})
  158. // 删除账号
  159. export const deleteTest = (params) => http.get('app/student-record/deleteTest', {params})
  160. // 用户协议和隐私协议
  161. export const getAgreement = (params={}) => http.get('app/student-record/getAgreement', {params})
  162. // 学车流程
  163. export const getDriveProcessDetails = (params={}) => http.get('app/student-record/getDriveProcessDetails', {params})
  164. // 学时查询
  165. export const getStudentProcess = (params={}) => http.get('app/student-process/getStudentProcess', {params})
  166. // 获得预报名记录列表
  167. export const trainingApplyList = (params={}) => http.get('app/training-apply/list', {params})
  168. // 删除预报名记录
  169. export const trainingApplyDelete = (params={}) => http.delete('app/training-apply/delete?id='+params.id, )
  170. // 新增的接口
  171. export const getBannerList = (params={}) => http.get('business/video/getBannerList', {params})
  172. // 获得推荐教练员信息列表
  173. export const getRecommendList = (data={}) => http.get('business/coach/recommendCoachList', data )
  174. // 推荐驾校
  175. export const recommendSchoolList = (params={}) => http.get('business/school/recommendSchoolList', {params})
  176. // 教练评价
  177. export const getBycoachId = (params={}) => http.get('business/appcomplain/getBycoachId', {params})
  178. // 实名人脸核身---获取certifyId
  179. export const getInitFaceVerify = (data) => http.post('app/student-record/getInitFaceVerify', data)
  180. // 实名人脸核身---核身结果
  181. export const GetDescribeFaceVerify = (params={}) => http.get('app/student-record/GetDescribeFaceVerify', {params})
  182. // 人脸核身---获取certifyId
  183. export const getInitBodyFaceVerify = (data) => http.post('app/student-record/getInitBodyFaceVerify', data)
  184. // 人脸核身---核身结果
  185. export const getDescribeBodyFaceVerify = (params={}) => http.get('app/student-record/getDescribeBodyFaceVerify', {params})
  186. // 获得科目一学习状态
  187. export const getStudentSubject1Status = (data) => http.post('app/student-process/getStudentSubject1Status', data)
  188. // 获得科目二学习状态
  189. export const getStudentSubject2Status = (data) => http.post('app/student-process/getStudentSubject2Status', data)
  190. // 获得科目三学习状态
  191. export const getStudentSubject3Status = (data) => http.post('app/student-process/getStudentSubject3Status', data)
  192. // 获得科目四学习状态
  193. export const getStudentSubject4Status = (data) => http.post('app/student-process/getStudentSubject4Status', data)
  194. // 实操签到
  195. export const operationSigin = (data) => http.post('business/coach/sign/in', data)
  196. // 学员签到信息校验接口
  197. export const vailStudentInfo = (data) => http.post('business/coach/sign/vailStudentInfo', data)
  198. // 签退校验
  199. export const signOutAuth = (data) => http.post('business/student/sign/outAuth', data)
  200. // 签退
  201. export const signOut = (data) => http.post('business/student/sign/out', data)
  202. // 支付
  203. export const getStudentByPayment = (params={}) => http.get('app/student-record/getStudentByPayment', {params})
  204. // 补签
  205. export const reSignOut = (data) => http.post('business/student/sign/reSignOut', data)
  206. // 学员扫码签到记录 -- 按月查询
  207. export const monthSignRecord = (data) => http.post('business/student/sign/monthSignRecord', data)
  208. // 学员扫码签到记录 -- 按天查询
  209. export const signDetail = (data) => http.post('business/student/sign/signDetail', data)
  210. // 学时确认
  211. export const periodConfirm = (data) => http.post('app/student-process/periodConfirm', data)
  212. // 获得学员动态
  213. export const getStudentDynamics = (data) => http.post('app/student-dynamic/getStudentDynamics', data)
  214. // 根据已过科目计算价格
  215. export const paymentPrice = (data) => http.post('app/student-record/paymentPrice', data)
  216. // 创建订单
  217. export const pre_create = (data) => http.post('pay/ysb/pre_create', data)
  218. // 创建支付应用信息加密
  219. export const param_sign = (data) => http.post('pay/ysb/param_sign', data)
  220. // 支付订单详情接口
  221. export const course_info = (data) => http.post('pay/ysb/course_info', data)
  222. // 查询支付状态
  223. export const order_info = (data) => http.post('pay/ysb/order_info', data)
  224. // 退学申请
  225. export const refuse_apply = (data) => http.post('pay/ysb/refuse_apply', data)