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.

68 lines
1.7 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
4 months ago
4 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 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. },
  17. }
  18. // 默认配置
  19. const defaultConfig = {
  20. mapKey : '',
  21. fileType : 'service',
  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. url : 'https://shop996image.oss-ap-southeast-5.aliyuncs.com',
  37. config : {
  38. //桶的地址
  39. region: 'oss-ap-southeast-5.aliyuncs.com',
  40. //id
  41. accessKeyId:'LTAI5tHmEEmaoEArocKKpccd',
  42. //密钥
  43. accessKeySecret:'GeVPNHZnnEwQyvtIbHrZgEKtWzaCxx',
  44. //桶的名字
  45. bucket: 'shop996image',
  46. endpoint:'oss-cn-shenzhen.aliyuncs.com',
  47. },//oss-cn-hangzhou.aliyuncs.com
  48. // oss:
  49. // accessKey: LTAI5tMan18fjJPUtr3Aim2W
  50. // secretKey: lhALqqgYijc115wY8c1KfTYkbSnq5I
  51. // endpoint: oss-cn-shenzhen.aliyuncs.com
  52. // bucketName: mangoimageapplet
  53. // staticDomain: https://dianpin-img.xzaiyp.top
  54. },
  55. }
  56. Vue.prototype.$api = 'http://124.71.12.219:8085/'
  57. Vue.prototype.$config = deepMergeObject(defaultConfig, config[type])
  58. export default Vue.prototype.$config