加油站付款小程序,打印小票
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.
 
 
 
 

78 lines
1.7 KiB

import Vue from 'vue'
import api from '@/api/api.js'
import utils from './utils/utils.js'
import uvUI from '@/uni_modules/uv-ui-tools'
Vue.use(uvUI);
// 当前环境
const type = 'prod2'
// 环境配置
const config = {
dev : {
// baseUrl : 'http://8.138.162.67:8000/a-notice-api',
// baseUrl : 'http://h5.xzaiyp.top/cheer-admin',
baseUrl : 'http://h5.xzaiyp.top/cheer-prod',
},
prod : {//第一版本生产环境
baseUrl : 'https://cheer-admin.xzaiyp.top/cheer-admin',
},
prod2 : {//第二版本生产环境
baseUrl : 'https://cheer-prod.hhlm1688.com/cheer-prod/',
},
// prod3 : {
// baseUrl : 'https://cheer-admin.xzaiyp.top/cheer-admin',
// }
}
// 默认配置
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',
// }
// },
aliOss: {
url: 'https://image.hhlm1688.com/',
config: {
//桶的地址
region: 'oss-cn-guangzhou',
//id
accessKeyId: 'LTAI5tQSs47izVy8DLVdwUU9',
//密钥
accessKeySecret: 'qHI7C3PaXYZySr84HTToviC71AYlFq',
//桶的名字
bucket: 'hanhaiimage',
endpoint: 'oss-cn-shenzhen.aliyuncs.com',
}
},
}
uni.$uv.setConfig({
// 修改$uv.config对象的属性
config: {
// 修改默认单位为rpx,相当于执行 uni.$uv.config.unit = 'rpx'
unit: 'rpx'
},
})
Vue.prototype.$config = utils.deepMergeObject(defaultConfig, config[type])
Vue.prototype.$api = api
export default Vue.prototype.$config