// var host = window.location.protocol + '//' + window.location.hostname // 当前后端不在同一个服务器时,需要指定host地址 // var host = 'http://10.7.13.26' // 以前 // var host = 'http://116.204.117.33' //基本用这个 // var host = 'http://101.33.208.140' // 测试 // var host = 'http://b463f4b7.natappfree.cc' // 后端服务海鹏 var host = 'http://5jrgep.ipx.wanziwk.cn' // 后端服务译文 // var host = 'http://192.168.1.2' // 后端服务译文 // var host = 'http://localhost' // combine为true时五合一部署, 为false时分五个服务部署 var combine = true // var gateway = '8280/stage-api' var gateway = '9506/stage-api' var defaultModulePortMap = { form: gateway +'/form', portal: gateway +'/portal', bpmRunTime: gateway +'/bpmRunTime', bpmModel: gateway +'/bpmModel', uc: gateway +'/uc', auth: gateway +'/auth', commonSign: gateway, } window.getModuleRootUrl = function (module) { // 默认是全部服务合一的端口 // var modulePort = '8089' // 以前 // var modulePort = '9506' // 基本用这个 // var modulePort = '8088' //测试 var modulePort = '' if (!combine) { modulePort = defaultModulePortMap[module] } // return host + ':' + modulePort return host + modulePort } window.context = { manage: host + ':8280/mvue', //管理端页面 front: host + ':8280/front', //前端页面 mobile: host + ':8280/mobile', //手机端页面 form: getModuleRootUrl('form'), portal: getModuleRootUrl('portal'), bpmRunTime: getModuleRootUrl('bpmRunTime'), bpmModel: getModuleRootUrl('bpmModel'), uc: getModuleRootUrl('uc'), auth: getModuleRootUrl('auth'), commonSign: 'http://10.7.14.215:8280/stage-api/', //后台接口是新开的端口 8082 // costAudit: host + ':8082' } // 单点配置 window.ssoConfig = { // mode: 'oauth', // 空则不使用单点 支持的模式有 cas oauth basic // url: 'http://10.7.14.215:8280/auth', // clientId: 'workbench', // oauth模式下需要提供 // logout: 'http://10.7.14.215:8280/auth' }