config.js
958 Bytes
/**
* 接口环
* development:开发环境
* test:测试环境
* production:生产环境
*/
const environment = 'production'
// 请求接口地址列表
const POST_URL_LIST = {
'development': 'https://eshield.dev.glsx.com.cn/',
'test': 'https://eshield.test.glsx.com.cn/',
'production': 'https://eshield.didihu.com.cn/'
}
// 内嵌网页路径
const WEB_PATH_LIST = {
'development': 'https://eshield.dev.glsx.com.cn/miniapp/#/',
'test': 'https://eshield.test.glsx.com.cn/miniapp/#/',
//'production': 'https://eshield.didihu.com.cn/miniapp/#/'
'production':'https://eshield.hhxtechnology.com/miniapp/#/'
}
// 请求接口地址
export const BASE_URL = POST_URL_LIST[environment]
// 图片路径
export const IMAGE_PATH = BASE_URL + 'business'
// 内嵌网页路径(开发环境)
export const WEB_VIEW_PATH = WEB_PATH_LIST[environment];
// 错误提示语
export const ERRTIPMSG = '出错了,请联系管理员'