12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- function BaseUrl(){
- // var baseUrl = 'http://10.1.80.188:8080'
- var baseUrl = 'https://ss.ceduizixun.com'
- 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/',//员工注册
- getByNormRank: '/integral/inte/invoices/getByNormRank/',//根据类别排序
- getByNormIdRank: '/integral/inte/invoices/getByNormIdRank/',//规范明细排名
- getAccessToken:'/integral/wx/getAccessToken/',
- sendMessage: '/integral/wx/sendMessage/',//发送信息
- getByEmp: '/integral/inte/company/getByEmp/',
- }
- module.exports = {
- BaseUrl: BaseUrl,
- getTXMapApiKay: getTXMapApiKay,
- getUrl: getUrl,
- comLog: comLog,
- isTest: isTest
- }
|