1、将“唤起保融收银台”的地址改到/config/index.js里面

This commit is contained in:
pang.lizong
2019-09-28 19:39:25 +08:00
parent 86b834d311
commit c496affbd5
2 changed files with 15 additions and 18 deletions

View File

@@ -5,7 +5,9 @@
*
*/
let apiDomain, imgDomain, assetsUrl, mainUrl
let apiDomain, imgDomain, assetsUrl, mainUrl,
payUrl // 保融支付的收银台服务地址
// 可以多个接口域名,按需添加
console.log('环境:', process.env.VUE_APP_FLAG)
switch (process.env.VUE_APP_FLAG) {
@@ -16,6 +18,7 @@ switch (process.env.VUE_APP_FLAG) {
// 静态服务资源
assetsUrl = 'http://139.199.50.151:8000/app/'
mainUrl = 'http://47.96.143.111'
payUrl = 'http://10.10.100.84:7003/s3-modules-gateway/embed/gateway.action'
break
case 'staging':
apiDomain = 'http://47.96.143.111:7000/api/v1'
@@ -23,6 +26,7 @@ switch (process.env.VUE_APP_FLAG) {
// 静态服务资源
assetsUrl = 'http://47.96.143.111:8000/app/'
mainUrl = ''
payUrl = 'http://10.10.100.84:7003/s3-modules-gateway/embed/gateway.action'
break
case 'production':
// apiDomain = 'http://139.9.25.84:7000/api/v1'
@@ -36,6 +40,7 @@ switch (process.env.VUE_APP_FLAG) {
// 静态服务资源
assetsUrl = 'http://211.159.248.138:7001/'
mainUrl = ''
payUrl = 'http://10.10.100.84:7003/s3-modules-gateway/embed/gateway.action' // todo change to production
break
}
/**
@@ -51,5 +56,6 @@ export default {
imgDomain, // 存储图片域名
// 静态服务资源
assetsUrl,
mainUrl
mainUrl,
payUrl
}