index.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /**
  2. * 星闪豹appid
  3. */
  4. export const ZSWLXSB_APPID = 'wxbc64403830bb13c5'
  5. export const ZSWLZSDD_APPID = 'wx9894a01b9e92c368'
  6. export const VITE_OSS_BASE_URL = 'https://zswl-shop.oss-cn-chengdu.aliyuncs.com/'
  7. const mapEnvVersion = {
  8. /**
  9. * 开发版
  10. */
  11. // develop: 'http://192.168.1.166:8080', // 张
  12. develop: 'http://192.168.1.101:8080',
  13. // develop: 'http://192.168.0.157:8080',
  14. /**
  15. * 体验版
  16. */
  17. // trial: "http://192.168.1.166:8080/jeecg-boot",
  18. // trial: "http://192.168.0.11:8080/jeecg-boot",
  19. trial: 'http://192.168.1.101:8080',
  20. /**
  21. * 正式版
  22. */
  23. release: '',
  24. }
  25. const mapEnvStaticVersion = {
  26. /**
  27. * 测试环境
  28. */
  29. develop: 'http://192.168.1.242/static',
  30. /**
  31. * 体验环境
  32. */
  33. trial: 'http://192.168.1.242/static',
  34. /**
  35. * 正式环境
  36. */
  37. release: 'http://192.168.1.242/static',
  38. }
  39. /**
  40. * Base URL请求基本url
  41. */
  42. export const BASE_URL
  43. = mapEnvVersion[uni.getAccountInfoSync().miniProgram.envVersion]
  44. /**
  45. * 静态资源服务
  46. */
  47. export const StaticUrl = mapEnvStaticVersion[uni.getAccountInfoSync().miniProgram.envVersion]
  48. /**
  49. * 是否存在这些页面,存在则显示tabbar
  50. * 防止tabbar闪烁
  51. */
  52. export const xsbTabbarName = [
  53. 'xsb-home',
  54. 'xsb-classfiy',
  55. 'xsb-my',
  56. 'xsb-cart',
  57. ]