帧视界壹通告,付费看视频的微信小程序
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.5 KiB

11 months ago
9 months ago
11 months ago
10 months ago
11 months ago
8 months ago
10 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 months ago
8 months ago
11 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://8.138.162.67:8000/a-notice-api',
  10. baseUrl : 'http://h5.xzaiyp.top/a-notice-api',
  11. },
  12. test : {
  13. baseUrl : 'https://admin.anqi.shop/a-notice-api',
  14. },
  15. prod : {//正式环境
  16. baseUrl : 'https://admin.ytonggao.com/a-notice-api',
  17. }
  18. }
  19. // 默认配置
  20. const defaultConfig = {
  21. mapKey : '',
  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. aliOss : {
  37. url : 'https://image.ytonggao.com/',
  38. config : {
  39. //桶的地址
  40. region: 'oss-cn-chengdu',
  41. //id
  42. accessKeyId:'LTAI5t9Hw5DTgahn82upXu4L',
  43. //密钥
  44. accessKeySecret:'hGJPlLmwK9RVH3FQHkXWCSPgPiGrHj',
  45. //桶的名字
  46. bucket: 'zkcm',
  47. endpoint:'oss-cn-chengdu.aliyuncs.com',
  48. }
  49. },
  50. }
  51. // oss:
  52. // accessKey: LTAI5t9Hw5DTgahn82upXu4L
  53. // secretKey: hGJPlLmwK9RVH3FQHkXWCSPgPiGrHj
  54. // endpoint: oss-cn-chengdu.aliyuncs.com
  55. // bucketName: zkcm
  56. // staticDomain:
  57. Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type])
  58. Vue.prototype.$api = api
  59. export default Vue.prototype.$config