后台对接公共接口调用
//在utils里面写公共方法 比如说这个页面为path.js 页面 const prefix = 'https://dev.cdsoft.work/ct'; const getDepartmentList = prefix + '/mobile/getDepartmentList'; //员工注册 const employeeRegister=prefix + "/mobile/employeeRegister"; //伯爵订单--登录 1刷新 2.重新申请 审核通过 const getExamineStatusById = prefix +'/mobile/getExamineStatusById' //暴露接口,抛出 export { login, getDepartmentList, employeeRegister, getExamineStatusById // getUserInfo } //需要请求的方式 比如这个写在util.js 里面 /*get 请求 post 请求 */ /**发送GET请求**/ function getRequest(url, data, callback) { request(url, data, 'get', null, true, callback); } /**发送POST请求**/ function postRequest