config.js 954 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * 配置通用
  3. */
  4. // const node_dev = process.env.H_NODE_ENV;
  5. // //运行到浏览器用的
  6. // let baseUrl='/api';
  7. // let upFileUrl='/api';
  8. // //打包用的
  9. // if (node_dev) {
  10. // baseUrl = process.env.H_BASE_URL;
  11. // upFileUrl = process.env.H_UP_FILE_URL
  12. // }
  13. //64
  14. // let baseUrl='https://xusfoodapi.hw.hongweisoft.com/appapi/app';
  15. // let upFileUrl='http://fileupload.hw.hongweisoft.com/upload/single/minio';
  16. // let staticUrl='http://res.hw.hongweisoft.com/xushuo/';
  17. //正式
  18. let baseUrl='https://xusapi.gzxsjt.cn/appapi/app';
  19. let upFileUrl='https://xusapi.gzxsjt.cn/thirdapi/upload/single/minio';
  20. let staticUrl='http://res.gzxsjt.cn/xushuo/';
  21. const commonConfig = {
  22. wxAppid: '', // 测试wxAppid
  23. baseUrl: baseUrl, // 服务器地址
  24. uploadFileUrl: upFileUrl, // 上传文件路径
  25. staticUrl:staticUrl,
  26. paginationConfig:{
  27. pageNum: 1,
  28. pageSize: 10
  29. },//分页参数
  30. successCode:200,//接口返回状态
  31. }
  32. export {
  33. commonConfig
  34. }