/** * 配置编译环境和线上环境之间的切换 * 默认三套环境,可以增添 * 参考https://cli.vuejs.org/zh/guide/mode-and-env.html * */ let apiDomain, imgDomain, assetsUrl, mainUrl, payUrl // 保融支付的收银台服务地址 // 可以多个接口域名,按需添加 console.log('环境:', process.env.VUE_APP_FLAG) switch (process.env.VUE_APP_FLAG) { case 'dev': // apiDomain = 'http://47.96.143.111:7000/api/v1' apiDomain = 'http://139.199.50.151:7000/api/v1' // 国富api // apiDomain = 'http://10.11.2.247004/' // imgDomain = 'http://10.10.100.98:7012/updown' // dev imgDomain = 'http://211.159.248.123:7012/updown' // dev // 静态服务资源 assetsUrl = 'http://139.199.50.151:8000/app/' mainUrl = 'http://139.199.50.151' // payUrl = 'http://10.10.100.84:7003/s3-modules-gateway/embed/gateway.action' payUrl = 'http://funduat.e-guofu.com/s3-modules-gateway/embed/gateway.action' break case 'uat': apiDomain = 'http://115.159.235.59:7000/api/v1' // 国富api // apiDomain = 'http://10.11.2.247004/' // imgDomain = 'http://10.10.100.98:7012/updown' // dev imgDomain = 'http://139.199.50.145:7012/updown' // dev // 静态服务资源 assetsUrl = 'http://115.159.235.59:8000/app/' mainUrl = 'http://115.159.235.59' // payUrl = 'http://10.10.100.84:7003/s3-modules-gateway/embed/gateway.action' payUrl = 'http://funduat.e-guofu.com/s3-modules-gateway/embed/gateway.action' break case 'prd': apiDomain = 'https://iagentsales.e-guofu.com/api/v1' imgDomain = 'https://iagentsales-ud.e-guofu.com:8553/updown' // imgDomain = 'http://10.10.100.98:7012/updown' // 上生产前 // 静态服务资源 // assetsUrl = 'http://211.159.248.138:7001/' // 上生产前 assetsUrl = 'https://iagentsales-sr.e-guofu.com:8443/' mainUrl = 'https://iagentsales.e-guofu.com' payUrl = 'https://uns3.e-guofu.com/s3-modules-gateway/embed/gateway.action' break case 'dat': // apiDomain = 'http://47.96.143.111:7000/api/v1' apiDomain = '' // 国富api // apiDomain = 'http://10.11.2.247004/' // imgDomain = 'http://10.10.100.98:7012/updown' // dev imgDomain = '' // dev // 静态服务资源 assetsUrl = '' mainUrl = '' // payUrl = 'http://10.10.100.84:7003/s3-modules-gateway/embed/gateway.action' payUrl = '' break } /** * 配置文件 * apiDomain: // 接口域名 * upLoadDomain: // 存储上传文件域名 * imgDomain: // 存储图片域名 * */ export default { apiDomain, // 主域名 uploadDomain: '', // 存储上传文件域名 imgDomain, // 存储图片域名 // 静态服务资源 assetsUrl, mainUrl, payUrl }