config.js 877 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. const node_dev = process.env.H_NODE_ENV;
  2. //运行到浏览器用的
  3. // 64
  4. // let baseUrl='https://wx.hw.hongweisoft.com/parking';
  5. // let upFileUrl='https://wx.hw.hongweisoft.com/ycpharmacy/file/upload/single/minio';
  6. // 正式
  7. let baseUrl='https://admin.pdzhtc.com/pudprod-api';
  8. let upFileUrl='https://admin.pdzhtc.com/pudprod-api/file/tencent/upload';
  9. //打包用的
  10. if (node_dev) {
  11. baseUrl = process.env.H_BASE_URL;
  12. upFileUrl = process.env.H_UP_FILE_URL
  13. }
  14. console.log('baseUrl',baseUrl);
  15. const config = {
  16. // wxAppid:'wxbe90cc7c5233dd84',// 测试wxAppid
  17. //#ifdef APP-PLUS
  18. platform:'app',
  19. //#endif
  20. //#ifdef H5
  21. platform:'h5',
  22. //#endif
  23. baseUrl:baseUrl,
  24. upFileUrl:upFileUrl,
  25. // 设备类型
  26. deviceTypeList:[
  27. {label:'全部类型',value:''},
  28. {label:'地磁',value:'1'},
  29. {label:'车位锁',value:'2'},
  30. {label:'道闸',value:'3'}
  31. ]
  32. }
  33. export {
  34. config
  35. }