config.js 708 B

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