diff --git a/src/config/index.js b/src/config/index.js index 8c11ed74b..21b75b18e 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -5,7 +5,7 @@ * */ -let apiDomain, imgDomain, assetsUrl, mainUrl, payUrl, zssqUrl ,REQ_PWD, CACHE_ENCRYP, API_VERSION// 保融支付的收银台服务地址 +let apiDomain, imgDomain, assetsUrl, mainUrl, payUrl, zssqUrl ,REQ_PWD, CACHE_ENCRYP, API_VERSION, assetsUpUrl// 保融支付的收银台服务地址 // 可以多个接口域名,按需添加 console.log('环境:', process.env.VUE_APP_FLAG) @@ -15,6 +15,8 @@ switch (process.env.VUE_APP_FLAG) { imgDomain = 'http://211.159.248.123:7012/updown' // dev // 静态服务资源 assetsUrl = 'http://139.199.50.151:8000/app/' + // 上传影像地址 98 服务器地址 + assetsUpUrl = 'http://211.159.248.123:80' mainUrl = 'http://139.199.50.151' payUrl = 'https://funduat.e-guofu.com/s3-modules-gateway/embed/gateway.action' zssqUrl = 'http://139.199.50.151/html/test/index.html#/' @@ -27,6 +29,8 @@ switch (process.env.VUE_APP_FLAG) { imgDomain = 'http://139.199.50.145:7012/updown' // 静态服务资源 assetsUrl = 'http://115.159.235.59:8000/app/' + // 上传影像地址 98 服务器地址 + assetsUpUrl = 'http://211.159.248.123:80' mainUrl = 'http://115.159.235.59' payUrl = 'https://funduat.e-guofu.com/s3-modules-gateway/embed/gateway.action' zssqUrl = '' @@ -38,6 +42,8 @@ switch (process.env.VUE_APP_FLAG) { apiDomain = 'https://iagentsales.e-guofu.com/api/v2' 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 = '' @@ -50,6 +56,8 @@ switch (process.env.VUE_APP_FLAG) { imgDomain = '' // 静态服务资源 assetsUrl = '' + // 上传影像地址 + assetsUpUrl = '' mainUrl = '' payUrl = '' zssqUrl = '' @@ -71,6 +79,8 @@ export default { imgDomain, // 存储图片域名 // 静态服务资源 assetsUrl, + //上传影像地址 + assetsUpUrl, mainUrl, payUrl, zssqUrl, //知识社区地址 diff --git a/src/main.js b/src/main.js index 9735e6b74..69c6d7209 100644 --- a/src/main.js +++ b/src/main.js @@ -37,6 +37,7 @@ Vue.use(Lazyload, { }) Vue.prototype.$assetsUrl = config.assetsUrl +Vue.prototype.$assetsUpUrl = config.assetsUpUrl Vue.prototype.$mainUrl = config.mainUrl Vue.prototype.$zssqUrl = config.zssqUrl Vue.prototype.$MD5 = md5 diff --git a/src/views/ebiz/agentEenter/approve/RecordDetail.vue b/src/views/ebiz/agentEenter/approve/RecordDetail.vue index ddbf56657..13e7e1c2a 100644 --- a/src/views/ebiz/agentEenter/approve/RecordDetail.vue +++ b/src/views/ebiz/agentEenter/approve/RecordDetail.vue @@ -297,8 +297,8 @@ export default { } }, handlePhoto(url) { - let index = url.indexOf('images') - return this.$assetsUrl + url.substring(index) + //let index = url.indexOf('images') + return this.$assetsUpUrl + url }, handlePdf(url) { this.pdfShow = true