租房小程序前端代码
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.

53 lines
981 B

6 months ago
2 months ago
6 months ago
2 months ago
6 months ago
2 months ago
6 months ago
6 months ago
6 months ago
  1. import Vue from 'vue'
  2. import utils from './utils/utils.js'
  3. import uvUI from '@/uni_modules/uv-ui-tools'
  4. Vue.use(uvUI);
  5. // 当前环境
  6. const type = 'local'
  7. // 环境配置
  8. const config = {
  9. local : {
  10. baseUrl : 'http://127.0.0.1:8001/employ-api',
  11. },
  12. dev : {
  13. baseUrl : 'http://augcl.natapp1.cc/employ-api',
  14. },
  15. prod : {
  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://tennis-oss.xzaiyp.top/',
  24. config : {
  25. //桶的地址
  26. region: 'oss-cn-guangzhou',
  27. //id
  28. accessKeyId:'LTAI5tNycA46YTwm383dRvMV',
  29. //密钥
  30. accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
  31. //桶的名字
  32. bucket: 'zhuoqiu-image',
  33. endpoint:'oss-cn-guangzhou.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