From 45c8e880d24308483b6a78fbc8472da7a5d954ed Mon Sep 17 00:00:00 2001 From: "yang.huaxiang" Date: Tue, 29 Dec 2020 11:03:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E5=8F=B8=E5=BD=B1=E5=83=8F=E5=A4=84?= =?UTF-8?q?=E7=90=86:=20=E5=BD=B1=E5=83=8F=E6=98=BE=E7=A4=BA=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E5=A4=84=E7=90=86=20--=E6=8F=90=E4=BA=A4=E4=BA=BA?= =?UTF-8?q?=EF=BC=9A=E9=98=B3=E5=8D=8E=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/index.js | 12 +++++++++++- src/main.js | 1 + src/views/ebiz/agentEenter/approve/RecordDetail.vue | 4 ++-- 3 files changed, 14 insertions(+), 3 deletions(-) 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