const http = uni.$u.http //用户登录 export const loginHandle = (params, config = {}) => http.post('/api/user/login', params, config); //退出登录 export const logout = (params, config = {}) => http.post('/api/user/logout', params, config); //用户个人中心 export const getUserInfo = (params, config = {custom: { auth: true }}) => http.get('/api/user/index', {params}, config); //关于我们 export const aboutUs = (params, config = {custom: { auth: true }}) => http.get('/api/index/about', {params}, config); //隐私协议 export const privacyPolicy = (params, config = {custom: { auth: true }}) => http.get('/api/index/privacyPolicy', {params}, config); //用户协议 export const getUserText = (params, config = {custom: { auth: true }}) => http.get('/api/index/userAgreement', {params}, config); //用户须知 export const getUserKnow = (params, config = {custom: { auth: true }}) => http.get('/api/index/userNotice', {params}, config); //上传图片 export const uploadImg = (params, config = {custom: { auth: true }}) => http.get('/api/common/upload', {params}, config); //反馈 export const setFeedBack = (params, config = {custom: { auth: true }}) => http.post('/api/index/feedback', params, config); //验收不通过 export const unpassHandle = (params, config = {custom: { auth: true }}) => http.post('api/work_order/noReason ', params, config); //获取配置项 export const getSetting = (params, config = {custom: { auth: true }}) => http.get('/api/index/config', {params}, config); //工单列表 export const orderList = (params, config = {custom: { auth: true }}) => http.get('/api/work_order/index', {params}, config); //添加工单 export const addOrderHandle = (params, config = {custom: { auth: true }}) => http.post('/api/work_order/add', params, config); //获取工单详情 export const getDetails = (params, config = {custom: { auth: true }}) => http.get('/api/work_order/detail', {params}, config); //安装调试记录 export const getInstallLog = (params, config = {custom: { auth: true }}) => http.get('/api/work_order/getLog', {params}, config); //添加工单调试记录 export const addLogHandle = (params, config = {custom: { auth: true }}) => http.post('/api/work_order/addLog', params, config); //安装规范 export const getFile = (params, config = {custom: { auth: true }}) => http.get('/api/work_order/getNorm', {params}, config); //获取产品类型和型号 export const getProType = (params, config = {custom: { auth: true }}) => http.get('/api/work_order/getProduct', {params}, config); //获取配置项 export const getAcceptance = (params, config = {custom: { auth: true }}) => http.get('/api/work_order/acceptance', {params}, config); //签字 export const setSing = (params, config = {custom: { auth: true }}) => http.post('/api/work_order/sing', params, config); //案例分享 export const exampleShare = (params, config = {custom: { auth: true }}) => http.get('/api/index/caseShare', {params}, config); //用户签字 export const userSign = (params, config = {}) => http.post('/api/work_order/userSing', params, config); //用户签字信息校验 export const checkUserSign = (params, config = {custom: { auth: true }}) => http.post('/api/work_order/shareOrder', params, config);