mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 14:36:43 +08:00
# Conflicts: # src/api/ebiz/preserve/preserve.js # src/config/preserve.js # src/router/ebiz/index.js # src/views/ebiz/preserve/AutopayAuthorization.vue # src/views/ebiz/preserve/HandleResult.vue # src/views/ebiz/preserve/ImageUpload.vue # src/views/ebiz/preserve/RenewalConfirmation.vue # src/views/ebiz/preserve/RenewalInfo.vue
124 lines
3.8 KiB
Vue
124 lines
3.8 KiB
Vue
<!--操作结果页面-->
|
||
<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>
|