【增加阅读《保险条款》步骤,关于金掌桂签名确认页面部分阅读签字材料更新和新增的需求】接口地址test3变为test2

This commit is contained in:
li.yuetong
2022-11-03 14:30:20 +08:00
committed by jiawei
parent eadb80ff4e
commit 3b4b18c539
2 changed files with 40 additions and 39 deletions

View File

@@ -1,8 +1,8 @@
/* /*
* @Author: PangXingYue * @Author: PangXingYue
* @Date: 2021-03-23 13:34:15 * @Date: 2021-03-23 13:34:15
* @LastEditTime: 2021-04-02 16:11:35 * @LastEditTime: 2023-03-01 17:07:13
* @LastEditors: PangXingYue * @LastEditors: jiawei jia.wei@ebiz-digits.com
* @Description: * @Description:
* @FilePath: \ebiz-h5\src\config\index.js * @FilePath: \ebiz-h5\src\config\index.js
*/ */
@@ -14,7 +14,7 @@
*/ */
let apiDomain, imgDomain, assetsUrl, mainUrl, payUrl, zssqUrl, REQ_PWD, CACHE_ENCRYP, API_VERSION, assetsUpUrl, YB_APP // 保融支付的收银台服务地址 let apiDomain, imgDomain, assetsUrl, mainUrl, payUrl, zssqUrl, REQ_PWD, CACHE_ENCRYP, API_VERSION, assetsUpUrl, YB_APP // 保融支付的收银台服务地址
function getSearchString(key) { function getSearchString (key) {
var str = window.location.href.split('?')[1] var str = window.location.href.split('?')[1]
str = str.substring(1, str.length) // 获取URL中?之后的字符(去掉第一位的问号) str = str.substring(1, str.length) // 获取URL中?之后的字符(去掉第一位的问号)
// 以&分隔字符串获得类似name=xiaoli这样的元素数组 // 以&分隔字符串获得类似name=xiaoli这样的元素数组
@@ -27,55 +27,56 @@ function getSearchString(key) {
} }
return obj[key] return obj[key]
} }
let apiVersion = 'v1' let apiVersion = 'v2'
// var ua = window.navigator.userAgent.toLowerCase() var ua = window.navigator.userAgent.toLowerCase()
// //通过正则表达式匹配ua中是否含有MicroMessenger字符串, 在微信 //通过正则表达式匹配ua中是否含有MicroMessenger字符串, 在微信
// if(localStorage.getItem('apiVersion')){ if (localStorage.getItem('apiVersion')) {
// apiVersion = localStorage.getItem('apiVersion') apiVersion = localStorage.getItem('apiVersion')
// }else{ } else {
// if(ua.match(/MicroMessenger/i) == 'micromessenger'){ if (ua.match(/MicroMessenger/i) == 'micromessenger') {
// //report/reportList数据报表页面在浏览器可以打开了但在微信或企业微信中打开不了,接口请求不需要token //report/reportList数据报表页面在浏览器可以打开了但在微信或企业微信中打开不了,接口请求不需要token
// if(window.location.href.indexOf('apiVersion') > 0){ if (window.location.href.indexOf('apiVersion') > 0) {
// apiVersion = getSearchString('apiVersion')== 'V3'?'v3':'v2';//url中apiVersion没有时为v2 apiVersion = getSearchString('apiVersion') == 'V3' ? 'v3' : 'v2';//url中apiVersion没有时为v2
// }else{ } else {
// apiVersion = 'v3' apiVersion = 'v3'
// } }
// }else{ } else {
// // 在app // 在app
// if(navigator.userAgent.indexOf('JZG_') > 0){ if (navigator.userAgent.indexOf('JZG_') > 0) {
// apiVersion = navigator.userAgent.split('JZG_')[1].split('/')[0].split('_')[1] == 'V3'?'v3':'v2' apiVersion = navigator.userAgent.split('JZG_')[1].split('/')[0].split('_')[1] == 'V3' ? 'v3' : 'v2'
// } }
// } }
// window.localStorage.setItem('apiVersion', apiVersion) window.localStorage.setItem('apiVersion', apiVersion)
// } }
// 可以多个接口域名,按需添加 // 可以多个接口域名,按需添加
console.log('环境:', process.env.VUE_APP_FLAG) console.log('环境:', process.env.VUE_APP_FLAG)
switch (process.env.VUE_APP_FLAG) { switch (process.env.VUE_APP_FLAG) {
case 'dev': case 'dev':
apiDomain = 'https://iagentsales-test2.e-guofu.com:5200/api/'+apiVersion // 国富api ///api/v1 apiDomain = 'https://iagentsales-test2.e-guofu.com:5200/api/' + apiVersion // 国富api ///api/v1
imgDomain = 'https://iagentsales-test3.e-guofu.com:5443/updown' // dev imgDomain = 'https://iagentsales-test2.e-guofu.com:5443/updown' // dev v3-v2
// 静态服务资源 // 静态服务资源
assetsUrl = 'https://iagentsales-test2.e-guofu.com:443/app/' assetsUrl = 'https://iagentsales-test2.e-guofu.com:443/app/'
// 上传影像地址 98 服务器地址 // 上传影像地址 98 服务器地址
assetsUpUrl = 'https://iagentsales-test3.e-guofu.com:443' assetsUpUrl = 'https://iagentsales-test2.e-guofu.com:443' // v3-v2
mainUrl = 'https://iagentsales-test2.e-guofu.com' // mainUrl = 'https://iagentsales-test2.e-guofu.com'
mainUrl = 'https://iagentsales-test2.e-guofu.com:5100'
payUrl = 'https://funduat.e-guofu.com/s3-modules-gateway/embed/gateway.action' payUrl = 'https://funduat.e-guofu.com/s3-modules-gateway/embed/gateway.action'
zssqUrl = 'https://iagentsales-test2.e-guofu.com:5100/html/test/index.html#/' zssqUrl = ''
// zssqUrl = 'https://iagentsales-test2.e-guofu.com:5100/html/test/index.html#/'
REQ_PWD = '41424344454631323334353637383930' REQ_PWD = '41424344454631323334353637383930'
CACHE_ENCRYP = '41424344454631323334353637383930' CACHE_ENCRYP = '41424344454631323334353637383930'
// YB_APP = 'http://10.10.100.98:7001' // YB_APP = 'http://10.10.100.98:7001'
// YB_APP = 'https://iagentsales-test2.e-guofu.com:5200/api/v1' // YB_APP = 'https://iagentsales-test2.e-guofu.com:5200/api/v1'
YB_APP = 'https://iagentsales-test2.e-guofu.com:5200/api/'+apiVersion YB_APP = 'https://iagentsales-test2.e-guofu.com:5200/api/' + apiVersion
API_VERSION = apiVersion API_VERSION = apiVersion
break break
case 'uat': case 'uat':
apiDomain = 'https://iagentsales-test2.e-guofu.com:5200/api/'+apiVersion // 国富api apiDomain = 'https://iagentsales-test2.e-guofu.com:5200/api/' + apiVersion // 国富api
imgDomain = 'http://139.199.50.145:7012/updown' imgDomain = 'http://139.199.50.145:7012/updown'
// 静态服务资源 // 静态服务资源
assetsUrl = 'https://iagentsales-test2.e-guofu.com:443/app/' assetsUrl = 'https://iagentsales-test2.e-guofu.com:443/app/'
// 上传影像地址 98 服务器地址 // 上传影像地址 98 服务器地址
assetsUpUrl = 'https://iagentsales-test3.e-guofu.com:443' assetsUpUrl = 'https://iagentsales-test2.e-guofu.com:443'
mainUrl = 'http://115.159.235.59' mainUrl = 'http://115.159.235.59'
payUrl = 'https://funduat.e-guofu.com/s3-modules-gateway/embed/gateway.action' payUrl = 'https://funduat.e-guofu.com/s3-modules-gateway/embed/gateway.action'
zssqUrl = '' zssqUrl = ''
@@ -84,7 +85,7 @@ switch (process.env.VUE_APP_FLAG) {
API_VERSION = apiVersion API_VERSION = apiVersion
break break
case 'prd': case 'prd':
apiDomain = 'https://iagentsales.e-guofu.com/api/'+apiVersion apiDomain = 'https://iagentsales.e-guofu.com/api/' + apiVersion
imgDomain = 'https://iagentsales-ud.e-guofu.com:8553/updown' imgDomain = 'https://iagentsales-ud.e-guofu.com:8553/updown'
assetsUrl = 'https://iagentsales-sr.e-guofu.com:8443/' assetsUrl = 'https://iagentsales-sr.e-guofu.com:8443/'
// 上传影像地址 挂载共享盘 地址 // 上传影像地址 挂载共享盘 地址
@@ -94,7 +95,7 @@ switch (process.env.VUE_APP_FLAG) {
zssqUrl = '' zssqUrl = ''
REQ_PWD = '41424344454631323334353637383930' REQ_PWD = '41424344454631323334353637383930'
CACHE_ENCRYP = '41424344454631323334353637383930' CACHE_ENCRYP = '41424344454631323334353637383930'
YB_APP = 'https://iagentsales.e-guofu.com/api/'+apiVersion YB_APP = 'https://iagentsales.e-guofu.com/api/' + apiVersion
API_VERSION = apiVersion API_VERSION = apiVersion
break break
case 'dat': case 'dat':

View File

@@ -177,7 +177,7 @@ export default {
} }
} }
that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.tipsPolicyUrl}`) that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.tipsPolicyUrl}`)
//get请求 https://iagentsales-test3.e-guofu.com:5443/updown/returnDirectStream?imgPath=vBUWC6gbUDoEIRJfwkgbq%2F9UxMDwL0blVyXZaq1I0VNQo3JbEQW9W2Qmry%2BrY7il36nndFRV5ymB%0A37s41xUE3g8fAEEDIMT4SWwiuCiOI6M%3D //get请求 https://iagentsales-test2.e-guofu.com:5443/updown/returnDirectStream?imgPath=vBUWC6gbUDoEIRJfwkgbq%2F9UxMDwL0blVyXZaq1I0VNQo3JbEQW9W2Qmry%2BrY7il36nndFRV5ymB%0A37s41xUE3g8fAEEDIMT4SWwiuCiOI6M%3D
console.log(' that.pdfUrl', that.pdfUrl) console.log(' that.pdfUrl', that.pdfUrl)
resolve('success') resolve('success')
} }