景徳镇旅游微信小程序
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.

92 lines
1.6 KiB

1 year 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 = 'prod'
  8. // 环境配置
  9. const config = {
  10. dev : {
  11. baseUrl : 'http://augcl.natapp1.cc/travel-api/api',
  12. },
  13. prod : {
  14. baseUrl : 'https://traveladmin.augcl.com/travel-api/api',
  15. }
  16. }
  17. // 默认配置
  18. const defaultConfig = {
  19. mapKey : 'SNGBZ-K6AKJ-5X2FI-XYKCM-DEZXZ-FGBA3',
  20. aliOss : {
  21. url : 'https://tennis-oss.xzaiyp.top/',
  22. config : {
  23. //桶的地址
  24. region: 'oss-cn-guangzhou',
  25. //id
  26. accessKeyId:'LTAI5tNycA46YTwm383dRvMV',
  27. //密钥
  28. accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
  29. //桶的名字
  30. bucket: 'zhuoqiu-image',
  31. endpoint:'oss-cn-guangzhou.aliyuncs.com',
  32. }
  33. },
  34. dict : {
  35. course : {//申遗历程
  36. title : '申遗历程',
  37. },
  38. Inheritance : {//遗产概况
  39. title : '遗产概况',
  40. },
  41. tell : {//遗产讲述
  42. title : '遗产讲述',
  43. },
  44. travel : {//达人同游
  45. title : '达人同游',
  46. },
  47. path : {//遗产路径
  48. title : '遗产路径',
  49. },
  50. follow : {//我要跟拍
  51. title : '我要跟拍',
  52. },
  53. experience : {//非遗体验
  54. title : '非遗体验',
  55. },
  56. Study : {//我要研学
  57. title : '我要研学',
  58. },
  59. good : {//文创好物
  60. title : '文创好物',
  61. },
  62. }
  63. }
  64. uni.$uv.setConfig({
  65. // 修改$uv.config对象的属性
  66. config: {
  67. // 修改默认单位为rpx,相当于执行 uni.$uv.config.unit = 'rpx'
  68. unit: 'rpx'
  69. },
  70. })
  71. Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type])
  72. Vue.prototype.$api = api
  73. export default Vue.prototype.$config