【关于附加综合意外伤害保险(乐享版)投保流程增加《个人信息使用授权》阅知勾选的申请】看返回的数组中是否有documentCode为12

This commit is contained in:
li.yuetong
2022-09-01 11:03:22 +08:00
parent 819b2db8f9
commit 3578cc0eb3

View File

@@ -171,7 +171,7 @@ export default {
// chooseProductCodes: '',
// pdf名字
pdfName: '',
isPersonalInformation:'' // 0是 1否
isPersonalInformation:'' // -1不存在 0存在
}
},
components: {
@@ -433,7 +433,6 @@ export default {
]
}
}
alert(this.isPersonalInformation,'this.isPersonalInformation')
saveInformation(data).then(res => {
if (res.result == '0') {
this.$toast.clear()
@@ -480,7 +479,6 @@ export default {
}
} else {
if(this.isPersonalInformation == '0'){
alert('this.isPersonalInformation')
this.$jump({
flag: 'h5',
extra: {
@@ -493,7 +491,6 @@ export default {
}
})
}else{
alert('this.signatureConfirmation')
this.$jump({
flag: 'h5',
extra: {
@@ -925,13 +922,11 @@ export default {
}
getOrderDetail(data).then(res => {
if (res.result == '0') {
let array = []
res.orderDTO.ebizSignDTOS.map(item => {
if (item.documentCode == '12') {
this.isPersonalInformation = 0 // 0代表有code12
} else{
this.isPersonalInformation = 1 // 1代表无code12
}
array.push(item.documentCode)
})
this.isPersonalInformation = array.findIndex(item => item=== '12') //-1不存在 0存在
}
})
if (!this.isWeixin) {