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

77 lines
1.7 KiB

1 year ago
1 year ago
6 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 = 'prod2'
  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. // prod3 : {
  22. // baseUrl : 'https://cheer-admin.xzaiyp.top/cheer-admin',
  23. // }
  24. }
  25. // 默认配置
  26. const defaultConfig = {
  27. mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
  28. // aliOss : {
  29. // url : 'https://tennis-oss.xzaiyp.top/',
  30. // config : {
  31. // //桶的地址
  32. // region: 'oss-cn-guangzhou',
  33. // //id
  34. // accessKeyId:'LTAI5tNycA46YTwm383dRvMV',
  35. // //密钥
  36. // accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
  37. // //桶的名字
  38. // bucket: 'zhuoqiu-image',
  39. // endpoint:'oss-cn-guangzhou.aliyuncs.com',
  40. // }
  41. // },
  42. aliOss: {
  43. url: 'https://image.hhlm1688.com/',
  44. config: {
  45. //桶的地址
  46. region: 'oss-cn-guangzhou',
  47. //id
  48. accessKeyId: 'LTAI5tQSs47izVy8DLVdwUU9',
  49. //密钥
  50. accessKeySecret: 'qHI7C3PaXYZySr84HTToviC71AYlFq',
  51. //桶的名字
  52. bucket: 'hanhaiimage',
  53. endpoint: 'oss-cn-shenzhen.aliyuncs.com',
  54. }
  55. },
  56. }
  57. uni.$uv.setConfig({
  58. // 修改$uv.config对象的属性
  59. config: {
  60. // 修改默认单位为rpx,相当于执行 uni.$uv.config.unit = 'rpx'
  61. unit: 'rpx'
  62. },
  63. })
  64. Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type])
  65. Vue.prototype.$api = api
  66. export default Vue.prototype.$config