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 }}) // 获取个人信息 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,) // 驾校列表分页 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 getSchoolListComment = (params) => http.get('business/school/getListComment', {params: params}) // 驾校详情 export const getSchoolDetail = (params) => http.get('business/school/getSchool', {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 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 uploadImg = (data) => http.post('infra/file/upload', data) // 驾照类型 export const licenseType = () => http.get('system/dict/licenseType', ) // 区域 export const nachangList = () => http.get('system/area/nachangList', )