config.js 580 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import {
  2. BASE_URI
  3. } from "./pages/utils/constant.js";
  4. // console.log(BASE_URI)
  5. var baseUrl = BASE_URI
  6. let device, platform;
  7. device = uni.getSystemInfoSync().brand + ' ' + uni.getSystemInfoSync().model;
  8. // #ifdef MP-WEIXIN
  9. platform = 'wxmini';
  10. // #endif
  11. // #ifdef APP-PLUS
  12. platform = uni.getSystemInfoSync().platform;
  13. // #endif
  14. // #ifndef APP-PLUS||MP-WEIXIN
  15. device = 'h5';
  16. // #endif
  17. // app版本
  18. const version = "1.0";
  19. // 高德地图 key
  20. const key = "53ea64b17287b1f7323e9f29870af813";
  21. export default {
  22. device,
  23. version,
  24. platform,
  25. key,
  26. baseUrl,
  27. }