wxconstant.js 2.6 KB

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