feat-调用人脸识别插件新增 orderNo 入参

This commit is contained in:
zhang.weiwei
2025-02-06 11:54:29 +08:00
parent 16a1ed80ad
commit 7054c35de0
11 changed files with 809 additions and 668 deletions

1
.gitignore vendored
View File

@@ -4,3 +4,4 @@ dist
.eslintrc.js
.prettierrc
.idea
.history

View File

@@ -34,14 +34,12 @@
点击开始按钮进行相关操作<br /><span class="red">温馨提示请尽量使用正楷文字进行签名</span>
</div>
<div class="text-center mt20">
<van-button @click="faceAuth('0')" v-no-more-click="1000" :disabled="isAgentSubmit" type="danger" size="normal" style="width:30%">开始</van-button>
<van-button @click="faceAuth('0')" v-no-more-click="1000" :disabled="isAgentSubmit" type="danger" size="normal" style="width: 30%">开始</van-button>
</div>
</div>
<div class="ebizGuarantor">
<van-field readonly label-width="120px" label="担保人" v-model="ebizGuarantor.name"></van-field>
<p class="p15 line-height">
以下内容需要您按照顺序阅读并签字确认
</p>
<p class="p15 line-height">以下内容需要您按照顺序阅读并签字确认</p>
<div class="p15 line-height">
需签署
<ul>
@@ -63,9 +61,9 @@
</ul>
点击开始分享进行相关操作<br /><span class="red">温馨提示请尽量使用正楷文字进行签名</span>
</div>
<div v-if="!isInvalid" class="flex justify-content-a mb60 mt20">
<van-button v-if="!isWeixin" @click="share" v-no-more-click="1000" type="danger" size="normal" style="width:30%">分享</van-button>
<van-button @click="faceAuth('1')" v-no-more-click="1000" :disabled="isguranteeSubmit" type="danger" size="normal" style="width:30%">开始</van-button>
<div v-if="!isInvalid" class="flex justify-content-a mb60 mt20">
<van-button v-if="!isWeixin" @click="share" v-no-more-click="1000" type="danger" size="normal" style="width: 30%">分享</van-button>
<van-button @click="faceAuth('1')" v-no-more-click="1000" :disabled="isguranteeSubmit" type="danger" size="normal" style="width: 30%">开始</van-button>
</div>
<div v-else class="ml15">操作时间已失效请联系销售人员</div>
</div>
@@ -238,8 +236,8 @@ export default {
loadingType: 'spinner',
message: '加载中……'
})
return new Promise(resolve => {
agreementQuery(data).then(res => {
return new Promise((resolve) => {
agreementQuery(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
this.agentInfo = res.content.ebizEnterCustomerDto
@@ -251,10 +249,10 @@ export default {
this.agentInfo.createdDate = this.agentInfo.createdDate.substring(0, 10)
this.agentSignList = filtSignList(this, this.signList).agentSignList
this.guaranteeSignList = filtSignList(this, this.signList).guaranteeSignList
this.isAgentSubmit = this.agentSignList.every(item => {
this.isAgentSubmit = this.agentSignList.every((item) => {
return item.signState == '1'
})
this.isguranteeSubmit = this.guaranteeSignList.every(item => {
this.isguranteeSubmit = this.guaranteeSignList.every((item) => {
return item.signState == '1'
})
resolve()
@@ -285,7 +283,7 @@ export default {
message: '加载中……'
})
let data = {}
getSignInvalid(data).then(res => {
getSignInvalid(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
this.signInvalid = res.content.sign
@@ -321,8 +319,8 @@ export default {
let data = {
sign: signInvalid
}
return new Promise(resolve => {
checkSignInvalid(data).then(res => {
return new Promise((resolve) => {
checkSignInvalid(data).then((res) => {
if (res.result == '0') {
that.$toast.clear()
let status = res.content.status
@@ -338,7 +336,7 @@ export default {
if (code == '0') {
if (this.agentInfo.idType == '1') {
this.goUrl(code)
this.goUrl(code)
// 人脸识别次数小于3次
this.$toast.loading({
duration: 0, // 持续展示 toast
@@ -366,7 +364,8 @@ export default {
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
businessSource: '2', //业务来源:1-电投2-入司3-理赔4-保全
number: this.agentInfo.idNo, //身份证号码
name: this.agentInfo.name //姓名
name: this.agentInfo.name, //姓名
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
})
// const authRes = await this.fakeFaceAuth(true)
console.log(authRes)
@@ -395,7 +394,7 @@ export default {
},
fakeFaceAuth(expect) {
console.log('模拟调用人脸识别')
return new Promise(function(resolve, reject) {
return new Promise(function (resolve, reject) {
setTimeout(() => {
console.log('模拟人脸识别完成')
if (expect) {
@@ -409,11 +408,11 @@ export default {
goUrl(code) {
let path = ''
if (code == '0') {
path = this.agentSignList.filter(v => {
path = this.agentSignList.filter((v) => {
return v.signState == '0'
})[0].path
} else if (code == '1') {
path = this.guaranteeSignList.filter(v => {
path = this.guaranteeSignList.filter((v) => {
return v.signState == '0'
})[0].path
}
@@ -437,7 +436,7 @@ export default {
loadingType: 'spinner',
message: '加载中……'
})
signAgreement(data).then(res => {
signAgreement(data).then((res) => {
console.log(res)
if (res.result == '0') {
this.$toast.clear()

View File

@@ -1,27 +1,24 @@
<template>
<div class='orderDetail-container'>
<index-bar :allowance-no='$route.query.allowanceNo' :reapply-no='$route.query.reapply' v-if='!isWeixin'></index-bar>
<div v-for='(item, index) in allowanceSignDTOLst' :key='index'>
<div class="orderDetail-container">
<index-bar :allowance-no="$route.query.allowanceNo" :reapply-no="$route.query.reapply" v-if="!isWeixin"></index-bar>
<div v-for="(item, index) in allowanceSignDTOLst" :key="index">
<!-- 申请人 -->
<div v-if='item.type == 1 && !isWeixin'>
<p class='fw600 border-gb'>
<span>申请人</span><span class='ml60'>{{ allowanceApplyDTO.name }}</span>
<div v-if="item.type == 1 && !isWeixin">
<p class="fw600 border-gb">
<span>申请人</span><span class="ml60">{{ allowanceApplyDTO.name }}</span>
</p>
<p>点击签名按钮进行申请人签名</p>
<p class='border-gb'>
<p class="border-gb">
<span>申请人</span>
<van-button type='danger' color='#2E4591' class='ml5' size='small' @click='signFunc(item.type, item.id)'
:disabled='isSure' v-no-more-click='1000'>{{
item.signStatus == '0' ? '签名' : '已签名'
}}
<van-button type="danger" color="#2E4591" class="ml5" size="small" @click="signFunc(item.type, item.id)" :disabled="isSure" v-no-more-click="1000"
>{{ item.signStatus == '0' ? '签名' : '已签名' }}
</van-button>
<img class='w60 h40 v-middle ml10' v-if='item.signPath' :src="imgUrl + item.signPath.replace(/\+/g, '%2B')"
alt='' /><br />
<img class="w60 h40 v-middle ml10" v-if="item.signPath" :src="imgUrl + item.signPath.replace(/\+/g, '%2B')" alt="" /><br />
</p>
</div>
<div v-if='item.type == 2'>
<div v-if='isWeixin' class='bg-white mt10 fs14 tips'>
<div v-if="item.type == 2">
<div v-if="isWeixin" class="bg-white mt10 fs14 tips">
<p>
尊敬的
<span>{{ allowanceEnjoyDTO.name }}</span
@@ -29,83 +26,54 @@
</p>
<p>恭喜您获得国富人寿桂冠专属父母赡养津贴需要您点击签字按钮进行签字申请</p>
</div>
<p v-if='!isWeixin' class='fw600 border-gb'>
<span>享受人</span><span class='ml60'>{{ allowanceEnjoyDTO.name }}</span>
<p v-if="!isWeixin" class="fw600 border-gb">
<span>享受人</span><span class="ml60">{{ allowanceEnjoyDTO.name }}</span>
</p>
<p v-if='!isWeixin'>点击签名按钮进行享受人签名</p>
<p class='border-gb'>
<p v-if="!isWeixin">点击签名按钮进行享受人签名</p>
<p class="border-gb">
<span>享受人</span>
<van-button type='danger' color='#2E4591' class='ml5' size='small' @click='signFunc(item.type, item.id)'
:disabled='isSure' v-no-more-click='1000'>{{
item.signStatus == '0' ? '签名' : '已签名'
}}
<van-button type="danger" color="#2E4591" class="ml5" size="small" @click="signFunc(item.type, item.id)" :disabled="isSure" v-no-more-click="1000"
>{{ item.signStatus == '0' ? '签名' : '已签名' }}
</van-button>
<img class='w60 h40 v-middle ml10' v-if='item.signPath' :src="imgUrl + item.signPath.replace(/\+/g, '%2B')"
alt='' /><br />
<img class="w60 h40 v-middle ml10" v-if="item.signPath" :src="imgUrl + item.signPath.replace(/\+/g, '%2B')" alt="" /><br />
<!-- 享受人有分享功能 -->
<van-button
type='danger'
color='#2E4591'
class='ml65 mt10'
v-if='!isWeixin'
size='small'
type="danger"
color="#2E4591"
class="ml65 mt10"
v-if="!isWeixin"
size="small"
@click="share('0')"
:disabled='isSure'
v-no-more-click='1000'
>分享
</van-button
>
:disabled="isSure"
v-no-more-click="1000"
>分享
</van-button>
</p>
</div>
</div>
<van-button v-if='!isWeixin' type='danger' color='#2E4591' class='bottom-btn ffcb6b' @click='nextStep'
v-no-more-click='1000'>提交审批
</van-button>
<SignTure :SignShow='SignShow' :signInfo='allowanceEnjoyDTO' @close='SignClose'
@SignSuccessful='SignSuccessful'></SignTure>
<van-button v-if="!isWeixin" type="danger" color="#2E4591" class="bottom-btn ffcb6b" @click="nextStep" v-no-more-click="1000">提交审批 </van-button>
<SignTure :SignShow="SignShow" :signInfo="allowanceEnjoyDTO" @close="SignClose" @SignSuccessful="SignSuccessful"></SignTure>
<!-- 短信验证 -->
<van-dialog v-model='show' title='提示' show-cancel-button @confirm='authConfirm(authCode)' @cancel='clearTimer'>
<p class='p10 fs14'>为确保是您本人操作短信验证码已发送至您手机号{{ encyCustomerMobile }}请您输入验证码以完成后续投保操作</p>
<van-cell-group class='flex align-items-c pr5 mb15'>
<van-field maxlength='6' placeholder='请输入短信验证码' v-model='authCode' clearable label-width='0' />
<van-button type='danger' color='#2E4591' plain size='small' class='w160 p0' @click='getAuthCode'
:disabled='codeDisabled' v-no-more-click='2000'>{{
codeDisabled ? `${countDown}s后重新获取` : '获取验证码'
}}
<van-dialog v-model="show" title="提示" show-cancel-button @confirm="authConfirm(authCode)" @cancel="clearTimer">
<p class="p10 fs14">为确保是您本人操作短信验证码已发送至您手机号{{ encyCustomerMobile }}请您输入验证码以完成后续投保操作</p>
<van-cell-group class="flex align-items-c pr5 mb15">
<van-field maxlength="6" placeholder="请输入短信验证码" v-model="authCode" clearable label-width="0" />
<van-button type="danger" color="#2E4591" plain size="small" class="w160 p0" @click="getAuthCode" :disabled="codeDisabled" v-no-more-click="2000"
>{{ codeDisabled ? `${countDown}s后重新获取` : '获取验证码' }}
</van-button>
</van-cell-group>
</van-dialog>
</div>
</template>
<script>
import {
Toast,
CellGroup,
Field,
Dialog,
Collapse,
CollapseItem,
Cell,
Popup,
Divider,
RadioGroup,
Radio,
Tag
} from 'vant'
import { Toast, CellGroup, Field, Dialog, Collapse, CollapseItem, Cell, Popup, Divider, RadioGroup, Radio, Tag } from 'vant'
import { getAllowanceDetail, saveOrUpdateAllowanceUrl, approveInit } from '@/api/ebiz/allowance/allowance'
import SignTure from './component/SignTure'
import config from '@/config'
import { getWhitelist } from '@/api/ebiz/whitelist'
import { weixinShare } from '@/assets/js/utils/wxShare.js'
import { checkPhone } from '@/api/ebiz/customer/customer'
import {
getSignInvalid,
checkSignInvalid,
getAuthCode,
autchCodeCheck,
getRecognitionUrl,
getRecognitionResult
} from '@/api/ebiz/sale/sale'
import { getSignInvalid, checkSignInvalid, getAuthCode, autchCodeCheck, getRecognitionUrl, getRecognitionResult } from '@/api/ebiz/sale/sale'
import { getShareParam } from '@/api/ebiz/cardList/cardList.js'
import IndexBar from '@/components/ebiz/allowance/application/IndexBar'
@@ -497,7 +465,8 @@ export default {
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
businessSource: '5', //业务来源:1-电投2-入司3-理赔4-保全 5津贴
number: that.allowanceEnjoyDTO.idNo, //身份证号码
name: that.allowanceEnjoyDTO.name //姓名
name: that.allowanceEnjoyDTO.name, //姓名
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
}).then((data) => {
console.log(JSON.parse(data), 'APP人脸识别结果')
if (JSON.parse(data).state == '1') {
@@ -669,7 +638,7 @@ export default {
extra: {
title: `国富人寿桂冠专属父母赡养津贴申请`,
content: '点击去签字',
shareScene:0,// 0只分享好友1 只分享朋友圈 不传默认所有
shareScene: 0, // 0只分享好友1 只分享朋友圈 不传默认所有
url: location.origin + '/#/allowance/application/signatureConfirmation?allowanceNo=' + this.allowanceNo + '&token=' + res.content,
// '&relationToAppnt=' +
// JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt +
@@ -728,7 +697,7 @@ export default {
}
}
</script>
<style lang='scss'>
<style lang="scss">
#app {
.van-dialog__confirm,
.van-dialog__confirm:active {
@@ -736,7 +705,7 @@ export default {
}
}
</style>
<style lang='scss' scoped>
<style lang="scss" scoped>
.orderDetail-container {
background-color: #fff;
min-height: 100vh;

View File

@@ -23,7 +23,7 @@
<van-button
type="danger"
size="normal"
style="width: 157px;"
style="width: 157px"
plain
v-no-more-click="1000"
@click="share(3)"
@@ -34,7 +34,7 @@
<van-button
type="danger"
size="normal"
style="width: 157px;"
style="width: 157px"
plain
v-no-more-click="1000"
@click="start_ocr(3)"
@@ -237,7 +237,7 @@ export default {
caseStatus: 'applying',
businessNo: localStorage.businessNo
}
progressDetail(data).then(res => {
progressDetail(data).then((res) => {
if (res.result == 0) {
console.log(res)
this.list = res.content
@@ -253,7 +253,7 @@ export default {
message: '加载中……'
})
let data = {}
getSignInvalid(data).then(res => {
getSignInvalid(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
this.signInvalid = res.content.sign
@@ -273,7 +273,7 @@ export default {
sign: signInvalid
}
return new Promise((resolve, reject) => {
checkSignInvalid(data).then(res => {
checkSignInvalid(data).then((res) => {
if (res.result == '0') {
that.$toast.clear()
let status = res.content.status
@@ -354,7 +354,8 @@ export default {
number: that.list.applyerCertiCode,
//姓名
name: that.list.applyerName,
businessSource: '3'
businessSource: '3',
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
})
// const authRes = await new Promise(resolve => {
// resolve(JSON.stringify({ state: '0' }))
@@ -380,7 +381,7 @@ export default {
let data = { realName: this.idcardData.idcardName, idno: this.idcardData.idcardNumber, redirectUrl: location.origin + '/#' + this.$route.fullPath }
console.log('获取URL请求参数', data)
getRecognitionUrl(data).then(
res => {
(res) => {
console.log('getRecognitionUrl', res)
if (res.result == '0') {
localStorage.setItem('faceAuthWeXin-requestId', JSON.stringify(res.content.requestId))
@@ -390,7 +391,7 @@ export default {
this.$toast(res.resultMessage)
}
},
error => {
(error) => {
console.log(error)
}
)
@@ -398,7 +399,7 @@ export default {
},
getRecognitionResult(requestId, bizToken) {
getRecognitionResult({ requestId, bizToken })
.then(res => {
.then((res) => {
console.log('getRecognitionResult', res)
if (res.result == '0') {
this.showRead()
@@ -406,7 +407,7 @@ export default {
this.$toast(res.resultMessage)
}
})
.catch(error => {
.catch((error) => {
console.log(error)
})
localStorage.setItem('faceAuthWeXin-requestId', '')
@@ -445,7 +446,7 @@ export default {
localStorage.setItem('successClaimNo', '')
let that = this
let data = { businessNo: localStorage.getItem('businessNo') }
submit(data).then(res => {
submit(data).then((res) => {
if (res.result == '0') {
localStorage.successClaimNo = res.content.claimNo
that.$jump({

View File

@@ -1,6 +1,6 @@
<template>
<div class="insure-again">
<div class="signature-content pb40">
<div class="signature-content pb40">
<div v-if="!isWeixin">
<ProgressBar :active.sync="active" />
</div>
@@ -144,7 +144,7 @@
<van-button
type="danger"
size="normal"
style="width: 157px;"
style="width: 157px"
plain
:disabled="changeCard ? appntSign.documentStatus == '1' : appntSignStatus == '3'"
v-no-more-click="1000"
@@ -178,7 +178,7 @@
type="danger"
size="normal"
plain
style="width: 157px;"
style="width: 157px"
:disabled="insuredSignStatus == '3'"
@click="start_ocr('1')"
v-no-more-click="1000"
@@ -347,7 +347,7 @@ export default {
methods: {
fakeFaceAuth(expect) {
console.log('模拟调用人脸识别')
return new Promise(function(resolve, reject) {
return new Promise(function (resolve, reject) {
setTimeout(() => {
console.log('模拟人脸识别完成')
if (expect) {
@@ -509,7 +509,7 @@ export default {
}
// eslint-disable-next-line no-unused-vars
return new Promise((resolve, reject) => {
checkPhone(data).then(res => {
checkPhone(data).then((res) => {
if (res.result == '0') {
console.log(res)
this.show = true
@@ -578,7 +578,7 @@ export default {
operateCode: this.customerMobile,
system: 'agentApp',
operateCodeType: '0'
}).then(res => {
}).then((res) => {
console.log(res)
if (res.result == 0) {
this.sid = res.sessionId
@@ -747,11 +747,12 @@ export default {
}
if (this.faceAuthCount.appnt < this.smsAuthNum) {
// eslint-disable-next-line no-undef
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
businessSource: '1', //业务来源:1-电投2-入司3-理赔4-保全
number: that.saleInsuredInfo.idNo, //身份证号码
name: that.saleInsuredInfo.name //姓名
}).then(data => {
name: that.saleInsuredInfo.name, //姓名
orderNo: CacheUtils.getLocItem('orderNo') //订单号
}).then((data) => {
if (JSON.parse(data).state == '1') {
// 保存rid 数据
that.saveCustomerRidInfo('appnt_rid', 'B')
@@ -766,8 +767,8 @@ export default {
})
// todo 测试去掉人脸识别 start=====================
// 保存rid 数据
// that.saveCustomerRidInfo('appnt_rid', 'B')
// that.goUrl()
// that.saveCustomerRidInfo('appnt_rid', 'B')
// that.goUrl()
// todo 测试去掉人脸识别 end=====================
// const authRes = await this.fakeFaceAuth(true)
@@ -824,8 +825,9 @@ export default {
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
businessSource: '1', //业务来源:1-电投2-入司3-理赔4-保全
number: that.saleInsuredPersonInfo.idNo, //身份证号码
name: that.saleInsuredPersonInfo.name //姓名
}).then(data => {
name: that.saleInsuredPersonInfo.name, //姓名
orderNo: CacheUtils.getLocItem('orderNo') //订单号
}).then((data) => {
if (JSON.parse(data).state == '1') {
that.saveCustomerRidInfo('insured_rid', 'B')
that.insuredUrl()
@@ -981,19 +983,21 @@ export default {
}
})
} else {
console.log(location.origin +
'/#/insureAgain/signatureConfirmation?orderNo=' +
localStorage.orderNo +
'&token=' +
localStorage.token +
'&relationToAppnt=' +
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt +
'&shareCode=' +
code +
'&signInvalid=' +
this.signInvalid +
'&productCode=' +
localStorage.productCode)
console.log(
location.origin +
'/#/insureAgain/signatureConfirmation?orderNo=' +
localStorage.orderNo +
'&token=' +
localStorage.token +
'&relationToAppnt=' +
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt +
'&shareCode=' +
code +
'&signInvalid=' +
this.signInvalid +
'&productCode=' +
localStorage.productCode
)
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('bridge', {
flag: 'share',
@@ -1041,7 +1045,7 @@ export default {
}
}
// /insure/selfToHuman
underWrite(data).then(res => {
underWrite(data).then((res) => {
this.$toast.clear()
let that = this
if (res.result == '0') {
@@ -1148,8 +1152,8 @@ export default {
getOtherType: 'RID'
}
localStorage.setItem('riskName', '')
return new Promise(resolve => {
getOrderDetail(data).then(res => {
return new Promise((resolve) => {
getOrderDetail(data).then((res) => {
if (res.result == '0') {
if (res.orderDTO && res.orderDTO.prtType) {
localStorage.setItem('readingProtocolType', res.orderDTO.prtType)
@@ -1165,7 +1169,6 @@ export default {
!!res.orderDTO.productDTO.special.content &&
res.orderDTO.productDTO.special.content !== ''
) {
let content = res.orderDTO.productDTO.special.content
try {
@@ -1219,7 +1222,7 @@ export default {
}
that.appnt = res.orderDTO.appntDTO
that.date = res.orderDTO.orderInfoDTO.appntDateLabel
res.orderDTO.ebizSignDTOS.map(item => {
res.orderDTO.ebizSignDTOS.map((item) => {
if (item.signType == '0' || item.signType == '2') {
if (!localStorage.changeCard) {
if (item.documentCode != '5') {
@@ -1238,11 +1241,11 @@ export default {
})
if (!that.changeCard) {
//将投保人数组排序
that.appntSign.sort(function(a, b) {
that.appntSign.sort(function (a, b) {
return a.key - b.key
})
//获取投保和被保险人电子投保单签字状态
that.appntSign.map(item => {
that.appntSign.map((item) => {
// 判断是否双录
if (item.documentCode == '6') {
localStorage.doubleRecordFlag = '1'
@@ -1251,7 +1254,7 @@ export default {
that.appntSignStatus = item.documentStatus
}
})
that.insuredSign.map(item => {
that.insuredSign.map((item) => {
if (item.documentCode == '2') {
that.insuredSignStatus = item.documentStatus
}
@@ -1299,7 +1302,7 @@ export default {
message: '加载中……'
})
let data = {}
getSignInvalid(data).then(res => {
getSignInvalid(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
this.signInvalid = res.content.sign
@@ -1320,8 +1323,8 @@ export default {
let data = {
sign: signInvalid
}
return new Promise(resolve => {
checkSignInvalid(data).then(res => {
return new Promise((resolve) => {
checkSignInvalid(data).then((res) => {
if (res.result == '0') {
that.$toast.clear()
let status = res.content.status
@@ -1385,7 +1388,7 @@ export default {
businessSource: this.idcardData.businessSource
}
getRecognitionUrl(data).then(
res => {
(res) => {
if (res.result == '0') {
localStorage.setItem('faceAuthWeXin-requestId', JSON.stringify(res.content.requestId))
localStorage.setItem('faceAuthWeXin-bizToken', JSON.stringify(res.content.bizToken))
@@ -1394,7 +1397,7 @@ export default {
this.$toast(res.resultMessage)
}
},
error => {
(error) => {
console.log(error)
}
)
@@ -1403,7 +1406,7 @@ export default {
getRecognitionResult(requestId, bizToken) {
return new Promise(() => {
getRecognitionResult({ requestId, bizToken }).then(
res => {
(res) => {
if (res.result == '0') {
this.recognizeResult = res.result
} else {
@@ -1411,7 +1414,7 @@ export default {
}
this.sendimage(this.recognizeResult)
},
error => {
(error) => {
console.log(error)
}
)
@@ -1450,7 +1453,7 @@ export default {
}
}
// 保存rid 认证结果 不阻断流程
saveCustomerRid(param).then(res => {
saveCustomerRid(param).then((res) => {
console.log('saveCustomerRid', res)
})
}

View File

@@ -30,7 +30,9 @@
<div v-if="active === 'uncommit'">
<van-button size="small" round type="danger" @click="uncommitInsureDetail(order)" plain>查看详情</van-button>
<van-button v-if="canRevoke[order.newOrderStatus]" class="ml10" size="small" round type="danger" @click="revokeOrder(order)">撤单</van-button>
<van-button class="ml10" size="small" round type="danger" @click="insureAgain(order)">{{ order.newOrderStatus == '02'?'待支付':'重新投保'}}</van-button>
<van-button class="ml10" size="small" round type="danger" @click="insureAgain(order)">{{
order.newOrderStatus == '02' ? '待支付' : '重新投保'
}}</van-button>
</div>
<div v-if="active === 'commit'">
<van-button v-if="canRevoke[order.newOrderStatus]" class="ml10" size="small" round type="danger" @click="revokeOrder(order)">撤单</van-button>
@@ -45,88 +47,92 @@
<div class="mt20" v-if="errMessage != ''">{{ errMessage }}</div>
</div>
</van-pull-refresh>
<van-dialog
class="dialog-delete"
@confirm="checkCaptchaCode"
@cancel="cancelCaptchaCode"
:before-close="beforeClose"
confirm-button-color="#fff"
v-model="revokePanelShow"
title="短信验证"
show-cancel-button
>
<p class="captchaReceiver">投保人手机号: {{ captchaReceiver | phoneNumFilter }}</p>
<van-field v-model="sms" center clearable placeholder="请输入短信验证码">
<template #button>
<van-button :disabled="sendTime !== 0" v-no-more-click="1000" @click="getCaptchaCode" size="small" type="danger">{{
sendTime ? `${sendTime}s后获取` : '获取验证码'
}}</van-button>
</template>
</van-field>
</van-dialog>
</div>
<van-popup v-model="isAgreementShow" position="right" :style="{ height: '100vh', width: '100vw' }">
<ReadingAgreement :needTime="false">
<h3 class="p10" style="text-align: center">重新投保声明提示</h3>
<p style="text-indent: 28px">尊敬的{{ orderInfo.appntName }}{{ orderInfo.sex == 0 ? '先生' : '女士' }}</p>
<div class="p10 mb90" v-if="orderInfo.riskCode !== 'GFRS_A0008'">
<p style="text-indent: 28px">
您好感谢您选择购买国富人寿保险股份有限公司以下简称我们保险产品您于{{ orderInfo.cvaliDate }}投保的旧保单{{
orderInfo.policyNo
}}产品名称为{{ orderInfo.riskName }}即将到期或已到期到期日期详见保单为保护您的权益您可向我们提交重新投保申请以下是申请重新投保的注意事项和声明请您仔细阅读和确认
</p>
<p style="text-indent: 28px">1.{{ orderInfo.riskName }}保险期间为一年到期后需要您重新投保</p>
<p style="text-indent: 28px">
2.本次重新投保我们将按照{{ orderInfo.riskName }}费率表中的在上一保险期间届满后60日内申请重新投保时对应的费率计算保费
</p>
<p style="text-indent: 28px">3.若本次重新投保成功新保单免除等待期</p>
<p style="text-indent: 28px">
4.本次重新投保仅限于无其他补充告知的情况若您有其他补充告知您的条件不符合本次重新投保流程您可联系保单服务专员通过其他途径进行投保申请
</p>
<p style="text-indent: 28px">
5.若您于旧保单满期前申请重新投保且于旧保单满期前成功支付保险费则新保单在旧保单保险期满日对应日的次日零时生效旧保单在保险期满日24时终止若您于旧保单满期后重新投保申请且成功支付保险费则新保单于支付次日零时生效旧保单在保险期满日24时终止
</p>
<!-- <p style="text-indent: 28px">
6.若您未在旧保单满期后60天包含内申请重新投保则您的重新投保资格将被取消后续您可再次申请投保但新单不再与旧保单关联需重新计算等待期具体详情可咨询保单服务专员
</p> -->
</div>
<div class="p10 mb90" v-else>
<p style="text-indent: 28px">
您好感谢您选择购买国富人寿保险股份有限公司以下简称我们保险产品您于{{ orderInfo.cvaliDate }}投保的旧保单{{
orderInfo.policyNo
}}产品名称为{{ orderInfo.riskName }}即将到期或已到期到期日期详见保单为保护您的权益您可向我们提交重新投保申请以下是申请重新投保的注意事项和声明请您仔细阅读和确认
</p>
<p style="text-indent: 28px">1.{{ orderInfo.riskName }}保险期间为一年到期后需要您重新投保</p>
<p style="text-indent: 28px">
2.本次重新投保我们将按照{{ orderInfo.riskName }}费率表中的在上一保险期间届满后60日内申请重新投保时对应的费率计算保费
</p>
<p style="text-indent: 28px">3.若本次重新投保成功新保单免除等待期</p>
<p style="text-indent: 28px">
4.本次重新投保仅限于无其他补充告知的情况若您有其他补充告知您的条件不符合本重新投保申请您可联系保单服务专员通过其他途径进行投保申请
</p>
<p style="text-indent: 28px">
5.若您于旧保单满期前申请重新投保且于旧保单满期前成功支付保险费则新保单在旧保单保险期满日对应日的次日零时生效旧保单在保险期满日24时终止若您于旧保单满期后重新投保申请且成功支付保险费则新保单于支付次日零时生效旧保单在保险期满日24时终止
</p>
<!-- <p style="text-indent: 28px">
6.若您未在旧保单满期后60天包含内申请重新投保则您的重新投保资格将被取消后续您可再次申请投保但新单不再与旧保单关联需重新计算等待期具体详情可咨询保单服务专员
</p> -->
<p style="text-indent: 28px">
6.国富人寿附加住院医疗保险已停售您可选择投保同类产品国富人寿附加住院医疗保险B款我们将按照国富人寿附加住院医疗保险B款费率表中的在上一保险期间届满后60日内申请重新投保时对应的费率计算保费
</p>
</div>
<template #action>
<van-radio-group class="m10" v-model="radio">
<van-radio :name="false">
<span style="font-size: 14px">本人已阅读知晓本投保声明内容同意重新投保</span>
</van-radio>
</van-radio-group>
<div class="btns">
<van-button type="danger" :disabled="radio" block @click="nextStep">下一步</van-button>
</div>
<van-dialog
class="dialog-delete"
@confirm="checkCaptchaCode"
@cancel="cancelCaptchaCode"
:before-close="beforeClose"
confirm-button-color="#fff"
v-model="revokePanelShow"
title="短信验证"
show-cancel-button
>
<p class="captchaReceiver">投保人手机号: {{ captchaReceiver | phoneNumFilter }}</p>
<van-field v-model="sms" center clearable placeholder="请输入短信验证码">
<template #button>
<van-button :disabled="sendTime !== 0" v-no-more-click="1000" @click="getCaptchaCode" size="small" type="danger">{{
sendTime ? `${sendTime}s后获取` : '获取验证码'
}}</van-button>
</template>
</ReadingAgreement>
</van-popup>
</van-field>
</van-dialog>
</div>
<van-popup v-model="isAgreementShow" position="right" :style="{ height: '100vh', width: '100vw' }">
<ReadingAgreement :needTime="false">
<h3 class="p10" style="text-align: center">重新投保声明提示</h3>
<p style="text-indent: 28px">尊敬的{{ orderInfo.appntName }}{{ orderInfo.sex == 0 ? '先生' : '女士' }}</p>
<div class="p10 mb90" v-if="orderInfo.riskCode !== 'GFRS_A0008'">
<p style="text-indent: 28px">
您好感谢您选择购买国富人寿保险股份有限公司以下简称我们保险产品您于{{ orderInfo.cvaliDate }}投保的旧保单{{
orderInfo.policyNo
}}产品名称为{{
orderInfo.riskName
}}即将到期或已到期到期日期详见保单为保护您的权益您可向我们提交重新投保申请以下是申请重新投保的注意事项和声明请您仔细阅读和确认
</p>
<p style="text-indent: 28px">1.{{ orderInfo.riskName }}保险期间为一年到期后需要您重新投保</p>
<p style="text-indent: 28px">
2.本次重新投保我们将按照{{ orderInfo.riskName }}费率表中的在上一保险期间届满后60日内申请重新投保时对应的费率计算保费
</p>
<p style="text-indent: 28px">3.若本次重新投保成功新保单免除等待期</p>
<p style="text-indent: 28px">
4.本次重新投保仅限于无其他补充告知的情况若您有其他补充告知您的条件不符合本次重新投保流程您可联系保单服务专员通过其他途径进行投保申请
</p>
<p style="text-indent: 28px">
5.若您于旧保单满期前申请重新投保且于旧保单满期前成功支付保险费则新保单在旧保单保险期满日对应日的次日零时生效旧保单在保险期满日24时终止若您于旧保单满期后重新投保申请且成功支付保险费则新保单于支付次日零时生效旧保单在保险期满日24时终止
</p>
<!-- <p style="text-indent: 28px">
6.若您未在旧保单满期后60天包含内申请重新投保则您的重新投保资格将被取消后续您可再次申请投保但新单不再与旧保单关联需重新计算等待期具体详情可咨询保单服务专员
</p> -->
</div>
<div class="p10 mb90" v-else>
<p style="text-indent: 28px">
您好感谢您选择购买国富人寿保险股份有限公司以下简称我们保险产品您于{{ orderInfo.cvaliDate }}投保的旧保单{{
orderInfo.policyNo
}}产品名称为{{
orderInfo.riskName
}}即将到期或已到期到期日期详见保单为保护您的权益您可向我们提交重新投保申请以下是申请重新投保的注意事项和声明请您仔细阅读和确认
</p>
<p style="text-indent: 28px">1.{{ orderInfo.riskName }}保险期间为一年到期后需要您重新投保</p>
<p style="text-indent: 28px">
2.本次重新投保我们将按照{{ orderInfo.riskName }}费率表中的在上一保险期间届满后60日内申请重新投保时对应的费率计算保费
</p>
<p style="text-indent: 28px">3.若本次重新投保成功新保单免除等待期</p>
<p style="text-indent: 28px">
4.本次重新投保仅限于无其他补充告知的情况若您有其他补充告知您的条件不符合本重新投保申请您可联系保单服务专员通过其他途径进行投保申请
</p>
<p style="text-indent: 28px">
5.若您于旧保单满期前申请重新投保且于旧保单满期前成功支付保险费则新保单在旧保单保险期满日对应日的次日零时生效旧保单在保险期满日24时终止若您于旧保单满期后重新投保申请且成功支付保险费则新保单于支付次日零时生效旧保单在保险期满日24时终止
</p>
<!-- <p style="text-indent: 28px">
6.若您未在旧保单满期后60天包含内申请重新投保则您的重新投保资格将被取消后续您可再次申请投保但新单不再与旧保单关联需重新计算等待期具体详情可咨询保单服务专员
</p> -->
<p style="text-indent: 28px">
6.国富人寿附加住院医疗保险已停售您可选择投保同类产品国富人寿附加住院医疗保险B款我们将按照国富人寿附加住院医疗保险B款费率表中的在上一保险期间届满后60日内申请重新投保时对应的费率计算保费
</p>
</div>
<template #action>
<van-radio-group class="m10" v-model="radio">
<van-radio :name="false">
<span style="font-size: 14px">本人已阅读知晓本投保声明内容同意重新投保</span>
</van-radio>
</van-radio-group>
<div class="btns">
<van-button type="danger" :disabled="radio" block @click="nextStep">下一步</van-button>
</div>
</template>
</ReadingAgreement>
</van-popup>
</div>
</template>
@@ -180,15 +186,15 @@ export default {
isShow: false,
orderInfo: {},
canRevoke: {
'19': true,
19: true,
'02': true,
'48': true,
'49': true,
'55': true,
'58': true,
'46': true,
'50': true,
'51': true
48: true,
49: true,
55: true,
58: true,
46: true,
50: true,
51: true
},
revokePanelShow: false,
sms: '',
@@ -206,7 +212,12 @@ export default {
NewItems() {
var NewItems = []
this.policyListDTOList.map((item) => {
if (item.riskName.search(this.searchName) != -1 || item.policyNo.search(this.searchName) != -1 || item.appntName.search(this.searchName) != -1 || item.insuredName.search(this.searchName) != -1) {
if (
item.riskName.search(this.searchName) != -1 ||
item.policyNo.search(this.searchName) != -1 ||
item.appntName.search(this.searchName) != -1 ||
item.insuredName.search(this.searchName) != -1
) {
if (item.reInsuranceState != null && item.reInsuranceState != '') {
if (this.active === 'uncommit') {
if (
@@ -297,7 +308,7 @@ export default {
if (order.newOrderStatus == '02') {
this.goUrl(res, order)
return
}else {
} else {
this.orderInfo.sex = res.orderDTO.appntDTO.sex
if (res.orderDTO.appntDTO.idType == '1') {
// 白名单校验
@@ -316,7 +327,8 @@ export default {
window.EWebBridge.webCallAppInJs('face_auth', {
businessSource: '1', //业务来源:1-电投2-入司3-理赔4-保全
number: res.orderDTO.appntDTO.idNo, //身份证号码
name: res.orderDTO.appntDTO.name //姓名
name: res.orderDTO.appntDTO.name, //姓名,
orderNo: CacheUtils.getLocItem('orderNo') //订单号
}).then((data) => {
if (JSON.parse(data).state == '1') {
this.goUrl(res, order)
@@ -501,28 +513,28 @@ export default {
},
revokeOrder(order) {
this.$dialog
.confirm({
className: 'dialog-delete',
title: '提示',
message: '撤单后,数据将不可恢复,您确定要撤单吗?',
cancelButtonColor: '#E9332E',
confirmButtonColor: '#FFFFFF'
})
.then(() => {
this.revokePanelShow = true
this.captchaReceiver = order.appntMobile
this.revokeOrderNo = order.newOrderNo
})
.confirm({
className: 'dialog-delete',
title: '提示',
message: '撤单后,数据将不可恢复,您确定要撤单吗?',
cancelButtonColor: '#E9332E',
confirmButtonColor: '#FFFFFF'
})
.then(() => {
this.revokePanelShow = true
this.captchaReceiver = order.appntMobile
this.revokeOrderNo = order.newOrderNo
})
}
}
}
</script>
<style lang="scss" scoped>
.captchaReceiver {
margin-left: 1em;
padding-bottom: 1em;
border-bottom: 1px solid #eaeaea;
font-size: 14px;
}
.captchaReceiver {
margin-left: 1em;
padding-bottom: 1em;
border-bottom: 1px solid #eaeaea;
font-size: 14px;
}
</style>

View File

@@ -177,7 +177,8 @@ export default {
this.toFace({
number: this.customerInfo.idNo, //身份证号码
name: this.customerInfo.customerName, //姓名
businessSource: '4' //业务来源:1-电投2-入司3-理赔4-保全
businessSource: '4', //业务来源:1-电投2-入司3-理赔4-保全
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
})
}
} else if (this.entry == 'BC') {
@@ -193,7 +194,8 @@ export default {
this.toFace({
number: this.policy.insuredInfo.idNo, //身份证号码
name: this.policy.insuredInfo.insuredName, //姓名
businessSource: '4' //业务来源:1-电投2-入司3-理赔4-保全
businessSource: '4', //业务来源:1-电投2-入司3-理赔4-保全
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
})
}
} else {
@@ -204,7 +206,8 @@ export default {
this.toFace({
number: this.policy.appntInfo.idNo, //身份证号码
name: this.policy.appntInfo.appntName, //姓名
businessSource: '4' //业务来源:1-电投2-入司3-理赔4-保全
businessSource: '4', //业务来源:1-电投2-入司3-理赔4-保全
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
})
}
}
@@ -244,7 +247,7 @@ export default {
// console.log('--跳过人脸识别--返回识别成功')
// resolve(JSON.stringify({ state: '0' }))
// })
.then(data => {
.then((data) => {
if (JSON.parse(data).state == '1') {
this.jumpNextPage(this.path)
} else {

View File

@@ -180,7 +180,7 @@ export default {
operateCode: this.customerMobile,
system: 'agentApp',
operateCodeType: '0'
}).then(res => {
}).then((res) => {
console.log(res)
if (res.result == 0) {
this.sid = res.sessionId
@@ -238,7 +238,7 @@ export default {
this.authCode = null
// eslint-disable-next-line no-unused-vars
return new Promise((resolve, reject) => {
checkPhone(data).then(res => {
checkPhone(data).then((res) => {
if (res.result == '0') {
console.log(res)
this.show = true
@@ -260,7 +260,7 @@ export default {
// policyNo: '809920190000597308'
}
getPolicyDetail(data).then(res => {
getPolicyDetail(data).then((res) => {
if (res.result == '0') {
let appntDTO = res.content.appntDTO
let orderInfoDTO = res.content.orderInfoDTO
@@ -282,8 +282,8 @@ export default {
that.appntDTO = appntDTO
this.$CacheUtils.setLocItem('saleInsuredInfo', JSON.stringify(appntDTO))
// 被保险人信息
res.content.insuredDTOs.map(insured => {
insured.riskDTOLst.map(risk => {
res.content.insuredDTOs.map((insured) => {
insured.riskDTOLst.map((risk) => {
Number(risk.payIntv)
switch (risk.payIntv) {
case -1:
@@ -320,7 +320,7 @@ export default {
this.filterData(dataDictionary.sex, 'sex', insured)
this.filterData(dataDictionary.idType, 'idType', insured)
this.filterData(dataDictionary.relationToAppnt, 'relation', insured)
insured.bnfDTOs.map(bnf => {
insured.bnfDTOs.map((bnf) => {
this.filterData(dataDictionary.bnfType, 'bnfType', bnf)
this.filterData(dataDictionary.sex, 'sex', bnf)
this.filterData(dataDictionary.idType, 'idType', bnf)
@@ -337,7 +337,7 @@ export default {
},
//根据数据字典 将后端返回的数据渲染到页面中
filterData(dictionary, key, pageData) {
dictionary.forEach(item => {
dictionary.forEach((item) => {
if (pageData[key] == item.id) {
pageData[key + 'Text'] = item.text //渲染页面使用的字段
}
@@ -351,8 +351,9 @@ export default {
//证件类型为身份证时,进行人脸识别
EWebBridge.webCallAppInJs('face_auth', {
number: this.appntDTO.idNo, //身份证号码
name: this.appntDTO.name //姓名
}).then(data => {
name: this.appntDTO.name, //姓名
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
}).then((data) => {
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
@@ -380,7 +381,7 @@ export default {
let params = {
contNo: window.localStorage.getItem('policyNo')
}
getReceiptSign(params).then(res => {
getReceiptSign(params).then((res) => {
if (res.result == '0') {
this.$toast.clear()
window.localStorage.setItem('insurance-policyUrl', res.signUrl)

View File

@@ -179,7 +179,7 @@ export default {
operateCode: this.customerMobile,
system: 'agentApp',
operateCodeType: '0'
}).then(res => {
}).then((res) => {
console.log(res)
if (res.result == 0) {
this.sid = res.sessionId
@@ -237,7 +237,7 @@ export default {
this.authCode = null
// eslint-disable-next-line no-unused-vars
return new Promise((resolve, reject) => {
checkPhone(data).then(res => {
checkPhone(data).then((res) => {
if (res.result == '0') {
console.log(res)
this.show = true
@@ -259,7 +259,7 @@ export default {
// policyNo: '809920190000597308'
}
getPolicyDetail(data).then(res => {
getPolicyDetail(data).then((res) => {
if (res.result == '0') {
let appntDTO = res.content.appntDTO
let orderInfoDTO = res.content.orderInfoDTO
@@ -281,8 +281,8 @@ export default {
that.appntDTO = appntDTO
this.$CacheUtils.setLocItem('saleInsuredInfo', JSON.stringify(appntDTO))
// 被保险人信息
res.content.insuredDTOs.map(insured => {
insured.riskDTOLst.map(risk => {
res.content.insuredDTOs.map((insured) => {
insured.riskDTOLst.map((risk) => {
Number(risk.payIntv)
switch (risk.payIntv) {
case -1:
@@ -319,7 +319,7 @@ export default {
this.filterData(dataDictionary.sex, 'sex', insured)
this.filterData(dataDictionary.idType, 'idType', insured)
this.filterData(dataDictionary.relationToAppnt, 'relation', insured)
insured.bnfDTOs.map(bnf => {
insured.bnfDTOs.map((bnf) => {
this.filterData(dataDictionary.bnfType, 'bnfType', bnf)
this.filterData(dataDictionary.sex, 'sex', bnf)
this.filterData(dataDictionary.idType, 'idType', bnf)
@@ -336,7 +336,7 @@ export default {
},
//根据数据字典 将后端返回的数据渲染到页面中
filterData(dictionary, key, pageData) {
dictionary.forEach(item => {
dictionary.forEach((item) => {
if (pageData[key] == item.id) {
pageData[key + 'Text'] = item.text //渲染页面使用的字段
}
@@ -350,8 +350,9 @@ export default {
//证件类型为身份证时,进行人脸识别
EWebBridge.webCallAppInJs('face_auth', {
number: this.appntDTO.idNo, //身份证号码
name: this.appntDTO.name //姓名
}).then(data => {
name: this.appntDTO.name, //姓名
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
}).then((data) => {
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
@@ -379,7 +380,7 @@ export default {
let params = {
contNo: window.localStorage.getItem('policyNo')
}
getReceiptSign(params).then(res => {
getReceiptSign(params).then((res) => {
if (res.result == '0') {
this.$toast.clear()
window.localStorage.setItem('insurance-policyUrl', res.signUrl)

File diff suppressed because it is too large Load Diff

View File

@@ -47,16 +47,17 @@
v-if="isShow"
type="danger"
size="normal"
class="w150"
class="w150"
plain
v-no-more-click="1000"
:disabled="appntSign.signStatus == '1'"
@click="share(insured.length == '0' ? '2' : '0')"
>分享</van-button>
>分享</van-button
>
<van-button
type="danger"
size="normal"
class="w150"
class="w150"
plain
:disabled="appntSign.signStatus == '1'"
v-no-more-click="1000"
@@ -96,17 +97,18 @@
v-if="isShow"
type="danger"
size="normal"
class="w150"
class="w150"
:disabled="insuredSign.signStatus == '1'"
@click="share('1')"
plain
v-no-more-click="1000"
>分享</van-button>
>分享</van-button
>
<van-button
type="danger"
size="normal"
plain
class="w150"
class="w150"
:disabled="insuredSign.signStatus == '1'"
@click="start_ocr('1')"
v-no-more-click="1000"
@@ -119,7 +121,7 @@
</div>
</div>
<div v-else>
<!-- 在微信 -->
<!-- 在微信 -->
<div v-if="shareCode != '1'" class="mt10">
<van-collapse v-model="activeNames">
<van-collapse-item name="1">
@@ -158,7 +160,7 @@
<van-button
type="danger"
size="normal"
style="width: 157px;"
style="width: 157px"
plain
:disabled="appntSign.signStatus == '1'"
v-no-more-click="1000"
@@ -210,7 +212,7 @@
type="danger"
size="normal"
plain
style="width: 157px;"
style="width: 157px"
:disabled="insuredSign.signStatus == '1'"
@click="start_ocr('1')"
v-no-more-click="1000"
@@ -306,8 +308,6 @@ export default {
methods: {
// 初始化
async init() {
if (this.isWeixin) {
if (this.$route.query.airSign) {
sessionStorage.setItem('airSign', this.$route.query.airSign)
@@ -316,7 +316,7 @@ export default {
this.$CacheUtils.setLocItem('saleInsuredInfo', this.$route.query.saleInsuredInfo)
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', this.$route.query.saleInsuredPersonInfo)
window.localStorage.setItem('token', this.$route.query.token)
window.localStorage.setItem('orderNo', this.$route.query.orderNo)
window.localStorage.setItem('orderNo', this.$route.query.orderNo)
window.localStorage.setItem('relationToAppnt', this.$route.query.relationToAppnt)
if (this.$route.query.signInvalid) {
sessionStorage.setItem('signInvalid', this.$route.query.signInvalid)
@@ -337,7 +337,7 @@ export default {
this.shareCode = sessionStorage.getItem('shareCode')
this.relationToAppnt = this.$route.query.relationToAppnt
this.isShow = false
await this.getOrderDetail()
await this.getOrderDetail()
if (this.shareCode == '1') {
this.tipsName = this.saleInsuredPersonInfo.name
} else {
@@ -475,13 +475,14 @@ export default {
// 原人脸识别
EWebBridge.webCallAppInJs('face_auth', {
number: that.saleInsuredInfo.idNo, //身份证号码
name: that.saleInsuredInfo.name //姓名
name: that.saleInsuredInfo.name, //姓名
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
// })
// 跳过人脸识别
// new Promise(resolve => {
// console.log('--跳过人脸识别--返回识别成功')
// resolve(JSON.stringify({ state: '1' }))
}).then(data => {
}).then((data) => {
if (JSON.parse(data).state == '1') {
if (that.appntSign.readStatus == '0') {
console.log('--跳过人脸识别--返回识别成功zzzzzzzzzz')
@@ -537,12 +538,13 @@ export default {
// 跳过人脸识别
EWebBridge.webCallAppInJs('face_auth', {
number: that.saleInsuredInfo.idNo, //身份证号码
name: that.saleInsuredInfo.name //姓名
name: that.saleInsuredInfo.name, //姓名
orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号
// })
// new Promise(resolve => {
// console.log('--跳过人脸识别--返回识别成功')
// resolve(JSON.stringify({ state: '1' }))
}).then(data => {
}).then((data) => {
if (JSON.parse(data).state == '1') {
if (that.insuredSign.readStatus == '0') {
this.$jump({
@@ -657,7 +659,7 @@ export default {
}
}
// /insure/selfToHuman
underWrite(data).then(res => {
underWrite(data).then((res) => {
this.$toast.clear()
let that = this
if (res.result == '0') {
@@ -747,7 +749,7 @@ export default {
let data = {
orderNo: window.localStorage.getItem('orderNo')
}
getOrderDetail(data).then(res => {
getOrderDetail(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
this.$utils.intLocalStorage(res)
@@ -767,7 +769,7 @@ export default {
that.appnt = res.orderDTO.appntDTO
that.date = res.orderDTO.orderInfoDTO.appntDateLabel
res.orderDTO.signDTOS.map(item => {
res.orderDTO.signDTOS.map((item) => {
if (item.signType == '0') {
that.appntSign = item
} else if (item.signType == '1') {
@@ -791,7 +793,7 @@ export default {
message: '加载中……'
})
let data = {}
getSignInvalid(data).then(res => {
getSignInvalid(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
this.signInvalid = res.content.sign
@@ -813,7 +815,7 @@ export default {
sign: signInvalid
}
return new Promise((resolve, reject) => {
checkSignInvalid(data).then(res => {
checkSignInvalid(data).then((res) => {
if (res.result == '0') {
that.$toast.clear()
let status = res.content.status