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

72 lines
1.5 KiB

11 months ago
8 months ago
11 months ago
10 months ago
11 months ago
6 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. test2 : {
  13. baseUrl : 'http://test-lzx.natapp1.cc/a-notice-api',
  14. },
  15. test : {
  16. baseUrl : 'https://admin.anqi.shop/a-notice-api',
  17. },
  18. prod : {//正式环境
  19. baseUrl : 'https://admin.ytonggao.com/a-notice-api',
  20. }
  21. }
  22. // 默认配置
  23. const defaultConfig = {
  24. mapKey : '',
  25. // aliOss : {
  26. // url : 'https://tennis-oss.xzaiyp.top/',
  27. // config : {
  28. // //桶的地址
  29. // region: 'oss-cn-guangzhou',
  30. // //id
  31. // accessKeyId:'LTAI5tNycA46YTwm383dRvMV',
  32. // //密钥
  33. // accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
  34. // //桶的名字
  35. // bucket: 'zhuoqiu-image',
  36. // endpoint:'oss-cn-guangzhou.aliyuncs.com',
  37. // }
  38. // },
  39. aliOss : {
  40. url : 'https://image.ytonggao.com/',
  41. config : {
  42. //桶的地址
  43. region: 'oss-cn-chengdu',
  44. //id
  45. accessKeyId:'LTAI5t9Hw5DTgahn82upXu4L',
  46. //密钥
  47. accessKeySecret:'hGJPlLmwK9RVH3FQHkXWCSPgPiGrHj',
  48. //桶的名字
  49. bucket: 'zkcm',
  50. endpoint:'oss-cn-chengdu.aliyuncs.com',
  51. }
  52. },
  53. }
  54. // oss:
  55. // accessKey: LTAI5t9Hw5DTgahn82upXu4L
  56. // secretKey: hGJPlLmwK9RVH3FQHkXWCSPgPiGrHj
  57. // endpoint: oss-cn-chengdu.aliyuncs.com
  58. // bucketName: zkcm
  59. // staticDomain:
  60. Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type])
  61. Vue.prototype.$api = api
  62. export default Vue.prototype.$config