酒店桌布为微信小程序
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.

70 lines
1.5 KiB

9 months ago
7 months ago
9 months ago
9 months ago
9 months ago
8 months ago
9 months ago
7 months ago
7 months ago
7 months ago
9 months ago
7 months ago
9 months ago
7 months ago
9 months ago
7 months ago
9 months ago
7 months ago
9 months ago
7 months ago
9 months 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 = 'prod'
  8. // 环境配置
  9. const config = {
  10. dev : {
  11. baseUrl : 'http://dev.java996.icu/hotel',
  12. },
  13. prod : {
  14. baseUrl : 'https://hotel.java996.icu/hotel',
  15. }
  16. }
  17. // 默认配置
  18. const defaultConfig = {
  19. // 生产环境地图XHJBZ-JNL3U-LOHVO-G5LSQ-SPQ4S-AWFN4
  20. mapKey : 'XHJBZ-JNL3U-LOHVO-G5LSQ-SPQ4S-AWFN4',//已改成生产环境
  21. // aliOss : {
  22. // url : 'https://tennis-oss.xzaiyp.top/',
  23. // config : {
  24. // //桶的地址
  25. // region: 'oss-cn-guangzhou',
  26. // //id
  27. // accessKeyId:'LTAI5tNycA46YTwm383dRvMV',
  28. // //密钥
  29. // accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
  30. // //桶的名字
  31. // bucket: 'zhuoqiu-image',
  32. // endpoint:'oss-cn-guangzhou.aliyuncs.com',
  33. // }
  34. // },
  35. aliOss : {
  36. url : 'https://buzhoudao.java996.icu/',
  37. config : {
  38. //桶的地址
  39. region: 'oss-rg-china-mainland',
  40. //id
  41. accessKeyId:'LTAI5tK9V9BxeSmLLb5gzmuU',
  42. //密钥
  43. accessKeySecret:'ADo0WcBfOkeBX6SPAKT5yURvHeBq8T',
  44. //桶的名字
  45. bucket: 'buzhoudao',
  46. endpoint:'oss-rg-china-mainland.aliyuncs.com',
  47. }
  48. },
  49. }
  50. uni.$uv.setConfig({
  51. // 修改$uv.config对象的属性
  52. config: {
  53. // 修改默认单位为rpx,相当于执行 uni.$uv.config.unit = 'rpx'
  54. unit: 'rpx'
  55. },
  56. })
  57. Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type])
  58. Vue.prototype.$api = api
  59. export default Vue.prototype.$config