config.js 1.1 KB

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