加油站付款小程序,打印小票
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.

80 lines
1.8 KiB

1 year ago
1 year ago
7 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. import Vue from 'vue'
  2. import api from '@/api/api.js'
  3. import utils from './utils/utils.js'
  4. import uvUI from '@/uni_modules/uv-ui-tools'
  5. Vue.use(uvUI);
  6. // 当前环境
  7. const type = 'prod4'
  8. // 环境配置
  9. const config = {
  10. dev : {
  11. // baseUrl : 'http://8.138.162.67:8000/a-notice-api',
  12. // baseUrl : 'http://h5.xzaiyp.top/cheer-admin',
  13. baseUrl : 'http://h5.xzaiyp.top/cheer-prod',
  14. },
  15. prod : {//第一版本生产环境
  16. baseUrl : 'https://cheer-admin.xzaiyp.top/cheer-admin',
  17. },
  18. prod2 : {//第二版本生产环境
  19. baseUrl : 'https://cheer-prod.hhlm1688.com/cheer-prod',
  20. },
  21. prod4 : {//第二版本生产环境
  22. baseUrl : 'https://cheer.augcl.com/cheer-prod',
  23. },
  24. // prod3 : {
  25. // baseUrl : 'https://cheer-admin.xzaiyp.top/cheer-admin',
  26. // }
  27. }
  28. // 默认配置
  29. const defaultConfig = {
  30. mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
  31. // aliOss : {
  32. // url : 'https://tennis-oss.xzaiyp.top/',
  33. // config : {
  34. // //桶的地址
  35. // region: 'oss-cn-guangzhou',
  36. // //id
  37. // accessKeyId:'LTAI5tNycA46YTwm383dRvMV',
  38. // //密钥
  39. // accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
  40. // //桶的名字
  41. // bucket: 'zhuoqiu-image',
  42. // endpoint:'oss-cn-guangzhou.aliyuncs.com',
  43. // }
  44. // },
  45. aliOss: {
  46. url: 'https://image.hhlm1688.com/',
  47. config: {
  48. //桶的地址
  49. region: 'oss-cn-guangzhou',
  50. //id
  51. accessKeyId: 'LTAI5tQSs47izVy8DLVdwUU9',
  52. //密钥
  53. accessKeySecret: 'qHI7C3PaXYZySr84HTToviC71AYlFq',
  54. //桶的名字
  55. bucket: 'hanhaiimage',
  56. endpoint: 'oss-cn-shenzhen.aliyuncs.com',
  57. }
  58. },
  59. }
  60. uni.$uv.setConfig({
  61. // 修改$uv.config对象的属性
  62. config: {
  63. // 修改默认单位为rpx,相当于执行 uni.$uv.config.unit = 'rpx'
  64. unit: 'rpx'
  65. },
  66. })
  67. Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type])
  68. Vue.prototype.$api = api
  69. export default Vue.prototype.$config