知识付费微信小程序
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.

46 lines
916 B

6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
  1. import Vue from 'vue'
  2. import api from '@/api/api.js'
  3. import utils from './utils/utils.js'
  4. // 当前环境
  5. const type = 'prod'
  6. // 环境配置
  7. const config = {
  8. dev : {
  9. // baseUrl : 'http://noticeadmin.augcl.com/a-notice-api',
  10. baseUrl : 'http://h5.xzaiyp.top/pay-admin',
  11. },
  12. prod : {
  13. baseUrl : 'https://pay-admin.xzaiyp.top/pay-admin',
  14. }
  15. }
  16. // 默认配置
  17. const defaultConfig = {
  18. mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
  19. aliOss : {
  20. url : 'https://tennis-oss.xzaiyp.top/',
  21. config : {
  22. //桶的地址
  23. region: 'oss-cn-guangzhou',
  24. //id
  25. accessKeyId:'LTAI5tNycA46YTwm383dRvMV',
  26. //密钥
  27. accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
  28. //桶的名字
  29. bucket: 'zhuoqiu-image',
  30. endpoint:'oss-cn-guangzhou.aliyuncs.com',
  31. }
  32. },
  33. }
  34. Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type])
  35. Vue.prototype.$api = api
  36. export default Vue.prototype.$config