租房小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.0 KiB

11 months ago
11 months ago
11 months ago
7 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. import Vue from 'vue'
  2. import utils from './utils/utils.js'
  3. // 移除重复的 uvUI 导入和初始化,已在 main.js 中处理
  4. // 当前环境
  5. const type = 'dev'
  6. // 环境配置
  7. const config = {
  8. local : {
  9. baseUrl : 'http://127.0.0.1:8001/employ-api',
  10. },
  11. dev : {
  12. baseUrl : 'http://augcl.natapp1.cc/employ-api',
  13. },
  14. prod : {
  15. baseUrl : 'https://houserent-admin.hhlm1688.com/employ-api',
  16. // baseUrl : 'https://employadmin.augcl.com/employ-api',
  17. }
  18. }
  19. // 默认配置
  20. const defaultConfig = {
  21. mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
  22. aliOss: {
  23. url: 'https://image.hhlm1688.com/',
  24. config: {
  25. //桶的地址
  26. region: 'oss-cn-guangzhou',
  27. //id
  28. accessKeyId: 'LTAI5tQSs47izVy8DLVdwUU9',
  29. //密钥
  30. accessKeySecret: 'qHI7C3PaXYZySr84HTToviC71AYlFq',
  31. //桶的名字
  32. bucket: 'hanhaiimage',
  33. endpoint: 'oss-cn-shenzhen.aliyuncs.com',
  34. }
  35. },
  36. }
  37. uni.$uv.setConfig({
  38. config: {
  39. unit: 'px'
  40. },
  41. })
  42. Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type])
  43. export default Vue.prototype.$config