import $http from '@/config/requestConfig'; // 获取测算的分类 export async function getindexnav(params){ let res = await $http.get('/test/index/nav', params); return res; } // 获取分类下的测算 export async function gettextList(params){ let res = await $http.get('/test/index/name', params); return res; } // 获取单个测试的题目和答案 export async function getquestionList(params){ let res = await $http.get('/test/index/list', params); return res; } // 获取单个测试的结果 export async function getquestionresult(params){ let res = await $http.get('/test/index/result', params); return res; } // 获取banner export async function getpublicread(params){ let res = await $http.get('/test/public/read', params); return res; } // 获取热门推荐测算 export async function gethotname(params){ let res = await $http.get('/test/index/hot_name', params); return res; } // 订单提交 export async function postorder(params){ let res = await $http.post('/test/order/add', params); return res; } export async function getorderResult(params){ let res = await $http.get('/test/order/order_result', params); return res; } export async function getorderList(params){ let res = await $http.get('/test/order/order_list', params); return res; }