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

71 lines
1.5 KiB

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