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.

69 lines
1.8 KiB

9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
8 months ago
5 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
9 months ago
9 months ago
  1. import Vue from 'vue'
  2. import { deepMergeObject } from '@/utils/base.js'
  3. import uView from '@/uni_modules/uview-ui'
  4. Vue.use(uView)
  5. // 当前环境
  6. const type = 'prod'
  7. // 环境配置
  8. const config = {
  9. dev : {
  10. baseUrl : 'http://h5.xzaiyp.top/uav-api',
  11. },
  12. prod : {
  13. // baseUrl : 'https://uav-api.xzaiyp.top/uav-api',
  14. // baseUrl : 'https://api.olxbookbub.top/uav-oxl-api',//国外服务器
  15. // baseUrl : 'https://api.oxlbook.top/uav-oxl-api',//国外服务器第二版 2024-12-14
  16. baseUrl : 'https://api.oxlking.com/uav-oxl-api/',//国外服务器第三版 2025-5-8
  17. },
  18. }
  19. // 默认配置
  20. const defaultConfig = {
  21. mapKey : '',
  22. fileType : 'service',
  23. aliOss : {
  24. // url : 'https://tennis-oss.xzaiyp.top/',
  25. // config : {
  26. // //桶的地址
  27. // region: 'oss-cn-guangzhou',
  28. // //id
  29. // accessKeyId:'LTAI5tNycA46YTwm383dRvMV',
  30. // //密钥
  31. // accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
  32. // //桶的名字
  33. // bucket: 'zhuoqiu-image',
  34. // endpoint:'oss-cn-guangzhou.aliyuncs.com',
  35. // },
  36. //
  37. url : 'https://shop996image.oss-ap-southeast-5.aliyuncs.com',
  38. config : {
  39. //桶的地址
  40. region: 'oss-ap-southeast-5.aliyuncs.com',
  41. //id
  42. accessKeyId:'LTAI5tHmEEmaoEArocKKpccd',
  43. //密钥
  44. accessKeySecret:'GeVPNHZnnEwQyvtIbHrZgEKtWzaCxx',
  45. //桶的名字
  46. bucket: 'shop996image',
  47. endpoint:'oss-cn-shenzhen.aliyuncs.com',
  48. },//oss-cn-hangzhou.aliyuncs.com
  49. // oss:
  50. // accessKey: LTAI5tMan18fjJPUtr3Aim2W
  51. // secretKey: lhALqqgYijc115wY8c1KfTYkbSnq5I
  52. // endpoint: oss-cn-shenzhen.aliyuncs.com
  53. // bucketName: mangoimageapplet
  54. // staticDomain: https://dianpin-img.xzaiyp.top
  55. },
  56. }
  57. Vue.prototype.$api = 'http://124.71.12.219:8085/'
  58. Vue.prototype.$config = deepMergeObject(defaultConfig, config[type])
  59. export default Vue.prototype.$config