mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 06:56:44 +08:00
99 lines
3.3 KiB
JavaScript
99 lines
3.3 KiB
JavaScript
/*
|
|
* @Author: PangXingYue
|
|
* @Date: 2021-03-23 13:34:15
|
|
* @LastEditTime: 2021-04-02 16:11:35
|
|
* @LastEditors: PangXingYue
|
|
* @Description:
|
|
* @FilePath: \ebiz-h5\src\config\index.js
|
|
*/
|
|
/**
|
|
* 配置编译环境和线上环境之间的切换
|
|
* 默认三套环境,可以增添
|
|
* 参考https://cli.vuejs.org/zh/guide/mode-and-env.html
|
|
*
|
|
*/
|
|
|
|
let apiDomain, imgDomain, assetsUrl, mainUrl, payUrl, zssqUrl, REQ_PWD, CACHE_ENCRYP, API_VERSION, assetsUpUrl // 保融支付的收银台服务地址
|
|
|
|
// 可以多个接口域名,按需添加
|
|
console.log('环境:', process.env.VUE_APP_FLAG)
|
|
switch (process.env.VUE_APP_FLAG) {
|
|
case 'dev':
|
|
apiDomain = 'https://iagentsales-test2.e-guofu.com:5200/api/v1' // 国富api ///api/v1
|
|
imgDomain = 'https://iagentsales-test3.e-guofu.com:5443/updown' // dev
|
|
// 静态服务资源
|
|
assetsUrl = 'https://iagentsales-test2.e-guofu.com:443/app/'
|
|
// 上传影像地址 98 服务器地址
|
|
assetsUpUrl = 'https://iagentsales-test3.e-guofu.com:443'
|
|
mainUrl = 'https://iagentsales-test2.e-guofu.com'
|
|
payUrl = 'https://funduat.e-guofu.com/s3-modules-gateway/embed/gateway.action'
|
|
zssqUrl = 'https://iagentsales-test2.e-guofu.com:5100/html/test/index.html#/'
|
|
REQ_PWD = '41424344454631323334353637383930'
|
|
CACHE_ENCRYP = '41424344454631323334353637383930'
|
|
API_VERSION = 'v1'
|
|
break
|
|
case 'uat':
|
|
apiDomain = 'https://iagentsales-test2.e-guofu.com:5200/api/v1' // 国富api
|
|
imgDomain = 'http://139.199.50.145:7012/updown'
|
|
// 静态服务资源
|
|
assetsUrl = 'https://iagentsales-test2.e-guofu.com:443/app/'
|
|
// 上传影像地址 98 服务器地址
|
|
assetsUpUrl = 'https://iagentsales-test3.e-guofu.com:443'
|
|
mainUrl = 'http://115.159.235.59'
|
|
payUrl = 'https://funduat.e-guofu.com/s3-modules-gateway/embed/gateway.action'
|
|
zssqUrl = ''
|
|
REQ_PWD = '41424344454631323334353637383930'
|
|
CACHE_ENCRYP = '41424344454631323334353637383930'
|
|
API_VERSION = 'v2'
|
|
break
|
|
case 'prd':
|
|
apiDomain = 'https://iagentsales.e-guofu.com/api/v3'
|
|
imgDomain = 'https://iagentsales-ud.e-guofu.com:8553/updown'
|
|
assetsUrl = 'https://iagentsales-sr.e-guofu.com:8443/'
|
|
// 上传影像地址 挂载共享盘 地址
|
|
assetsUpUrl = 'https://iagentsales.e-guofu.com'
|
|
mainUrl = 'https://iagentsales.e-guofu.com'
|
|
payUrl = 'https://uns3.e-guofu.com/s3-modules-gateway/embed/gateway.action'
|
|
zssqUrl = ''
|
|
REQ_PWD = '41424344454631323334353637383930'
|
|
CACHE_ENCRYP = '41424344454631323334353637383930'
|
|
API_VERSION = 'v3'
|
|
break
|
|
case 'dat':
|
|
apiDomain = ''
|
|
imgDomain = ''
|
|
// 静态服务资源
|
|
assetsUrl = ''
|
|
// 上传影像地址
|
|
assetsUpUrl = ''
|
|
mainUrl = ''
|
|
payUrl = ''
|
|
zssqUrl = ''
|
|
REQ_PWD = '41424344454631323334353637383930'
|
|
CACHE_ENCRYP = '41424344454631323334353637383930'
|
|
API_VERSION = 'v2'
|
|
break
|
|
}
|
|
/**
|
|
* 配置文件
|
|
* apiDomain: // 接口域名
|
|
* upLoadDomain: // 存储上传文件域名
|
|
* imgDomain: // 存储图片域名
|
|
*
|
|
*/
|
|
export default {
|
|
apiDomain, // 主域名
|
|
uploadDomain: '', // 存储上传文件域名
|
|
imgDomain, // 存储图片域名
|
|
// 静态服务资源
|
|
assetsUrl,
|
|
//上传影像地址
|
|
assetsUpUrl,
|
|
mainUrl,
|
|
payUrl,
|
|
zssqUrl, //知识社区地址
|
|
REQ_PWD, //报文加密密码
|
|
CACHE_ENCRYP, //缓存加密密码
|
|
API_VERSION //渠道版本
|
|
}
|