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