function BaseUrl(){ var baseUrl = 'http://192.168.253.130:8080' return baseUrl } function getTXMapApiKay(){ return 'HPYBZ-IFY2J-E5KFY-K24IF-Q3UMS-GJFBV' } function isTest(){ var isTest = true //判断是否是测试版本,是则打印日志 return isTest } function comLog(key,value){ if (isTest()){ console.log(key, value) } } const getUrl = { getOpenid:'/integral/inte/employee/getOpenid/', //获取Openid Binding: '/integral/inte/employee/binding/', //关联用户 sendCode: '/integral/inte/employee/sendCode/', //获取验证码 getAd: '/integral/inte/ad/getAd/', //获取首页轮播图等 getRank: '/integral/inte/score/getRank/', //根据当前总积分取月排名 regist: '/integral/inte/employee/regist/', //员工注册 getDept: '/integral/inte/department/getDept/', //获取公司部门列表 getCotegory: '/integral/inte/category/getCotegory/', //获得分类列表 getNorm: '/integral/inte/norm/getNorm/', //获取相应的规章制度详情 getAllApproval: '/integral/inte/invoices/getAllApproval/', //获取审批相关(待审批,已审批,发起) saveMinusInvoices: '/integral/inte/invoices/saveMinusInvoices/', //保存扣积分 getAllRank: '/integral/inte/invoices/getAllRank/', //获取所有排名及加减分记录 getAllEmp: '/integral/inte/employee/getAllEmp/', //获取所有员工 getEmp: '/integral/inte/employee/getEmp/', //保存扣积分 getAllRank: '/integral/inte/invoices/getAllRank/', //获取所有排名及加减分记录 saveAddInvoices: '/integral/inte/invoices/saveAddInvoices/', //保存加积分 saveMinusInvoices: '/integral/inte/invoices/saveMinusInvoices/', //保存扣积分 getNormByCategoryId: '/integral/inte/norm/getNormByCategoryId/', //获取分类下相应的规章制度 getInvoices: '/integral/inte/invoices/getInvoices/', //获取提交的单据详情 withdrawInvoices: '/integral/inte/invoices/withdrawInvoices/', //撤回未审批的 approval: '/integral/inte/invoices/approval/', //审批 regist:'/integral/inte/employee/regist/',//员工注册 } module.exports = { BaseUrl: BaseUrl, getTXMapApiKay: getTXMapApiKay, getUrl: getUrl, comLog: comLog, isTest: isTest }