|
|
var http = uni.$u.http
// 隐私政策
// export const getAgreement = (params, config = {}) => http.post('/util/manage/getAgreement.do', params, config)
// 验证码登录
export const loginSMS = (data) => http.post('member/auth/sms-login', data, { custom: { noToken: true }}) // 登录发验证码
export const getLoginCode = (data) => http.post('member/auth/send-sms-code', data, { custom: { noToken: true, catch: true,}}) // 获取个人信息
export const getUserInfo = (data) => http.post('member/user/get', {header: {'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'}}) // 退出登录
export const logOut = (data={}) => http.post('member/auth/logout', data, {custom: {catch: true, toast: false }}) // 驾校列表分页
export const schoolPage = (params) => http.get('business/school/page', {params: params}) // 附近场地
export const getexamSite = (params) => http.get('business/school/getexamSite', {params: params}) // 考场详情
export const getExamSiteDatil = (params) => http.get('business/school/getExamSiteDatil', {params: params}) // 考场资讯
export const getExamSiteInfo = (params) => http.get('business/school/getExamSiteInfo', {params: params}) // 创建驾校评价
export const addSchoolComment = (data={}) => http.post('business/appcomplain/addSchoolComment', data,) // 创建教练评价
export const addCoachComment = (data={}) => http.post('business/appcomplain/addCoachComment', data,) // 我的评价
export const getUsersCommentById = (params) => http.get('business/appcomplain/getUsersById', {params: params}) // 获得学员档案记录
export const getStudentinfo = () => http.get('app/student-record/get', ) // 驾校评论分页
export const getSchoolListComment = (params) => http.get('business/school/getListComment', {params: params}) // 教练评价分页
export const getListCoachComment = (params) => http.get('business/school/getListCoach', {params: params}) // 驾校详情
export const getSchoolDetail = (params) => http.get('business/school/getSchool', {params: params}) // 驾校班型
export const schoolClass = (params) => http.get('business/school-class/page', {params: params}) // 教练列表分页
export const coachPage = (params) => http.get('business/coach/page', {params: params}) // 公益视频
export const publicVideoPage = (params) => http.get('business/video/page', {params: params}) // 公益视频 详情
export const publicGetvideo = (params) => http.get('business/video/getvideo', {params: params}) // 公益视频点赞
export const createUpvote = (data) => http.post('business/contentdata/createUpvote', data) // 公益视频取消点赞 upvoteId
export const deleteUpvote = (data) => http.delete(`/business/contentdata/deleteUpvote?upvoteId=${data.upvoteId}&mobile=${data.mobile}`) // 公益视频收藏
export const createCollect = (data) => http.post('business/contentdata/createCollect', data) // 公益视频取消收藏 CollectId
export const deleteRetransmission = (data) => http.delete(`business/contentdata/deleteCollect?collectId=${data.CollectId}&mobile=${data.mobile}`) // 公益视频分享
export const createRetransmission = (data) => http.post('business/contentdata/createRetransmission', data) // 公益视频是否点赞收藏
export const getlikesCollection = (params) => http.get('business/users/getContent', {params: params}) // 公益视频我的收藏
export const getcollectVideo = (params) => http.get('business/users/getcollectVideo', {params: params}) // 行业资讯,
export const getarticleList = (params) => http.get('business/video/article', {params: params}) // 行业政策
export const getarticlezcList = (params) => http.get('business/video/articlezc', {params: params}) // 行业资讯,行业政策 详情
export const getarticle = (params) => http.get('business/video/getarticle', {params: params}) // 创建咨询
export const createconsult = (data) => http.post('business/appcomplain/createconsult', data) // 创建投诉
export const createcomplain = (data) => http.post('business/appcomplain/createcomplain', data) // 关闭投诉/咨询
export const consultationClosed = (params) => http.get('business/appcomplain/closed', {params: params}) // 投诉类型
export const consultationType = (params) => http.get('system/dict/consultationType',) // 投诉咨询记录
export const studentComplain = (params) => http.get('business/appcomplain/studentComplain', {params: params}) // 常见问题
export const askedQuestion = (params) => http.get('business/complainqa/page', {params: params}) // 获取地区
export const areaTree = () => http.get('system/area/tree', ) // 驾照类型
export const licenseType = () => http.get('system/dict/licenseType', ) // 区域
export const nachangList = () => http.get('system/area/nachangList', ) // 线上提交学员报名信息
export const applyOnline = (data) => http.post('app/student-record/applyOnline', data) // 人脸核身---获取BizToken
export const getpersonface = (params) => http.get('app/student-record/getpersonface', {params}) // 人脸核身结果查询
export const GetDetectInfoEnhanced = (params) => http.get('app/student-record/GetDetectInfoEnhanced', {params}) // 证件类型获取
export const getCardType = (params) => http.get('system/dict/cardType', {params}) // // 获得合同信息
// export const getContract = (params) => http.get('business/contract/get', {params})
// // 创建合同信息
// export const contractCreate = (data) => http.post('business/contract/create', data)
// // 获取驾校的合同
// export const getSchoolContract = (params) => http.get('business/contract/getSchoolContract', {params})
// 我的合同
export const selectContractPdfBase64 = (params) => http.get('business/contract/selectContractPdfBase64', {params}) // 获取合同链接
export const getSignContract = (data) => http.post('business/contract/signContract', data) // 查询学员合同签署状态
export const getContractStatus = (params) => http.get('business/contract/getContractStatus', {params}) // 1获得模拟预约点
export const simulationPoint = (params) => http.get('business/booking/simulation-point/page', {params}) // 2获得模拟器排课
export const simulationClass = (params) => http.get('business/booking/simulation-class/get', {params}) // 3获得模拟器
export const simulationDevices = (params) => http.get('business/booking/simulation-devices/list', {params}) // 4创建模拟预约
export const simulationCreate = (data) => http.post('business/booking/simulation-record/create', data) // 5获得模拟预约记录
export const simulationPage = (params) => http.get('business/booking/simulation-record/page', {params}) // 6获得模拟详情
export const simulationDetail = (params) => http.get('business/booking/simulation-record/get', {params}) // 7取消模拟预约
export const cancelSimulationDevice = (params) => http.put('business/booking/simulation-record/cancelSimulation?id='+ params.id,) // 1获得考场
export const examSitePage = (params) => http.get('business/exam-site/list', {params}) // 2获得车辆
export const examCarPage = (params) => http.get('business/exam-car/page', {params}) // 3 获得考场模拟排课
export const examSimulationClass = (params) => http.get('business/exam-simulation-class/get', {params}) // 4 创建预约
export const examSimulationCreate = (data) => http.post('business/exam-simulation-record/create', data) // 5查看考场模拟记录
export const examSimulationRecord = (params) => http.get('business/exam-simulation-record/page', {params}) // 6 考场模拟详情
export const examSimulationGet = (params) => http.get('business/exam-simulation-record/get', {params}) // 7取消预约
export const cancelSimulation = (data) => http.put(`business/exam-simulation-record/cancelSimulation?id=${data.id}`) // 1获得实操预约排课
export const scheduleClass = (params) => http.get('business/booking/schedule-class/get', {params}) // 2,创建预约记录
export const masterCreate = (data) => http.post('business/booking/master/create', data) // 3,获取实操预约记录
export const masterPage = (params) => http.get('business/booking/master/page', {params}) // 4,实操预约详情
export const masterDetail = (params) => http.get('business/booking/master/get', {params}) // 5实操取消预约
export const masterCancelBooking = (data) => http.put('business/booking/master/cancelBooking/'+data, ) // 我的订单
export const applyOrderPage = (params) => http.get('app/apply-order/page', {params}) // 我的订单详情
export const applyOrderGet = (params) => http.get('app/apply-order/get', {params}) // 线上提交学员退款信息
export const applyOnlineFund = (data) => http.post('app/refund/applyOnlineFund', data) // 查询退费详情
export const selectRefundDetail = (params) => http.get('app/refund/selectRefundDetail', {params}) // 获得退款记录分页
export const refundPage = (params) => http.get('app/refund/page', {params}) // 获取保存的biztonken
export const getbiztoken = (params) => http.get('app/student-record/getbiztoken', {params}) // 退款原因
export const getdictDataList = (params) => http.get('app/refund/getdictDataList', {params}) // 轮询是否已报名
export const getApplyStep = (params) => http.get('app/student-record/getApplyStep', {params}) // 查询缴费凭证
export const getStudentVoucher = (params) => http.get('app/apply-order/getStudentVoucher.do', {params}) // 扫卡识别银行卡号
export const scanningBanks = (params) => http.get('app/apply-order/scanningBanks.do', {params}) // 删除账号
export const deleteTest = (params) => http.get('app/student-record/deleteTest', {params}) // 用户协议和隐私协议
export const getAgreement = (params={}) => http.get('app/student-record/getAgreement', {params}) // 学车流程
export const getDriveProcessDetails = (params={}) => http.get('app/inform/manage/getDriveProcessDetails.do', {params})
|