import { http } from '@/uni_modules/uview-plus' //登录 export const loginApi = (data) => http.post('token/login', data) // 验证码登录 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 questbanktypeApi = (params={}) => http.get('idex/questbanktype/list', {params}) // 进入答题页 export const startQuestionApi = (data) => http.post('questionBank/startQuestion', data,) // 提交答案 export const submitAnswerResultApi = (data) => http.post('questionBank/submitAnswerResult.do', data,) // 上一题-下一题-直接跳到几题 export const getQuestionApi = (data) => http.post('questionBank/getQuestion', data,) // 添加反馈 export const questionCommentAdd = (data) => http.post('questionComment/add', data,) // 通知 export const indexNoticeApi = (subject) => http.get('idex/notice-'+subject, ) // 轮播图 export const indexAdApi = (subject) => http.get('idex/ad-'+subject, ) // 获取顺序、精选练习已学题目,总题目数 export const indexAdCount = (data) => http.get(`idex/count-${data.subject}-${data.carType}`, ) // 考试流程 export const examProcessInfo = (subject) => http.get(`idex/examProcessInfo-${subject}`, ) // 分类学习了级 export const columnPid = (pid) => http.get(`idex/column-${pid}`, ) // 分类学习父级id export const columnFid = (data) => http.get(`idex/${data.type}-column-${data.stepType}-${data.carType}`, ) // 添加|取消 收藏 错题 export const questionWrongColle = (data) => http.post('questionWrong/dealCollection', data,) // 删除 export const deleteWrongOrCol = (data) => http.post('questionWrong/deleteWrongOrCol', data,) // 我的错题 export const myWrongQuestion = (data) => http.post('questionWrong/myWrongQuestion', data,) // 点击错题与收藏时,显示错题|收藏下 子菜单 export const questionSubmenu = (data) => http.post('questionWrong/submenu', data,) // 点击错题|收藏 下的某个知识点的题目列表 export const findQuestionList = (data) => http.post('questionWrong/findQuestionList', data,) // 我的学习--天数、错题、收藏、考试记录、合格率 export const mystudy = (carType) => http.get(`mystudy/mystudy-${carType}`, ) // 模拟考试科目1或者4考试首页 export const questionExam = (data) => http.get(`questionExam/exam-${data.stepType}-${data.carType}`, ) // 模拟考试科目1或者4考试成绩单 export const examTranscript = (data) => http.get(`questionExam/examTranscript-${stepType}-${carType}`, ) // 开始考试 export const startExam = (data) => http.post('questionExam/startExam', data,) // 交卷,模拟考试保存接口 export const startExamDo = (data) => http.post('questionExam/saveExam.do', data,) // 考试结果页 export const examId = (data) => http.post(`questionExam/result-${examId}`, data,)