mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-06 16:36:44 +08:00
feat-调用人脸识别插件新增 orderNo 入参
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@ dist
|
||||
.eslintrc.js
|
||||
.prettierrc
|
||||
.idea
|
||||
.history
|
||||
@@ -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>
|
||||
@@ -64,8 +62,8 @@
|
||||
点击【开始】或【分享】,进行相关操作<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>
|
||||
<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
|
||||
@@ -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()
|
||||
|
||||
@@ -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'
|
||||
:disabled="isSure"
|
||||
v-no-more-click="1000"
|
||||
>分享
|
||||
</van-button
|
||||
>
|
||||
</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;
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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
|
||||
@@ -750,8 +750,9 @@ export default {
|
||||
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')
|
||||
@@ -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,7 +983,8 @@ export default {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
console.log(location.origin +
|
||||
console.log(
|
||||
location.origin +
|
||||
'/#/insureAgain/signatureConfirmation?orderNo=' +
|
||||
localStorage.orderNo +
|
||||
'&token=' +
|
||||
@@ -993,7 +996,8 @@ export default {
|
||||
'&signInvalid=' +
|
||||
this.signInvalid +
|
||||
'&productCode=' +
|
||||
localStorage.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)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
@@ -74,7 +76,9 @@
|
||||
<p style="text-indent: 28px">
|
||||
您好!感谢您选择购买国富人寿保险股份有限公司(以下简称我们)保险产品,您于{{ orderInfo.cvaliDate }}投保的旧保单{{
|
||||
orderInfo.policyNo
|
||||
}},产品名称为{{ orderInfo.riskName }}即将到期或已到期(到期日期详见保单),为保护您的权益,您可向我们提交重新投保申请。以下是申请重新投保的注意事项和声明,请您仔细阅读和确认:
|
||||
}},产品名称为{{
|
||||
orderInfo.riskName
|
||||
}}即将到期或已到期(到期日期详见保单),为保护您的权益,您可向我们提交重新投保申请。以下是申请重新投保的注意事项和声明,请您仔细阅读和确认:
|
||||
</p>
|
||||
<p style="text-indent: 28px">1.{{ orderInfo.riskName }}保险期间为一年,到期后需要您重新投保。</p>
|
||||
<p style="text-indent: 28px">
|
||||
@@ -95,7 +99,9 @@
|
||||
<p style="text-indent: 28px">
|
||||
您好!感谢您选择购买国富人寿保险股份有限公司(以下简称我们)保险产品,您于{{ orderInfo.cvaliDate }}投保的旧保单{{
|
||||
orderInfo.policyNo
|
||||
}},产品名称为:{{ orderInfo.riskName }}即将到期或已到期(到期日期详见保单),为保护您的权益,您可向我们提交重新投保申请。以下是申请重新投保的注意事项和声明,请您仔细阅读和确认:
|
||||
}},产品名称为:{{
|
||||
orderInfo.riskName
|
||||
}}即将到期或已到期(到期日期详见保单),为保护您的权益,您可向我们提交重新投保申请。以下是申请重新投保的注意事项和声明,请您仔细阅读和确认:
|
||||
</p>
|
||||
<p style="text-indent: 28px">1.{{ orderInfo.riskName }}保险期间为一年,到期后需要您重新投保。</p>
|
||||
<p style="text-indent: 28px">
|
||||
@@ -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)
|
||||
@@ -519,10 +531,10 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.captchaReceiver {
|
||||
.captchaReceiver {
|
||||
margin-left: 1em;
|
||||
padding-bottom: 1em;
|
||||
border-bottom: 1px solid #eaeaea;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
@@ -52,7 +52,8 @@
|
||||
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"
|
||||
@@ -101,7 +102,8 @@
|
||||
@click="share('1')"
|
||||
plain
|
||||
v-no-more-click="1000"
|
||||
>分享</van-button>
|
||||
>分享</van-button
|
||||
>
|
||||
<van-button
|
||||
type="danger"
|
||||
size="normal"
|
||||
@@ -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)
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user