mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 06:26:44 +08:00
【增加阅读《保险条款》步骤,关于金掌桂签名确认页面部分阅读签字材料更新和新增的需求】保险条款循环阅读后,radio,isOver恢复初始状态
This commit is contained in:
@@ -14,40 +14,40 @@
|
||||
*/
|
||||
|
||||
let apiDomain, imgDomain, assetsUrl, mainUrl, payUrl, zssqUrl, REQ_PWD, CACHE_ENCRYP, API_VERSION, assetsUpUrl, YB_APP // 保融支付的收银台服务地址
|
||||
function getSearchString (key) {
|
||||
var str = window.location.href.split('?')[1]
|
||||
str = str.substring(1, str.length) // 获取URL中?之后的字符(去掉第一位的问号)
|
||||
// 以&分隔字符串,获得类似name=xiaoli这样的元素数组
|
||||
var arr = str.split("&")
|
||||
var obj = new Object()
|
||||
// 将每一个数组元素以=分隔并赋给obj对象
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
var tmp_arr = arr[i].split("=")
|
||||
obj[decodeURIComponent(tmp_arr[0])] = decodeURIComponent(tmp_arr[1])
|
||||
}
|
||||
return obj[key]
|
||||
}
|
||||
let apiVersion = 'v2'
|
||||
var ua = window.navigator.userAgent.toLowerCase()
|
||||
//通过正则表达式匹配ua中是否含有MicroMessenger字符串, 在微信
|
||||
if (localStorage.getItem('apiVersion')) {
|
||||
apiVersion = localStorage.getItem('apiVersion')
|
||||
} else {
|
||||
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
|
||||
//report/reportList数据报表页面在浏览器可以打开了,但在微信或企业微信中打开不了,接口请求不需要token
|
||||
if (window.location.href.indexOf('apiVersion') > 0) {
|
||||
apiVersion = getSearchString('apiVersion') == 'V3' ? 'v3' : 'v2';//url中apiVersion没有时,为v2
|
||||
} else {
|
||||
apiVersion = 'v3'
|
||||
}
|
||||
} else {
|
||||
// 在app
|
||||
if (navigator.userAgent.indexOf('JZG_') > 0) {
|
||||
apiVersion = navigator.userAgent.split('JZG_')[1].split('/')[0].split('_')[1] == 'V3' ? 'v3' : 'v2'
|
||||
}
|
||||
}
|
||||
window.localStorage.setItem('apiVersion', apiVersion)
|
||||
}
|
||||
// function getSearchString(key) {
|
||||
// var str = window.location.href.split('?')[1]
|
||||
// str = str.substring(1, str.length) // 获取URL中?之后的字符(去掉第一位的问号)
|
||||
// // 以&分隔字符串,获得类似name=xiaoli这样的元素数组
|
||||
// var arr = str.split("&")
|
||||
// var obj = new Object()
|
||||
// // 将每一个数组元素以=分隔并赋给obj对象
|
||||
// for (var i = 0; i < arr.length; i++) {
|
||||
// var tmp_arr = arr[i].split("=")
|
||||
// obj[decodeURIComponent(tmp_arr[0])] = decodeURIComponent(tmp_arr[1])
|
||||
// }
|
||||
// return obj[key]
|
||||
// }
|
||||
let apiVersion = 'v1'
|
||||
// var ua = window.navigator.userAgent.toLowerCase()
|
||||
// //通过正则表达式匹配ua中是否含有MicroMessenger字符串, 在微信
|
||||
// if(localStorage.getItem('apiVersion')){
|
||||
// apiVersion = localStorage.getItem('apiVersion')
|
||||
// }else{
|
||||
// if(ua.match(/MicroMessenger/i) == 'micromessenger'){
|
||||
// //report/reportList数据报表页面在浏览器可以打开了,但在微信或企业微信中打开不了,接口请求不需要token
|
||||
// if(window.location.href.indexOf('apiVersion') > 0){
|
||||
// apiVersion = getSearchString('apiVersion')== 'V3'?'v3':'v2';//url中apiVersion没有时,为v2
|
||||
// }else{
|
||||
// apiVersion = 'v3'
|
||||
// }
|
||||
// }else{
|
||||
// // 在app
|
||||
// if(navigator.userAgent.indexOf('JZG_') > 0){
|
||||
// apiVersion = navigator.userAgent.split('JZG_')[1].split('/')[0].split('_')[1] == 'V3'?'v3':'v2'
|
||||
// }
|
||||
// }
|
||||
// window.localStorage.setItem('apiVersion', apiVersion)
|
||||
// }
|
||||
// 可以多个接口域名,按需添加
|
||||
console.log('环境:', process.env.VUE_APP_FLAG)
|
||||
switch (process.env.VUE_APP_FLAG) {
|
||||
|
||||
@@ -107,6 +107,8 @@ export default {
|
||||
|
||||
document.body.style.backgroundColor = '#fff'
|
||||
that.signVal = window.localStorage.getItem('sign-val')
|
||||
that.radio = ''
|
||||
this.isOver = false
|
||||
// if (JSON.parse(window.localStorage.getItem('sign-insured'))) {
|
||||
// that.insuredSign = JSON.parse(window.localStorage.getItem('sign-insured'))
|
||||
// }
|
||||
@@ -157,26 +159,36 @@ export default {
|
||||
that.insuredSign = insuredSignList
|
||||
for (let i = 0; i < list.length; i++){
|
||||
let item = list[i]
|
||||
if (that.signVal == '0' || that.signVal == '2') {
|
||||
if (item.documentCode == '13' && (item.documentStatus == '0' || item.documentStatus == '2') && (item.signType == '0' || item.signType == '2')) {
|
||||
console.log('000000000', item)
|
||||
// that.appntSign = item
|
||||
that.tipsPolicyUrl = item.policyUrl
|
||||
this.title = document.title = item.documentName
|
||||
console.log('that.appntSign', item.policyUrl)
|
||||
break
|
||||
}
|
||||
}else{
|
||||
if (item.documentCode == '13' && (item.documentStatus == '0' || item.documentStatus == '2') && item.signType == '1') {
|
||||
console.log('000000000', item)
|
||||
// that.appntSign = item
|
||||
that.tipsPolicyUrl = item.policyUrl
|
||||
originalUrl = item.originalUrl
|
||||
this.title = document.title = item.documentName
|
||||
console.log('that.appntSign', item.policyUrl)
|
||||
break
|
||||
}
|
||||
if (item.documentCode == '13' && (item.documentStatus == '0' || item.documentStatus == '2') && item.signType == that.signVal ) {
|
||||
console.log('000000000', item)
|
||||
// that.appntSign = item
|
||||
that.tipsPolicyUrl = item.policyUrl
|
||||
originalUrl = item.originalUrl
|
||||
this.title = document.title = item.documentName
|
||||
console.log('that.appntSign', item.policyUrl)
|
||||
break
|
||||
}
|
||||
// if (that.signVal == '0' || that.signVal == '2') {
|
||||
// if (item.documentCode == '13' && (item.documentStatus == '0' || item.documentStatus == '2') && (item.signType == '0' || item.signType == '2')) {
|
||||
// console.log('000000000', item)
|
||||
// // that.appntSign = item
|
||||
// that.tipsPolicyUrl = item.policyUrl
|
||||
// originalUrl = item.originalUrl
|
||||
// this.title = document.title = item.documentName
|
||||
// console.log('that.appntSign', item.policyUrl)
|
||||
// break
|
||||
// }
|
||||
// }else{
|
||||
// if (item.documentCode == '13' && (item.documentStatus == '0' || item.documentStatus == '2') && item.signType == '1') {
|
||||
// console.log('000000000', item)
|
||||
// // that.appntSign = item
|
||||
// that.tipsPolicyUrl = item.policyUrl
|
||||
// originalUrl = item.originalUrl
|
||||
// this.title = document.title = item.documentName
|
||||
// console.log('that.appntSign', item.policyUrl)
|
||||
// break
|
||||
// }
|
||||
// }
|
||||
}
|
||||
that.pdfUrl = originalUrl
|
||||
// that.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${that.tipsPolicyUrl}`)
|
||||
|
||||
Reference in New Issue
Block a user