[FIX]【保全】分支整理

This commit is contained in:
yuweiqi
2020-06-03 09:29:14 +08:00
parent ca2956ebe4
commit 19c240d882
28 changed files with 1570 additions and 178 deletions

View File

@@ -0,0 +1,123 @@
<!--操作结果页面-->
<template>
<div class="handle-result-container">
<div class="payResult-header flex justify-content-c align-items-c p20 pt80"><img class="w60 h60 mt100" :src="srcSuccess" alt="" /></div>
<div class="flex flex-direction-colunm text-center">
<p class="mt15 mb20">已提交,待客户确认</p>
<p class="gray fs14">修改完成请让客户确认</p>
<p class="gray fs14">如客户当天24:00前未确认提交本次操作将自动取消</p>
</div>
<div class="bg-white bottom-btn"><van-button type="danger" size="large" @click="nextStep" v-no-more-click="2000">客户确认</van-button></div>
</div>
</template>
<script>
export default {
name: 'handleResult',
data() {
return {
path: '', //页面跳转路径
srcSuccess: this.$assetsUrl + 'images/success.png',
entry: '',
signInvalid: '',
surrenderType: '',
customerInfo: {}
}
},
created() {
this.entry = this.$route.query.entry
if (localStorage['preserve-customerInfo']) {
this.customerInfo = JSON.parse(localStorage['preserve-customerInfo'])
}
// 此处处理 this.path
switch (this.entry) {
case 'contact':
this.path = '/preserve/ContactConfirmation?entry=contact'
break
case 'beneficiary':
this.path = '/preserve/BeneficiaryConfirmation?entry=beneficiary&'
break
case 'renewal':
this.path = '2'
break
case 'bonus':
this.path = '3'
break
default:
this.path = ''
break
}
},
mounted() {
// document.body.style.backgroundColor = '#fff'
},
methods: {
nextStep() {
if (this.entry != 'beneficiary') {
// 如果 保全项不是 受益人变更、则 在证件类型为身份证时 直接接入人脸识别
// if (this.customerInfo.idType != '1') {
// 如果证件类型不是身份证
// 直接跳过人脸识别
this.jumpNextPage(this.path)
// } else {
// this.toFace({
// number: this.customerInfo.idNo, //身份证号码
// name: this.customerInfo.name //姓名
// })
// }
} else if (this.entry == 'beneficiary') {
// 如果 保全项是 受益人变更、则进行特殊判断
// 若被保险人≥18周岁人脸识别录入被保人本人
// 若被保险人18周岁被保险人与投保人为子女关系人脸识别录入未成年人父亲或母亲
// toDo
//
// if (this.customerInfo.idType != '1' ) {
// // 如果证件类型不是身份证
// // 直接跳过人脸识别
// this.jumpNextPage(this.path)
// }
//
this.jumpNextPage(this.path)
}
},
jumpNextPage(path = '/preserve/BeneficiaryInfo') {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#' + path
},
routerInfo: {
path: path
}
})
},
toFace(config) {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('face_auth', {
number: this.customerInfo.idNo, //身份证号码
name: this.customerInfo.customerName //姓名
})
// 跳过人脸识别
// new Promise(resolve => {
// console.log('--跳过人脸识别--返回识别成功')
// resolve(JSON.stringify({ state: '1' }))
// })
.then(data => {
if (JSON.parse(data).state == '1') {
this.jumpNextPage(this.path)
} else {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('webview_toast', '人脸检测失败')
}
})
}
}
// beforeRouteLeave(to, from, next) {
// // document.body.style.backgroundColor = ''
// next()
// }
}
</script>
<style></style>