铝交易,微信公众号
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.4 KiB

6 months ago
6 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 months ago
5 months ago
6 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://3fl8266127.qicp.vip/aluminium-prod',
  12. },
  13. prod : {
  14. baseUrl : 'https://aluminium-prod.hhlm1688.com/aluminium-prod',
  15. }
  16. }
  17. // 默认配置
  18. const defaultConfig = {
  19. mapKey : 'JYTBZ-DOY3Q-UCM5O-4FWQR-LCI7S-ZIBD3',
  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. // aliOss : {
  35. // url : 'https://image.hhlm1688.com/',
  36. // config : {
  37. // //桶的地址
  38. // region: 'oss-cn-shenzhen',
  39. // //id
  40. // accessKeyId:'LTAI5tQSs47izVy8DLVdwUU9',
  41. // //密钥
  42. // accessKeySecret:'qHI7C3PaXYZySr84HTToviC71AYlFq',
  43. // //桶的名字
  44. // bucket: 'hanhaiimage',
  45. // endpoint:'oss-cn-shenzhen.aliyuncs.com',
  46. // }
  47. // },
  48. }
  49. uni.$uv.setConfig({
  50. // 修改$uv.config对象的属性
  51. config: {
  52. // 修改默认单位为rpx,相当于执行 uni.$uv.config.unit = 'rpx'
  53. unit: 'rpx'
  54. },
  55. })
  56. Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type])
  57. Vue.prototype.$api = api
  58. export default Vue.prototype.$config