wxconstant.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. function BaseUrl(){
  2. var baseUrl = 'http://192.168.253.130:8080'
  3. return baseUrl
  4. }
  5. function getTXMapApiKay(){
  6. return 'HPYBZ-IFY2J-E5KFY-K24IF-Q3UMS-GJFBV'
  7. }
  8. function isTest(){
  9. var isTest = true //判断是否是测试版本,是则打印日志
  10. return isTest
  11. }
  12. function comLog(key,value){
  13. if (isTest()){
  14. console.log(key, value)
  15. }
  16. }
  17. const getUrl = {
  18. getOpenid:'/integral/inte/employee/getOpenid/', //获取Openid
  19. Binding: '/integral/inte/employee/binding/', //关联用户
  20. sendCode: '/integral/inte/employee/sendCode/', //获取验证码
  21. getAd: '/integral/inte/ad/getAd/', //获取首页轮播图等
  22. getRank: '/integral/inte/score/getRank/', //根据当前总积分取月排名
  23. regist: '/integral/inte/employee/regist/', //员工注册
  24. getDept: '/integral/inte/department/getDept/', //获取公司部门列表
  25. getCotegory: '/integral/inte/category/getCotegory/', //获得分类列表
  26. getNorm: '/integral/inte/norm/getNorm/', //获取相应的规章制度详情
  27. getAllApproval: '/integral/inte/invoices/getAllApproval/', //获取审批相关(待审批,已审批,发起)
  28. saveMinusInvoices: '/integral/inte/invoices/saveMinusInvoices/', //保存扣积分
  29. getAllRank: '/integral/inte/invoices/getAllRank/', //获取所有排名及加减分记录
  30. getAllEmp: '/integral/inte/employee/getAllEmp/', //获取所有员工
  31. getEmp: '/integral/inte/employee/getEmp/', //保存扣积分
  32. getAllRank: '/integral/inte/invoices/getAllRank/', //获取所有排名及加减分记录
  33. saveAddInvoices: '/integral/inte/invoices/saveAddInvoices/', //保存加积分
  34. saveMinusInvoices: '/integral/inte/invoices/saveMinusInvoices/', //保存扣积分
  35. getNormByCategoryId: '/integral/inte/norm/getNormByCategoryId/', //获取分类下相应的规章制度
  36. getInvoices: '/integral/inte/invoices/getInvoices/', //获取提交的单据详情
  37. withdrawInvoices: '/integral/inte/invoices/withdrawInvoices/', //撤回未审批的
  38. approval: '/integral/inte/invoices/approval/', //审批
  39. regist:'/integral/inte/employee/regist/',//员工注册
  40. }
  41. module.exports = {
  42. BaseUrl: BaseUrl,
  43. getTXMapApiKay: getTXMapApiKay,
  44. getUrl: getUrl,
  45. comLog: comLog,
  46. isTest: isTest
  47. }