'去掉被保人防范视频'

This commit is contained in:
proudlx
2021-05-13 18:40:27 +08:00

View File

@@ -255,7 +255,7 @@
<script> <script>
// import UploadImageFile from '@/components/ebiz/sale/UploadImageFile' // import UploadImageFile from '@/components/ebiz/sale/UploadImageFile'
import { Field, Cell, CellGroup, Collapse, CollapseItem, Dialog } from 'vant' import { Field, Cell, CellGroup, Collapse, CollapseItem, Dialog, NoticeBar } from 'vant'
import { import {
underWrite, underWrite,
getOrderDetail, getOrderDetail,
@@ -265,7 +265,7 @@ import {
autchCodeCheck, autchCodeCheck,
getRecognitionUrl, getRecognitionUrl,
getRecognitionResult, getRecognitionResult,
saveCustomerRid, saveCustomerRid
} from '@/api/ebiz/sale/sale' } from '@/api/ebiz/sale/sale'
import { getAgentInfo } from '@/api/ebiz/my/my.js' import { getAgentInfo } from '@/api/ebiz/my/my.js'
import { checkPhone } from '@/api/ebiz/customer/customer' import { checkPhone } from '@/api/ebiz/customer/customer'
@@ -291,12 +291,12 @@ export default {
operaFlag: null, operaFlag: null,
encyCustomerMobile: null, encyCustomerMobile: null,
sid: null, sid: null,
isVideoUrl:'', isVideoUrl: '',
//人脸识别认证次数 //人脸识别认证次数
faceAuthCount: { faceAuthCount: {
appnt: 0, appnt: 0,
insured: 0, insured: 0,
weixin: 0, weixin: 0
}, },
customerMobile: '', customerMobile: '',
//保险产品名称 //保险产品名称
@@ -345,7 +345,7 @@ export default {
realName: '', realName: '',
idno: '', idno: '',
redirectUrl: '', redirectUrl: '',
businessSource: '1', //微信端人脸识别业务来源:1-电投2-入司3-理赔4-保全 businessSource: '1' //微信端人脸识别业务来源:1-电投2-入司3-理赔4-保全
}, },
// idcardData: { // idcardData: {
// typeface: false, // typeface: false,
@@ -360,8 +360,8 @@ export default {
recognizeMessage: '', //微信端-人脸识别失败原因 recognizeMessage: '', //微信端-人脸识别失败原因
realPeopleRidInfo: { realPeopleRidInfo: {
appntRidFlag: null, appntRidFlag: null,
insureRidFlag: null, insureRidFlag: null
}, }
} }
}, },
methods: { methods: {
@@ -402,7 +402,7 @@ export default {
title: '提示', title: '提示',
message: '退出流程可能会丢失部分数据,是否确认退出?', message: '退出流程可能会丢失部分数据,是否确认退出?',
cancelButtonColor: '#E9332E', cancelButtonColor: '#E9332E',
confirmButtonColor: '#FFFFFF', confirmButtonColor: '#FFFFFF'
}) })
.then(() => { .then(() => {
this.$jump({ this.$jump({
@@ -410,12 +410,12 @@ export default {
extra: { extra: {
title: '电子投保单列表', title: '电子投保单列表',
forbidSwipeBack: 1, //当前页面禁止右滑返回 forbidSwipeBack: 1, //当前页面禁止右滑返回
url: location.origin + `/#/sale/list`, url: location.origin + `/#/sale/list`
}, },
routerInfo: { routerInfo: {
path: `/sale/list`, path: `/sale/list`,
type: '1', type: '1'
}, }
}) })
}) })
.catch(() => { .catch(() => {
@@ -511,7 +511,7 @@ export default {
weixinShare({ weixinShare({
title: '国富人寿计划书', title: '国富人寿计划书',
imgUrl: 'http://47.96.143.111:8000/app/images/logo.png', imgUrl: 'http://47.96.143.111:8000/app/images/logo.png',
desc: '国富为您量身定制的保险产品,请查收', desc: '国富为您量身定制的保险产品,请查收'
}) })
// let params = { // let params = {
// orderNo: '' // orderNo: ''
@@ -535,7 +535,7 @@ export default {
// 禁用背景点击s // 禁用背景点击s
forbidClick: true, forbidClick: true,
loadingType: 'spinner', loadingType: 'spinner',
message: '加载中……', message: '加载中……'
}) })
let data = {} let data = {}
this.authCode = null this.authCode = null
@@ -545,7 +545,7 @@ export default {
name: appntData.name, name: appntData.name,
idType: appntData.idType, idType: appntData.idType,
idNo: appntData.idNo, idNo: appntData.idNo,
mobile: appntData.mobile, mobile: appntData.mobile
} }
this.customerMobile = appntData.mobile this.customerMobile = appntData.mobile
this.encyCustomerMobile = this.customerMobile.replace(/^(\d{3})\d{4}(\d{4})$/, '$1****$2') this.encyCustomerMobile = this.customerMobile.replace(/^(\d{3})\d{4}(\d{4})$/, '$1****$2')
@@ -555,7 +555,7 @@ export default {
name: insuredData.name, name: insuredData.name,
idType: insuredData.idType, idType: insuredData.idType,
idNo: insuredData.idNo, idNo: insuredData.idNo,
mobile: insuredData.mobile, mobile: insuredData.mobile
} }
this.customerMobile = insuredData.mobile this.customerMobile = insuredData.mobile
this.encyCustomerMobile = this.customerMobile.replace(/^(\d{3})\d{4}(\d{4})$/, '$1****$2') this.encyCustomerMobile = this.customerMobile.replace(/^(\d{3})\d{4}(\d{4})$/, '$1****$2')
@@ -570,7 +570,7 @@ export default {
Dialog.confirm({ Dialog.confirm({
title: '提示', title: '提示',
message: '抱歉,您预留的手机号非您本人的手机号,请进行线下投保!', message: '抱歉,您预留的手机号非您本人的手机号,请进行线下投保!',
showCancelButton: false, showCancelButton: false
}) })
} }
}) })
@@ -584,7 +584,7 @@ export default {
// 禁用背景点击s // 禁用背景点击s
forbidClick: true, forbidClick: true,
loadingType: 'spinner', loadingType: 'spinner',
message: '加载中……', message: '加载中……'
}) })
let data = {} let data = {}
if ('appnt' == type) { if ('appnt' == type) {
@@ -593,7 +593,7 @@ export default {
name: appntData.name, name: appntData.name,
idType: appntData.idType, idType: appntData.idType,
idNo: appntData.idNo, idNo: appntData.idNo,
mobile: appntData.mobile, mobile: appntData.mobile
} }
} else if ('insured' == type) { } else if ('insured' == type) {
let insuredData = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')) let insuredData = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
@@ -601,7 +601,7 @@ export default {
name: insuredData.name, name: insuredData.name,
idType: insuredData.idType, idType: insuredData.idType,
idNo: insuredData.idNo, idNo: insuredData.idNo,
mobile: insuredData.mobile, mobile: insuredData.mobile
} }
} }
let res = await checkPhone(data) let res = await checkPhone(data)
@@ -656,7 +656,7 @@ export default {
} }
let res = await autchCodeCheck({ let res = await autchCodeCheck({
smsId: this.sid, smsId: this.sid,
code: this.authCode, code: this.authCode
}) })
if (res.result == 0) { if (res.result == 0) {
if ('appnt' == this.operaFlag) { if ('appnt' == this.operaFlag) {
@@ -677,6 +677,26 @@ export default {
// 人脸识别 // 人脸识别
async start_ocr(val) { async start_ocr(val) {
// val 0投保人 1被保险人 2本人 // val 0投保人 1被保险人 2本人
// return this.$dialog
// .alert({
// className: 'dialog-alert',
// title: '提示',
// message: '为维护您的合法权益,请您务必认真观看防范销售误导视频。',
// confirmButtonColor: '#ee0a24',
// confirmButtonText: '确认'
// })
// .then(() => {
// this.$jump({
// flag: 'navigation',
// extra: {
// title: '防范销售误导',
// hiddenRight: '1'
// }
// })
// this.videoShow = true
// this.isVideo = true
// this.isVideoUrl = 'goUrl'
// })
console.log('人脸识别') console.log('人脸识别')
console.log(val) console.log(val)
let that = this let that = this
@@ -692,7 +712,7 @@ export default {
const res = await getWhitelist({ const res = await getWhitelist({
idNo: this.saleInsuredInfo.idNo, idNo: this.saleInsuredInfo.idNo,
name: this.saleInsuredInfo.name, name: this.saleInsuredInfo.name,
whiteType: 'sale_face_show', whiteType: 'sale_face_show'
}) })
if (res.result === '0') { if (res.result === '0') {
// 在白名单内 // 在白名单内
@@ -736,7 +756,7 @@ export default {
const res = await getWhitelist({ const res = await getWhitelist({
idNo: this.saleInsuredPersonInfo.idNo, idNo: this.saleInsuredPersonInfo.idNo,
name: this.saleInsuredPersonInfo.name, name: this.saleInsuredPersonInfo.name,
whiteType: 'sale_face_show', whiteType: 'sale_face_show'
}) })
if (res.result === '0') { if (res.result === '0') {
// 用户在白名单内 // 用户在白名单内
@@ -788,7 +808,7 @@ export default {
const res = await getWhitelist({ const res = await getWhitelist({
idNo: this.saleInsuredInfo.idNo, idNo: this.saleInsuredInfo.idNo,
name: this.saleInsuredInfo.name, name: this.saleInsuredInfo.name,
whiteType: 'sale_face_show', whiteType: 'sale_face_show'
}) })
if (res.result === '0') { if (res.result === '0') {
// 在白名单内 // 在白名单内
@@ -844,7 +864,7 @@ export default {
const res = await getWhitelist({ const res = await getWhitelist({
idNo: this.saleInsuredPersonInfo.idNo, idNo: this.saleInsuredPersonInfo.idNo,
name: this.saleInsuredPersonInfo.name, name: this.saleInsuredPersonInfo.name,
whiteType: 'sale_face_show', whiteType: 'sale_face_show'
}) })
console.log('白名单查询结果: ', res) console.log('白名单查询结果: ', res)
if (res.result === '0') { if (res.result === '0') {
@@ -1027,42 +1047,6 @@ export default {
insuredUrl() { insuredUrl() {
let that = this let that = this
let path = '' let path = ''
if (this.isInsuYearFlag) {
this.$toast.loading({
// 持续展示 toast
duration: 0,
// 禁用背景点击s
forbidClick: true,
loadingType: 'spinner',
message: '获取信息中……'
})
getAgentInfo({}).then((res) => {
console.log('是否进入下一页')
console.log(res)
console.log(this.isVideo)
if ((res.branchType == 'N1' || res.branchType == '1') && !this.isVideo) {
this.$jump({
flag: 'navigation',
extra: {
title: '防范销售误导',
hiddenRight: '1'
}
})
this.videoShow = true
this.isVideo = true
this.isVideoUrl = 'insuredUrl'
// this.$nextTick(() => {
// this.$dialog
// .alert({
// className: 'dialog-alert',
// title: '提示',
// message: '为维护您的合法权益,请您务必认真观看防范销售误导视频。',
// confirmButtonColor: '#ee0a24',
// confirmButtonText: '确认'
// })
// .then(() => {})
// })
} else {
if (that.insuredSign[0].documentStatus == 0) { if (that.insuredSign[0].documentStatus == 0) {
path = 'insuranceInformation' path = 'insuranceInformation'
} else { } else {
@@ -1077,24 +1061,74 @@ export default {
path: '/sale/' + path path: '/sale/' + path
} }
}) })
} // if (this.isInsuYearFlag) {
}) // this.$toast.loading({
} else { // // 持续展示 toast
if (that.insuredSign[0].documentStatus == 0) { // duration: 0,
path = 'insuranceInformation' // // 禁用背景点击s
} else { // forbidClick: true,
path = 'SignatureOfElectronic' // loadingType: 'spinner',
} // message: '获取信息中……'
that.$jump({ // })
flag: 'h5', // getAgentInfo({}).then((res) => {
extra: { // console.log('是否进入下一页')
url: location.origin + '/#/sale/' + path // console.log(res)
}, // console.log(this.isVideo)
routerInfo: { // if ((res.branchType == 'N1' || res.branchType == '1') && !this.isVideo) {
path: '/sale/' + path // this.$jump({
} // flag: 'navigation',
}) // extra: {
} // title: '防范销售误导',
// hiddenRight: '1'
// }
// })
// this.videoShow = true
// this.isVideo = true
// this.isVideoUrl = 'insuredUrl'
// // this.$nextTick(() => {
// // this.$dialog
// // .alert({
// // className: 'dialog-alert',
// // title: '提示',
// // message: '为维护您的合法权益,请您务必认真观看防范销售误导视频。',
// // confirmButtonColor: '#ee0a24',
// // confirmButtonText: '确认'
// // })
// // .then(() => {})
// // })
// } else {
// if (that.insuredSign[0].documentStatus == 0) {
// path = 'insuranceInformation'
// } else {
// path = 'SignatureOfElectronic'
// }
// that.$jump({
// flag: 'h5',
// extra: {
// url: location.origin + '/#/sale/' + path
// },
// routerInfo: {
// path: '/sale/' + path
// }
// })
// }
// })
// } else {
// if (that.insuredSign[0].documentStatus == 0) {
// path = 'insuranceInformation'
// } else {
// path = 'SignatureOfElectronic'
// }
// that.$jump({
// flag: 'h5',
// extra: {
// url: location.origin + '/#/sale/' + path
// },
// routerInfo: {
// path: '/sale/' + path
// }
// })
// }
}, },
toTest() {}, toTest() {},
// 微信分享 // 微信分享
@@ -1147,8 +1181,8 @@ export default {
'&productCode=' + '&productCode=' +
localStorage.productCode + localStorage.productCode +
'&changeCard=0', '&changeCard=0',
img: this.$assetsUrl + 'images/logo.png', img: this.$assetsUrl + 'images/logo.png'
}, }
}) })
} else { } else {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
@@ -1171,8 +1205,8 @@ export default {
this.signInvalid + this.signInvalid +
'&productCode=' + '&productCode=' +
localStorage.productCode, localStorage.productCode,
img: this.$assetsUrl + 'images/logo.png', img: this.$assetsUrl + 'images/logo.png'
}, }
}) })
} }
}, },
@@ -1186,16 +1220,16 @@ export default {
loadingType: 'spinner', loadingType: 'spinner',
message: '加载中……', message: '加载中……'
}) })
let data = { let data = {
platform: 'app', platform: 'app',
type: '1', type: '1',
orderDTO: { orderDTO: {
orderInfoDTO: { orderInfoDTO: {
orderNo: window.localStorage.getItem('orderNo'), orderNo: window.localStorage.getItem('orderNo')
}, }
}, }
} }
// /insure/selfToHuman // /insure/selfToHuman
underWrite(data).then((res) => { underWrite(data).then((res) => {
@@ -1209,11 +1243,11 @@ export default {
that.$jump({ that.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + '/#/sale/payMent', url: location.origin + '/#/sale/payMent'
}, },
routerInfo: { routerInfo: {
path: '/sale/payMent', path: '/sale/payMent'
}, }
}) })
} else if (res.uwResult == '07') { } else if (res.uwResult == '07') {
// 核保失败 // 核保失败
@@ -1223,11 +1257,11 @@ export default {
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + '/#/sale/result', url: location.origin + '/#/sale/result',
backToFirst: '1', backToFirst: '1'
}, },
routerInfo: { routerInfo: {
path: '/sale/result', path: '/sale/result'
}, }
}) })
} else if (res.uwResult == '46') { } else if (res.uwResult == '46') {
// 转人核 // 转人核
@@ -1237,11 +1271,11 @@ export default {
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + '/#/sale/result', url: location.origin + '/#/sale/result',
backToFirst: '1', backToFirst: '1'
}, },
routerInfo: { routerInfo: {
path: '/sale/result', path: '/sale/result'
}, }
}) })
} else if (res.uwResult == '47') { } else if (res.uwResult == '47') {
// 核心系统繁忙,请稍后重试 // 核心系统繁忙,请稍后重试
@@ -1250,11 +1284,11 @@ export default {
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + '/#/sale/result', url: location.origin + '/#/sale/result',
backToFirst: '1', backToFirst: '1'
}, },
routerInfo: { routerInfo: {
path: '/sale/result', path: '/sale/result'
}, }
}) })
} else { } else {
//其他-系统繁忙,请稍后重试 //其他-系统繁忙,请稍后重试
@@ -1263,11 +1297,11 @@ export default {
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + '/#/sale/result', url: location.origin + '/#/sale/result',
backToFirst: '1', backToFirst: '1'
}, },
routerInfo: { routerInfo: {
path: '/sale/result', path: '/sale/result'
}, }
}) })
} }
} else { } else {
@@ -1282,11 +1316,11 @@ export default {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + '/#/sale/payMent', url: location.origin + '/#/sale/payMent'
}, },
routerInfo: { routerInfo: {
path: '/sale/payMent', path: '/sale/payMent'
}, }
}) })
}, },
// 获取消息和阅读状态 // 获取消息和阅读状态
@@ -1298,11 +1332,11 @@ export default {
// 禁用背景点击s // 禁用背景点击s
forbidClick: true, forbidClick: true,
loadingType: 'spinner', loadingType: 'spinner',
message: '加载中……', message: '加载中……'
}) })
let data = { let data = {
orderNo: window.localStorage.getItem('orderNo'), orderNo: window.localStorage.getItem('orderNo'),
getOtherType: 'RID', getOtherType: 'RID'
} }
localStorage.setItem('riskName', '') localStorage.setItem('riskName', '')
return new Promise((resolve) => { return new Promise((resolve) => {
@@ -1356,7 +1390,7 @@ export default {
Dialog({ Dialog({
message: message.split('\\n').join('\n&emsp;&emsp;'), message: message.split('\\n').join('\n&emsp;&emsp;'),
confirmButtonText: '本人已阅读并同意上述特别约定内容', confirmButtonText: '本人已阅读并同意上述特别约定内容',
messageAlign: 'left', messageAlign: 'left'
}) })
} }
// const message = '&emsp;&emsp;' + res.orderDTO.productDTO.special.content // const message = '&emsp;&emsp;' + res.orderDTO.productDTO.special.content
@@ -1504,7 +1538,7 @@ export default {
loadingType: 'spinner', loadingType: 'spinner',
message: '加载中……', message: '加载中……'
}) })
let data = {} let data = {}
getSignInvalid(data).then((res) => { getSignInvalid(data).then((res) => {
@@ -1523,10 +1557,10 @@ export default {
loadingType: 'spinner', loadingType: 'spinner',
message: '加载中……', message: '加载中……'
}) })
let data = { let data = {
sign: signInvalid, sign: signInvalid
} }
return new Promise((resolve) => { return new Promise((resolve) => {
checkSignInvalid(data).then((res) => { checkSignInvalid(data).then((res) => {
@@ -1590,7 +1624,7 @@ export default {
realName: this.idcardData.realName, realName: this.idcardData.realName,
idno: this.idcardData.idno, idno: this.idcardData.idno,
redirectUrl: this.idcardData.redirectUrl, redirectUrl: this.idcardData.redirectUrl,
businessSource: this.idcardData.businessSource, businessSource: this.idcardData.businessSource
} }
getRecognitionUrl(data).then( getRecognitionUrl(data).then(
(res) => { (res) => {
@@ -1642,7 +1676,7 @@ export default {
ridType: ridType, ridType: ridType,
ridDate: Formatter.formatDate(new Date(), 'yyyy-MM-dd'), ridDate: Formatter.formatDate(new Date(), 'yyyy-MM-dd'),
ridPhone: this.appnt.mobile, ridPhone: this.appnt.mobile,
orderNo: this.orderInfo.orderNo, orderNo: this.orderInfo.orderNo
} }
} else if (type == 'insured_rid') { } else if (type == 'insured_rid') {
param = { param = {
@@ -1654,21 +1688,21 @@ export default {
ridType: ridType, ridType: ridType,
ridDate: Formatter.formatDate(new Date(), 'yyyy-MM-dd'), ridDate: Formatter.formatDate(new Date(), 'yyyy-MM-dd'),
ridPhone: this.insured[0].mobile, ridPhone: this.insured[0].mobile,
orderNo: this.orderInfo.orderNo, orderNo: this.orderInfo.orderNo
} }
} }
// 保存rid 认证结果 不阻断流程 // 保存rid 认证结果 不阻断流程
saveCustomerRid(param).then((res) => { saveCustomerRid(param).then((res) => {
console.log('saveCustomerRid', res) console.log('saveCustomerRid', res)
}) })
}, }
}, },
created() { created() {
setTimeout(() => { setTimeout(() => {
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('webview_left_button', { EWebBridge.webCallAppInJs('webview_left_button', {
img: this.$assetsUrl + 'images/del-close-btn@3x.png', img: this.$assetsUrl + 'images/del-close-btn@3x.png',
intercept: '1', //是否拦截原生返回事件 1是 其他否 intercept: '1' //是否拦截原生返回事件 1是 其他否
}) })
}, 100) }, 100)
window.appCallBack = this.appCallBack window.appCallBack = this.appCallBack
@@ -1685,7 +1719,7 @@ export default {
Dialog.confirm({ Dialog.confirm({
title: '提示', title: '提示',
message: '当前投保单件需进行双录,请手动切换至双录系统,进行双录操作,完成后进行后续操作', message: '当前投保单件需进行双录,请手动切换至双录系统,进行双录操作,完成后进行后续操作',
showCancelButton: false, showCancelButton: false
}).then(() => { }).then(() => {
// 获取投被保险人是否同一个人 // 获取投被保险人是否同一个人
that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
@@ -1700,14 +1734,15 @@ export default {
[CellGroup.name]: CellGroup, [CellGroup.name]: CellGroup,
[Collapse.name]: Collapse, [Collapse.name]: Collapse,
[CollapseItem.name]: CollapseItem, [CollapseItem.name]: CollapseItem,
[NoticeBar.name]: NoticeBar,
[Dialog.name]: Dialog, [Dialog.name]: Dialog,
[Field.name]: Field, [Field.name]: Field,
[IndexBar.name]: IndexBar, [IndexBar.name]: IndexBar
}, },
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = '' document.body.style.backgroundColor = ''
next() next()
}, }
} }
</script> </script>