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.

67 lines
1.6 KiB

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