租房小程序前端代码
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.
 
 
 

51 lines
942 B

import Vue from 'vue'
import utils from './utils/utils.js'
import uvUI from '@/uni_modules/uv-ui-tools'
console.info(`uvUI`,uvUI)
Vue.use(uvUI);
// 当前环境
const type = 'prod'
// 环境配置
const config = {
dev : {
baseUrl : 'http://augcl.natapp1.cc/employ-api',
},
prod : {
baseUrl : 'https://employadmin.augcl.com/employ-api',
}
}
// 默认配置
const defaultConfig = {
mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
aliOss : {
url : 'https://tennis-oss.xzaiyp.top/',
config : {
//桶的地址
region: 'oss-cn-guangzhou',
//id
accessKeyId:'LTAI5tNycA46YTwm383dRvMV',
//密钥
accessKeySecret:'tAdbYQCmdur6jbZ8hjvgB7T1Z52mIG',
//桶的名字
bucket: 'zhuoqiu-image',
endpoint:'oss-cn-guangzhou.aliyuncs.com',
}
},
}
uni.$uv.setConfig({
config: {
unit: 'px'
},
})
Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type])
export default Vue.prototype.$config