diff --git a/src/views/ebiz/sale/AnswerTip.vue b/src/views/ebiz/sale/AnswerTip.vue
index bff047712..eea181642 100644
--- a/src/views/ebiz/sale/AnswerTip.vue
+++ b/src/views/ebiz/sale/AnswerTip.vue
@@ -131,19 +131,13 @@ export default {
},
// 获取签名状态
getOrderDetail() {
+ openLoading()
let that = this
let data = {
orderNo: that.$route.query.orderNo
}
- this.$toast.loading({
- duration: 0, // 持续展示 toast
- forbidClick: true, // 禁用背景点击
- loadingType: 'spinner',
- message: '加载中……'
- })
return new Promise((resolve) => {
getOrderDetail1(data).then(res => {
- this.$toast.clear()
if (res.result == '0') {
res.orderDTO.ebizSignDTOS.map(item => {
if (item.signType == '0' || item.signType == '2') {
diff --git a/src/views/ebiz/sale/AvoidDutyTip.vue b/src/views/ebiz/sale/AvoidDutyTip.vue
index ca5426a66..399aff1a7 100644
--- a/src/views/ebiz/sale/AvoidDutyTip.vue
+++ b/src/views/ebiz/sale/AvoidDutyTip.vue
@@ -2,6 +2,7 @@
{{ `提示:阅读时长需在${this.Time ? this.time : this.number}秒以上` }}
+
本人确认已阅读
@@ -74,7 +75,11 @@ export default {
[NoticeBar.name]: NoticeBar
},
mounted() {
+ let that = this
+ that.timeOut()
document.body.style.backgroundColor = '#fff'
+ },
+ async created() {
if (!this.isWeixin) {
setTimeout(() => {
// eslint-disable-next-line no-undef
@@ -93,33 +98,53 @@ export default {
if (this.isWeixin) {
that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
}
+
if (this.detailJump != '1') {
// 投被保险人是否同人
that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
+ // 获取被保险人信息
+ // that.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
}
+ // if (this.detailJump != '1') {
+ // this.getOrderDetail()
+ // }
if (this.isWeixin) {
let imgBase64Data = sessionStorage.getItem('twoimgBase64Data')
let wxSigned = JSON.parse(sessionStorage.getItem('twowxSigned'))
+ // let wxSigned = false
let signInfo = JSON.parse(localStorage.getItem('signInfo'))
+ console.log('`````````````````````````````````')
+
+ console.log('imgBase64Data: twoimgBase64Data:' + imgBase64Data)
+ console.log('wxSigned: ' + wxSigned)
if (wxSigned) {
+ console.log('第二次进入电子保单')
+ console.log('````````````````````````````````')
this.getOrderDetail().then(() => {
this.Time = true
this.isOver = true
this.radio = '1'
this.base64 = imgBase64Data
this.isDisabledComplite = false
+ console.log('signInfo.status:' + signInfo.status)
if (signInfo.status == '0') {
+ // this.appntSign.documentStatus = '3'
+ console.log('``````````````````')
//因签字后微信端签字面板无法返回状态,导致签字状态不变,下一步按钮无法点击
this.$set(this.appntSign, 'documentStatus', '3')
+ console.log('appntSign.documentStatus: ' + this.appntSign.documentStatus)
this.isSign = false
this.isDisabledComplite = false
+ // this.isDisable = false
} else {
this.$set(this.insuredSign, 'documentStatus', '3')
+ // this.insuredSign.documentStatus = '3'
this.isDisabledComplite = false
this.isSign = false
}
})
} else {
+ console.log('第一次进入电子保单')
this.timeOut()
this.getOrderDetail()
}
@@ -129,10 +154,6 @@ export default {
this.getOrderDetail()
}
}
- this.timeOut()
- },
- created() {
-
},
methods: {
appCallBack(data) {
@@ -188,12 +209,6 @@ export default {
let data = {
orderNo: that.$route.query.orderNo
}
- this.$toast.loading({
- duration: 0, // 持续展示 toast
- forbidClick: true, // 禁用背景点击
- loadingType: 'spinner',
- message: '加载中……'
- })
return new Promise((resolve, reject) => {
getOrderDetail(data).then(res => {
if (res.result == '0') {
diff --git a/src/views/ebiz/sale/DoubleRecordTip.vue b/src/views/ebiz/sale/DoubleRecordTip.vue
index f85ac53bf..be21b257d 100644
--- a/src/views/ebiz/sale/DoubleRecordTip.vue
+++ b/src/views/ebiz/sale/DoubleRecordTip.vue
@@ -74,11 +74,12 @@ export default {
[Dialog.name]: Dialog,
[NoticeBar.name]: NoticeBar
},
- created() {
-
- },
- async mounted() {
+ mounted() {
+ let that = this
+ that.timeOut()
document.body.style.backgroundColor = '#fff'
+ },
+ async created() {
if (!this.isWeixin) {
setTimeout(() => {
// eslint-disable-next-line no-undef
@@ -97,32 +98,52 @@ export default {
if (this.isWeixin) {
that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
}
+
if (this.detailJump != '1') {
// 投被保险人是否同人
that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
+ // 获取被保险人信息
+ // that.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
}
+ // if (this.detailJump != '1') {
+ // this.getOrderDetail()
+ // }
if (this.isWeixin) {
let imgBase64Data = sessionStorage.getItem('twoimgBase64Data')
let wxSigned = JSON.parse(sessionStorage.getItem('twowxSigned'))
+ // let wxSigned = false
let signInfo = JSON.parse(localStorage.getItem('signInfo'))
+ console.log('`````````````````````````````````')
+
+ console.log('imgBase64Data: twoimgBase64Data:' + imgBase64Data)
+ console.log('wxSigned: ' + wxSigned)
if (wxSigned) {
+ console.log('第二次进入电子保单')
+ console.log('````````````````````````````````')
this.getOrderDetail().then(() => {
this.Time = true
this.isOver = true
this.radio = '1'
this.base64 = imgBase64Data
this.isDisabledComplite = false
+ console.log('signInfo.status:' + signInfo.status)
if (signInfo.status == '0') {
+ // this.appntSign.documentStatus = '3'
+ console.log('``````````````````')
this.$set(this.appntSign, 'documentStatus', '3')
+ console.log('appntSign.documentStatus: ' + this.appntSign.documentStatus)
this.isSign = false
this.isDisabledComplite = false
+ // this.isDisable = false
} else {
this.$set(this.insuredSign, 'documentStatus', '3')
+ // this.insuredSign.documentStatus = '3'
this.isDisabledComplite = false
this.isSign = false
}
})
} else {
+ console.log('第一次进入电子保单')
this.timeOut()
this.getOrderDetail()
}
@@ -132,7 +153,6 @@ export default {
this.getOrderDetail()
}
}
- this.timeOut()
},
methods: {
appCallBack(data) {
diff --git a/src/views/ebiz/sale/InsuranceTip.vue b/src/views/ebiz/sale/InsuranceTip.vue
index d6ea72566..071949418 100644
--- a/src/views/ebiz/sale/InsuranceTip.vue
+++ b/src/views/ebiz/sale/InsuranceTip.vue
@@ -83,70 +83,89 @@ export default {
[Dialog.name]: Dialog,
[NoticeBar.name]: NoticeBar
},
- created() {
-
- },
- async mounted() {
+ mounted() {
let that = this
+ that.timeOut()
document.body.style.backgroundColor = '#fff'
- // 当前代理人渠道--个险渠道,中介渠道
+ },
+ async created() {
+ // 当前代理人渠道--个险渠道,中介渠道
let dataReturn = await riskRules.getAgentInfoFunc(this)
this.branchTypeVal = dataReturn.branchTypeVal
-
- if (!that.isWeixin) {
+
+ if (!this.isWeixin) {
setTimeout(() => {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('webview_left_button', {
- img: that.$assetsUrl + 'images/del-close-btn@3x.png',
+ img: this.$assetsUrl + 'images/del-close-btn@3x.png',
intercept: '1' //是否拦截原生返回事件 1是 其他否
})
}, 100)
- window.appCallBack = that.appCallBack
+ window.appCallBack = this.appCallBack
}
+ let that = this
that.detailJump = window.localStorage.getItem('detailJump')
that.signVal = window.localStorage.getItem('sign-val')
// 获取投保人信息
- that.saleInsuredInfo = JSON.parse(that.$CacheUtils.getLocItem('saleInsuredInfo'))
- if (that.isWeixin) {
- that.relationToAppnt = JSON.parse(that.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
+ that.saleInsuredInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo'))
+ if (this.isWeixin) {
+ that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
}
- if (that.detailJump != '1') {
+ if (this.detailJump != '1') {
// 投被保险人是否同人
- that.relationToAppnt = JSON.parse(that.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
+ that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
+ // 获取被保险人信息
+ // that.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
}
+ // if (this.detailJump != '1') {
+ // this.getOrderDetail()
+ // }
if (this.isWeixin) {
let imgBase64Data = sessionStorage.getItem('twoimgBase64Data')
let wxSigned = JSON.parse(sessionStorage.getItem('twowxSigned'))
+ // let wxSigned = false
let signInfo = JSON.parse(localStorage.getItem('signInfo'))
+ console.log('`````````````````````````````````')
+
+ console.log('imgBase64Data: twoimgBase64Data:' + imgBase64Data)
+ console.log('wxSigned: ' + wxSigned)
if (wxSigned) {
- that.getOrderDetail().then(() => {
- that.Time = true
- that.isOver = true
- that.radio = '1'
- that.base64 = imgBase64Data
- that.isDisabledComplite = false
+ console.log('第二次进入电子保单')
+ console.log('````````````````````````````````')
+ this.getOrderDetail().then(() => {
+ this.Time = true
+ this.isOver = true
+ this.radio = '1'
+ this.base64 = imgBase64Data
+ this.isDisabledComplite = false
+ console.log('signInfo.status:' + signInfo.status)
if (signInfo.status == '0') {
- that.$set(that.appntSign, 'documentStatus', '3')
- that.isSign = false
- that.isDisabledComplite = false
+ // this.appntSign.documentStatus = '3'
+ console.log('``````````````````')
+ this.$set(this.appntSign, 'documentStatus', '3')
+ console.log('appntSign.documentStatus: ' + this.appntSign.documentStatus)
+ this.isSign = false
+ this.isDisabledComplite = false
+ // this.isDisable = false
} else {
- that.$set(that.insuredSign, 'documentStatus', '3')
- that.isDisabledComplite = false
- that.isSign = false
+ this.$set(this.insuredSign, 'documentStatus', '3')
+ // this.insuredSign.documentStatus = '3'
+ this.isDisabledComplite = false
+ this.isSign = false
}
})
} else {
- that.timeOut()
- that.getOrderDetail()
+ console.log('第一次进入电子保单')
+ this.timeOut()
+ this.getOrderDetail()
}
} else {
- that.timeOut()
- if (that.detailJump != '1') {
- that.getOrderDetail()
+ this.timeOut()
+ if (this.detailJump != '1') {
+ this.getOrderDetail()
}
}
- that.timeOut()
},
methods: {
appCallBack(data) {
@@ -202,15 +221,8 @@ export default {
let data = {
orderNo: that.$route.query.orderNo
}
- this.$toast.loading({
- duration: 0, // 持续展示 toast
- forbidClick: true, // 禁用背景点击
- loadingType: 'spinner',
- message: '加载中……'
- })
return new Promise((resolve, reject) => {
getOrderDetail(data).then(res => {
- this.$toast.clear()
if (res.result == '0') {
if(res.orderDTO.universalRiskNotifyDTO && res.orderDTO.universalRiskNotifyDTO.isUniversalRiskNotifyShowPoint){
this.isUniversalRiskNotifyShowPoint = res.orderDTO.universalRiskNotifyDTO.isUniversalRiskNotifyShowPoint
diff --git a/src/views/ebiz/sale/PersonalInformation.vue b/src/views/ebiz/sale/PersonalInformation.vue
index 3f1d39562..2ce07f5a2 100644
--- a/src/views/ebiz/sale/PersonalInformation.vue
+++ b/src/views/ebiz/sale/PersonalInformation.vue
@@ -56,10 +56,9 @@ export default {
[NoticeBar.name]: NoticeBar
},
created() {
-
+ this.init()
},
- async mounted() {
- await this.init()
+ mounted() {
let readingType = localStorage.getItem('readingProtocolType')
if (readingType && readingType === '1') {
this.protocol = true
@@ -87,7 +86,7 @@ export default {
}
},
methods: {
- init(){
+ async init(){
this.getOrderDetail()
},
timeOut() {
@@ -111,18 +110,11 @@ export default {
// 获取PDF的路径
getOrderDetail() {
let that = this
- this.$toast.loading({
- duration: 0, // 持续展示 toast
- forbidClick: true, // 禁用背景点击
- loadingType: 'spinner',
- message: '加载中……'
- })
let data = {
orderNo: that.$route.query.orderNo
}
return new Promise((resolve, reject) => {
getOrderDetail(data).then(res => {
- this.$toast.clear()
if (res.result == '0') {
res.orderDTO.ebizSignDTOS.map(item => {
if (item.documentCode == '12') {
diff --git a/src/views/ebiz/sale/SignatureConfirmation.vue b/src/views/ebiz/sale/SignatureConfirmation.vue
index 6173d6146..c62ba1dbd 100644
--- a/src/views/ebiz/sale/SignatureConfirmation.vue
+++ b/src/views/ebiz/sale/SignatureConfirmation.vue
@@ -458,56 +458,55 @@ export default {
this.relationToAppnt = this.$route.query.relationToAppnt
this.isShow = false
await this.getOrderDetail()
- console.log('初始化this.appntSign ==', this.appntSign)
- if (
- (this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') ||
- (this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '2')
- ) {
- // this.$toast('签名成功,请联系业务员进行后续流程!')
- Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' })
- } else if (this.insuredSignStatus == '3' && sessionStorage.getItem('shareCode') == '1') {
- Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' })
- }
- if (this.changeCard && this.appntSign.documentStatus == '1') {
- Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' })
- }
- // localStorage['faceAuthWeXin-requestId'] localStorage['faceAuthWeXin-bizToken']--微信端人脸识别获取腾讯认证url接口获得,认证相关参数
- if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
- this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
- }
-
- if (sessionStorage.shareCode == '1') {
- console.log('进来被保险人')
- this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
- } else if(sessionStorage.shareCode == '3'){
- console.log('进来代理人')
- this.tipsName =this.recmd.name
- }else {
- console.log('进来投保人')
- this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name
- // console.log('localStorage.saleInsuredInfo', localStorage.saleInsuredInfo)
- // console.log('localStorage.saleInsuredInfo.name', localStorage.saleInsuredInfo.name)
- // console.log('this.tipName', this.tipsName)
- }
- weixinShare({
- title: '国富人寿计划书',
- imgUrl: 'http://47.96.143.111:8000/app/images/logo.png',
- desc: '国富为您量身定制的保险产品,请查收'
- })
- // let params = {
- // orderNo: ''
- // }
- this.faceAuthCount.appnt = this.$route.query.faceAuthCountAppnt == undefined ? 0 : Number(this.$route.query.faceAuthCountAppnt)
- this.faceAuthCount.insured = this.$route.query.faceAuthCountInsured == undefined ? 0 : Number(this.$route.query.faceAuthCountInsured)
- this.faceAuthCount.weixin = this.$route.query.faceAuthCountWeixin == undefined ? 0 : Number(this.$route.query.faceAuthCountWeixin)
- } else {
- // 获取详情消息
-
- this.getOrderDetail()
- this.getSignInvalid()
- this.isShow = true
+ if (
+ (this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') ||
+ (this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '2')
+ ) {
+ // this.$toast('签名成功,请联系业务员进行后续流程!')
+ Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' })
+ } else if (this.insuredSignStatus == '3' && sessionStorage.getItem('shareCode') == '1') {
+ Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' })
}
- },
+ if (this.changeCard && this.appntSign.documentStatus == '1') {
+ Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' })
+ }
+ // localStorage['faceAuthWeXin-requestId'] localStorage['faceAuthWeXin-bizToken']--微信端人脸识别获取腾讯认证url接口获得,认证相关参数
+ if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
+ this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
+ }
+
+ if (sessionStorage.shareCode == '1') {
+ console.log('进来被保险人')
+ this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
+ } else if(sessionStorage.shareCode == '3'){
+ console.log('进来代理人')
+ this.tipsName =this.recmd.name
+ }else {
+ console.log('进来投保人')
+ this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name
+ // console.log('localStorage.saleInsuredInfo', localStorage.saleInsuredInfo)
+ // console.log('localStorage.saleInsuredInfo.name', localStorage.saleInsuredInfo.name)
+ // console.log('this.tipName', this.tipsName)
+ }
+ weixinShare({
+ title: '国富人寿计划书',
+ imgUrl: 'http://47.96.143.111:8000/app/images/logo.png',
+ desc: '国富为您量身定制的保险产品,请查收'
+ })
+ // let params = {
+ // orderNo: ''
+ // }
+ this.faceAuthCount.appnt = this.$route.query.faceAuthCountAppnt == undefined ? 0 : Number(this.$route.query.faceAuthCountAppnt)
+ this.faceAuthCount.insured = this.$route.query.faceAuthCountInsured == undefined ? 0 : Number(this.$route.query.faceAuthCountInsured)
+ this.faceAuthCount.weixin = this.$route.query.faceAuthCountWeixin == undefined ? 0 : Number(this.$route.query.faceAuthCountWeixin)
+ } else {
+ // 获取详情消息
+
+ this.getOrderDetail()
+ this.getSignInvalid()
+ this.isShow = true
+ }
+ },
// 获取消息和阅读状态
realPeopelCheck() {
this.$toast.loading({
@@ -657,6 +656,27 @@ 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
@@ -667,10 +687,9 @@ export default {
//idtype不为身份证跳过人脸识别
if (JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idType != '1') {
that.goUrl()
- }
- else {
+ } else {
// 白名单校验
- let res = await getWhitelist({
+ const res = await getWhitelist({
idNo: this.saleInsuredInfo.idNo,
name: this.saleInsuredInfo.name,
whiteType: 'sale_face_show'
@@ -688,16 +707,9 @@ export default {
//RID 状态--有效
if (this.realPeopleRidInfo.appntRidFlag && this.realPeopleRidInfo.appntRidFlag == '0') {
// 手机号鉴权 --通过
- let insuredData = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
- let data = {
- name: insuredData.name,
- idType: insuredData.idType,
- idNo: insuredData.idNo,
- mobile: insuredData.mobile
- }
- let res1 = await checkPhone(data)
- if (res1 && res1.result == '0') {
- that.insuredUrl()
+ let res = await this.realPeopleCheckMobile('appnt')
+ if (res && res.result == '0') {
+ that.goUrl()
return
}
}
@@ -727,7 +739,7 @@ export default {
that.insuredUrl()
} else {
// 白名单校验
- let res = await getWhitelist({
+ const res = await getWhitelist({
idNo: this.saleInsuredPersonInfo.idNo,
name: this.saleInsuredPersonInfo.name,
whiteType: 'sale_face_show'
@@ -779,7 +791,7 @@ export default {
}
}
// 白名单校验
- let res = await getWhitelist({
+ const res = await getWhitelist({
idNo: this.saleInsuredInfo.idNo,
name: this.saleInsuredInfo.name,
whiteType: 'sale_face_show'
@@ -1572,70 +1584,70 @@ export default {
})
})
},
- //自定义key值排序用
- addKey(item) {
- //ducumentCode 1投保须知 2投保单 3产品说明书 4提示书 6免除保险人责任条款说明书 7保险销售行为双录说明
- // 8指定保单生效日 9短期险投保须知 10国富人寿自保件承诺书 11柳州保险行业寿险投保风险提示书 12个人信息使用授权
- // documentStatus: 文档状态 0 未读 1 已读 2 未签名 3 已签名
- // documentType: 文档类型 0 阅读文档 1 签名文档
- // signType: 签名类型 0 投保人 1 被保人 2 本人
- if (item.documentCode == '1') {
- item.key = 2
- // item.key = 4
- item.routePath = 'insuranceInformation'
- } else if (item.documentCode == '2') {
- // item.key = 9
- item.key = 11
- item.routePath = 'SignatureOfElectronic'
- } else if (item.documentCode == '3') {
- // item.key = 4
- item.key = 6
- item.routePath = 'productTip'
- } else if (item.documentCode == '4') {
- // item.key = 5
- item.key = 7
- item.routePath = 'InsuranceTip'
- } else if (item.documentCode == '6') {
- // item.key = 7
- item.key = 9
- item.routePath = 'avoidDutyTip'
- } else if (item.documentCode == '7') {
- // item.key = 8
- item.key = 10
- item.routePath = 'doubleRecordTip'
- } else if (item.documentCode == '8') {
- item.key = 1
- item.routePath = 'apointValidDoc'
- } else if (item.documentCode == '9') {
- // item.key = 3
- item.key = 5
- item.routePath = 'shortPeriodProduct'
- }else if (item.documentCode == '10') {
- item.key = 1
- item.routePath = 'commitmentSelfProtect'
- } else if (item.documentCode == '11') {
- // item.key = 6
- item.key = 8
- item.routePath = 'InsuranceRiskReminder'
- } else if (item.documentCode == '12') {
- // item.key = 10
- item.key = 12
- item.routePath = 'PersonalInformation'
- } else if (item.documentCode == '13') {
- // item.key = 2
- item.key = 4
- item.routePath = 'insuranceClauses'
- }else if (item.documentCode == '14') {//风险评估pdf
- item.key = 3
- item.routePath = 'AnswerTip'
- } else if (item.documentCode == '15') {
- item.key = 7.1
- item.routePath = 'universalRiskNotifyingMessageTip'
- }
- },
- getSignInvalid() {
- this.$toast.loading({
- duration: 0, // 持续展示 toast
+ //自定义key值排序用
+ addKey(item) {
+ //ducumentCode 1投保须知 2投保单 3产品说明书 4提示书 6免除保险人责任条款说明书 7保险销售行为双录说明
+ // 8指定保单生效日 9短期险投保须知 10国富人寿自保件承诺书 11柳州保险行业寿险投保风险提示书 12个人信息使用授权
+ // documentStatus: 文档状态 0 未读 1 已读 2 未签名 3 已签名
+ // documentType: 文档类型 0 阅读文档 1 签名文档
+ // signType: 签名类型 0 投保人 1 被保人 2 本人
+ if (item.documentCode == '1') {
+ item.key = 2
+ // item.key = 4
+ item.routePath = 'insuranceInformation'
+ } else if (item.documentCode == '2') {
+ // item.key = 9
+ item.key = 11
+ item.routePath = 'SignatureOfElectronic'
+ } else if (item.documentCode == '3') {
+ // item.key = 4
+ item.key = 6
+ item.routePath = 'productTip'
+ } else if (item.documentCode == '4') {
+ // item.key = 5
+ item.key = 7
+ item.routePath = 'InsuranceTip'
+ } else if (item.documentCode == '6') {
+ // item.key = 7
+ item.key = 9
+ item.routePath = 'avoidDutyTip'
+ } else if (item.documentCode == '7') {
+ // item.key = 8
+ item.key = 10
+ item.routePath = 'doubleRecordTip'
+ } else if (item.documentCode == '8') {
+ item.key = 1
+ item.routePath = 'apointValidDoc'
+ } else if (item.documentCode == '9') {
+ // item.key = 3
+ item.key = 5
+ item.routePath = 'shortPeriodProduct'
+ }else if (item.documentCode == '10') {
+ item.key = 1
+ item.routePath = 'commitmentSelfProtect'
+ } else if (item.documentCode == '11') {
+ // item.key = 6
+ item.key = 8
+ item.routePath = 'InsuranceRiskReminder'
+ } else if (item.documentCode == '12') {
+ // item.key = 10
+ item.key = 12
+ item.routePath = 'PersonalInformation'
+ } else if (item.documentCode == '13') {
+ // item.key = 2
+ item.key = 4
+ item.routePath = 'insuranceClauses'
+ }else if (item.documentCode == '14') {//风险评估pdf
+ item.key = 3
+ item.routePath = 'AnswerTip'
+ } else if (item.documentCode == '15') {
+ item.key = 7.1
+ item.routePath = 'universalRiskNotifyingMessageTip'
+ }
+ },
+ getSignInvalid() {
+ this.$toast.loading({
+ duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
@@ -1746,18 +1758,9 @@ export default {
})
},
getRecognitionResult(requestId, bizToken) {
- this.$toast.loading({
- // 持续展示 toast
- duration: 0,
- // 禁用背景点击s
- forbidClick: true,
- loadingType: 'spinner',
- message: '加载中……'
- })
return new Promise(() => {
getRecognitionResult({ requestId, bizToken }).then(
(res) => {
- this.$toast.clear()
if (res.result == '0') {
this.recognizeResult = res.result
} else {
diff --git a/src/views/ebiz/sale/SignatureOfElectronic.vue b/src/views/ebiz/sale/SignatureOfElectronic.vue
index 6a595f3dc..f60c35682 100644
--- a/src/views/ebiz/sale/SignatureOfElectronic.vue
+++ b/src/views/ebiz/sale/SignatureOfElectronic.vue
@@ -881,8 +881,147 @@ export default {
}
}
},
- created() {
+ async created() {
+ let data = {
+ orderNo: this.$route.query.orderNo
+ }
+ getOrderDetail(data).then(res => {
+ if (res.result == '0') {
+ let array = []
+ res.orderDTO.ebizSignDTOS.map(item => {
+ array.push(item.documentCode)
+ })
+ this.isPersonalInformation = array.findIndex(item => item === '12')
+ }
+ })
+ if (!this.isWeixin) {
+ setTimeout(() => {
+ // eslint-disable-next-line no-undef
+ EWebBridge.webCallAppInJs('webview_left_button', {
+ img: this.$assetsUrl + 'images/del-close-btn@3x.png',
+ intercept: '1' //是否拦截原生返回事件 1是 其他否
+ })
+ }, 100)
+ window.appCallBack = this.appCallBack
+ }
+ let that = this
+ // 获取当前时间的时间戳
+ // var day2 = new Date()
+ // var day = day2.setTime(day2.getTime())
+ // console.log(day)
+ // console.log(new Date('2020-01-01 23:59:59').getTime())
+ // if (day > new Date('2020-01-01 23:59:59').getTime()) {
+ // this.dayShow = true
+ // }
+ // 获取产品编码
+ // this.chooseProductCodes = JSON.parse(localStorage.chooseProductCodes)
+ that.detailJump = window.localStorage.getItem('detailJump')
+ if (this.detailJump == '1') {
+ this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${localStorage.getItem('insurance-policyUrl')}`)
+ }
+ that.signVal = window.localStorage.getItem('sign-val')
+ // 判断是不是万能险
+ let comment = window.localStorage.getItem('productCode')
+
+ // if (comment == 'GFRS_M0003') {
+ if (comment == 'GFRS_M0003' || comment == 'GFRS_M0015' || comment == 'GFRS_M0017') {
+ this.isComment = true
+ }
+
+ // 获取投保人信息
+ that.saleInsuredInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo'))
+ // 在微信
+ if (this.isWeixin) {
+ // 在微信且不是回执签收
+ if (this.detailJump != '1') {
+ that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
+ let imgBase64Data = sessionStorage.getItem('imgBase64Data')
+ let wxSigned = sessionStorage.getItem('wxSigned')
+ let signInfo = JSON.parse(localStorage.getItem('signInfo'))
+ console.log('`````````````````````````````````')
+ console.log('imgBase64Data:twoimgBase64Data ' + imgBase64Data)
+ console.log('wxSigned: ' + wxSigned)
+ if (wxSigned) {
+ console.log('第二次进入电子保单!')
+ console.log('that222222222222', that)
+ this.getOrderDetail().then(() => {
+ this.Time = true
+ this.isOver = true
+ this.radio = '1'
+ this.base64 = imgBase64Data
+ this.isDisabledComplite = false
+ console.log('signInfo.status:' + signInfo.status)
+ if (signInfo.status == '0') {
+ // this.appntSign.documentStatus = '3'
+ console.log('``````````````````')
+ this.$set(this.appntSign, 'documentStatus', '3')
+ console.log('appntSign.documentStatus: ' + this.appntSign.documentStatus)
+ this.isSign = false
+ this.isDisabledComplite = false
+ // this.isDisable = false
+ } else {
+ this.$set(this.insuredSign, 'documentStatus', '3')
+ // this.insuredSign.documentStatus = '3'
+ this.isDisabledComplite = false
+ this.isSign = false
+ }
+ })
+ } else {
+ console.log('````````````````````````')
+ console.log('第一次进入电子保单')
+ this.timeOut()
+ this.getOrderDetail()
+ }
+ } else {
+ // 在微信而且是回执签收
+ document.title = '保险合同签收回执电子确认书签名'
+ let imgBase64Data = sessionStorage.getItem('imgBase64Data')
+ let wxSigned = sessionStorage.getItem('wxSigned')
+ let signInfo = JSON.parse(localStorage.getItem('signInfo'))
+ console.log('`````````````````````````````````')
+ console.log('imgBase64Data:twoimgBase64Data ' + imgBase64Data)
+ console.log('wxSigned: ' + wxSigned)
+ if (wxSigned) {
+ console.log('第二次进入电子保单!')
+ console.log('that222222222222', that)
+ this.Time = true
+ this.isOver = true
+ this.radioSure = '1'
+ this.base64 = imgBase64Data
+ this.isDisabledComplite = false
+ console.log('signInfo.status:' + signInfo.status)
+ if (signInfo.status == '0') {
+ // this.appntSign.documentStatus = '3'
+ console.log('``````````````````')
+ this.$set(this.appntSign, 'documentStatus', '3')
+ console.log('appntSign.documentStatus: ' + this.appntSign.documentStatus)
+ this.isSign = false
+ this.isDisabledComplite = false
+ this.isSubmit = false
+ } else {
+ this.$set(this.insuredSign, 'documentStatus', '3')
+ // this.insuredSign.documentStatus = '3'
+ this.isDisabledComplite = false
+ this.isSign = false
+ }
+ }
+ }
+ } else {
+ // 不在微信且不是回执签收
+
+ if (this.detailJump != '1') {
+ // 投被保险人是否同人
+ that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
+ // 获取被保险人信息
+ that.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
+ this.timeOut()
+ this.getOrderDetail()
+ } else {
+ // 不在微信但是在回执签收
+ document.title = '保险合同签收回执电子确认书签名'
+ }
+ }
},
computed: {
listenChange() {
@@ -941,109 +1080,19 @@ export default {
}
}
},
- async mounted() {
+ mounted() {
document.body.style.backgroundColor = '#fff'
- let data = {
- orderNo: this.$route.query.orderNo
- }
- getOrderDetail(data).then(res => {
- if (res.result == '0') {
- let array = []
- res.orderDTO.ebizSignDTOS.map(item => {
- array.push(item.documentCode)
- })
- this.isPersonalInformation = array.findIndex(item => item === '12')
- }
- })
- if (!this.isWeixin) {
- setTimeout(() => {
- EWebBridge.webCallAppInJs('webview_left_button', {
- img: this.$assetsUrl + 'images/del-close-btn@3x.png',
- intercept: '1' //是否拦截原生返回事件 1是 其他否
- })
- }, 100)
- window.appCallBack = this.appCallBack
- }
- let that = this
- that.detailJump = window.localStorage.getItem('detailJump')
- if (this.detailJump == '1') {
- this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${localStorage.getItem('insurance-policyUrl')}`)
- }
- that.signVal = window.localStorage.getItem('sign-val')
- // 判断是不是万能险
- let comment = window.localStorage.getItem('productCode')
- if (comment == 'GFRS_M0003' || comment == 'GFRS_M0015' || comment == 'GFRS_M0017') {
- this.isComment = true
- }
- // 获取投保人信息
- that.saleInsuredInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo'))
- // 在微信
- if (this.isWeixin) {
- // 在微信且不是回执签收
- if (this.detailJump != '1') {
- that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
- let imgBase64Data = sessionStorage.getItem('imgBase64Data')
- let wxSigned = sessionStorage.getItem('wxSigned')
- let signInfo = JSON.parse(localStorage.getItem('signInfo'))
- if (wxSigned) {
- this.getOrderDetail().then(() => {
- this.Time = true
- this.isOver = true
- this.radio = '1'
- this.base64 = imgBase64Data
- this.isDisabledComplite = false
- if (signInfo.status == '0') {
- this.$set(this.appntSign, 'documentStatus', '3')
- this.isSign = false
- this.isDisabledComplite = false
- } else {
- this.$set(this.insuredSign, 'documentStatus', '3')
- this.isDisabledComplite = false
- this.isSign = false
- }
- })
- } else {
- this.timeOut()
- this.getOrderDetail()
- }
- } else {
- // 在微信而且是回执签收
- document.title = '保险合同签收回执电子确认书签名'
- let imgBase64Data = sessionStorage.getItem('imgBase64Data')
- let wxSigned = sessionStorage.getItem('wxSigned')
- let signInfo = JSON.parse(localStorage.getItem('signInfo'))
- if (wxSigned) {
- this.Time = true
- this.isOver = true
- this.radioSure = '1'
- this.base64 = imgBase64Data
- this.isDisabledComplite = false
- if (signInfo.status == '0') {
- this.$set(this.appntSign, 'documentStatus', '3')
- this.isSign = false
- this.isDisabledComplite = false
- this.isSubmit = false
- } else {
- this.$set(this.insuredSign, 'documentStatus', '3')
- this.isDisabledComplite = false
- this.isSign = false
- }
- }
- }
- } else {
- // 不在微信且不是回执签收
- if (this.detailJump != '1') {
- // 投被保险人是否同人
- that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
- // 获取被保险人信息
- that.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
- this.timeOut()
- this.getOrderDetail()
- } else {
- // 不在微信但是在回执签收
- document.title = '保险合同签收回执电子确认书签名'
- }
- }
+
+ // console.log('---签名:投保单PDFurl:', this.pdfUrl, 'insurance-policyUrl', window.localStorage.getItem('insurance-policyUrl'))
+ // this.pdfUrl = "http://10.10.100.98:7012/updown/returnDirectStream?imgPath=Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoMMdje9Cf6YWX3FlAKn%2FwOBIMX%2BfXJaM6sn%0D%0AiUe41vurjQJ65teJQwdrc2wcOn%2FJtQSVGLphInLPv0HGtHpZ3OhD"
+ // this.src = 'http://139.199.50.151:7000/pdfjs/web/viewer.html?file='
+ // console.log('------pdf url:', this.src + this.pdfUrl)
+ //实例化
+ // this.pdfh5 = new Pdfh5('#pdf', {
+ // pdfurl: config.imgDomain + `/returnDirectStream?imgPath=${window.localStorage.getItem('insurance-policyUrl')}`
+ // // pdfurl: res.data.content.content
+ // })
+ // 获取签名信息
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''
diff --git a/src/views/ebiz/sale/SignatureOfNotice.vue b/src/views/ebiz/sale/SignatureOfNotice.vue
index f9400d2d7..3579107c4 100644
--- a/src/views/ebiz/sale/SignatureOfNotice.vue
+++ b/src/views/ebiz/sale/SignatureOfNotice.vue
@@ -556,7 +556,34 @@ export default {
}
},
created() {
+ if (!this.isWeixin) {
+ setTimeout(() => {
+ // eslint-disable-next-line no-undef
+ EWebBridge.webCallAppInJs('webview_left_button', {
+ img: this.$assetsUrl + 'images/del-close-btn@3x.png',
+ intercept: '1' //是否拦截原生返回事件 1是 其他否
+ })
+ }, 100)
+ window.appCallBack = this.appCallBack
+ }
+ let that = this
+
+ that.detailJump = window.localStorage.getItem('detailJump')
+ that.signVal = window.localStorage.getItem('sign-val')
+
+ // 获取投保人信息
+ that.saleInsuredInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo'))
+ if (this.isWeixin) {
+ that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
+ }
+
+ if (this.detailJump != '1') {
+ // 投被保险人是否同人
+ that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
+ // 获取被保险人信息
+ that.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
+ }
},
computed: {
listenChange() {
@@ -596,30 +623,6 @@ export default {
}
},
async mounted() {
- if (!this.isWeixin) {
- setTimeout(() => {
- // eslint-disable-next-line no-undef
- EWebBridge.webCallAppInJs('webview_left_button', {
- img: this.$assetsUrl + 'images/del-close-btn@3x.png',
- intercept: '1' //是否拦截原生返回事件 1是 其他否
- })
- }, 100)
- window.appCallBack = this.appCallBack
- }
- let that = this
- that.detailJump = window.localStorage.getItem('detailJump')
- that.signVal = window.localStorage.getItem('sign-val')
- // 获取投保人信息
- that.saleInsuredInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo'))
- if (this.isWeixin) {
- that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
- }
- if (this.detailJump != '1') {
- // 投被保险人是否同人
- that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
- // 获取被保险人信息
- that.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
- }
if (this.detailJump != '1') {
this.getOrderDetail()
}
@@ -627,22 +630,39 @@ export default {
let imgBase64Data = sessionStorage.getItem('threeimgBase64Data')
let wxSigned = sessionStorage.getItem('threewxSigned')
let signInfo = localStorage.getItem('signInfo')
+ console.log('`````````````````````````````````')
+ console.log('imgBase64Data:threeimgBase64Data ' + imgBase64Data)
+ console.log('wxSigned: ' + wxSigned)
if (wxSigned) {
+ console.log('第二次进入电子保单')
+ console.log('````````````````````````````````')
let rs = await this.getOrderDetail()
+ console.log(rs)
if (rs === 'success') {
this.Time = true
this.radio = '1'
this.base64 = imgBase64Data
this.isDisabledComplite = false
if (signInfo.status == '1') {
+ // this.appntSign.signStatus = '1'
+ console.log('``````````````````')
+ console.log('appntSign:' + this.appntSign)
this.$set(this.appntSign, 'signStatus', '1')
this.isSubmit = false
this.isSign = false
} else {
+ // this.insuredSign.signStatus = '1'
+ console.log('````````````````````')
+ console.log('insuredSign:' + this.insuredSign)
this.$set(this.insuredSign, 'signStatus', '1')
+ // this.isDisabledComplite = false
}
}
+ console.log('第二次进入保单,完成状态查看')
+ console.log(this.isDisabledComplite)
} else {
+ console.log('````````````````````````')
+ console.log('第一次进入电子保单')
this.timeOut()
this.getOrderDetail()
}
@@ -654,6 +674,12 @@ export default {
}
document.body.style.backgroundColor = '#fff'
this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${window.localStorage.getItem('insurance-policyUrl')}`)
+ //实例化
+ // this.pdfh5 = new Pdfh5('#pdf', {
+ // pdfurl: config.imgDomain + `/returnDirectStream?imgPath=${window.localStorage.getItem('insurance-policyUrl')}`
+ // // pdfurl: res.data.content.content
+ // })
+ // 获取签名信息
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''
diff --git a/src/views/ebiz/sale/insuranceClauses.vue b/src/views/ebiz/sale/insuranceClauses.vue
index a1b83144d..756a7f530 100644
--- a/src/views/ebiz/sale/insuranceClauses.vue
+++ b/src/views/ebiz/sale/insuranceClauses.vue
@@ -60,10 +60,33 @@ export default {
[NoticeBar.name]: NoticeBar
},
created() {
-
+ this.init()
},
mounted() {
- this.init()
+ // let readingType = localStorage.getItem('readingProtocolType')
+ // if (readingType && readingType === '1') {
+ // this.protocol = true
+ // }
+ // let that = this
+ // // {{switchFlag.Time?pageVariable.msg:pageVariable.number}}
+ // that.timeOut()
+ // that.activeType = window.localStorage.getItem('activeType')
+ // // Notify({
+ // // type: 'warning',
+ // // message: `提示:阅读时长需在${this.Time ? this.time : this.number}秒以上`,
+ // // duration: 10000,
+ // // background: '#999999',
+ // // className: 'notify'
+ // // })
+
+ // document.body.style.backgroundColor = '#fff'
+ // that.signVal = window.localStorage.getItem('sign-val')
+ // // if (JSON.parse(window.localStorage.getItem('sign-insured'))) {
+ // // that.insuredSign = JSON.parse(window.localStorage.getItem('sign-insured'))
+ // // }
+ // // if (JSON.parse(window.localStorage.getItem('sign-appnt'))) {
+ // // that.appntSign = JSON.parse(window.localStorage.getItem('sign-appnt'))
+ // // }
},
methods: {
async init(){
@@ -117,18 +140,11 @@ export default {
// 获取PDF的路径
getOrderDetail() {
let that = this
- this.$toast.loading({
- duration: 0, // 持续展示 toast
- forbidClick: true, // 禁用背景点击
- loadingType: 'spinner',
- message: '加载中……'
- })
let data = {
orderNo: that.$route.query.orderNo
}
return new Promise((resolve, reject) => {
getOrderDetail(data).then(res => {
- this.$toast.clear()
if (res.result == '0') {
res.orderDTO.insuredDTOs[0].riskDTOLst.forEach(item => {
if(item.isMainRisk == '0'){
diff --git a/src/views/ebiz/sale/productTip.vue b/src/views/ebiz/sale/productTip.vue
index a02948e8d..44f0c90d3 100644
--- a/src/views/ebiz/sale/productTip.vue
+++ b/src/views/ebiz/sale/productTip.vue
@@ -62,7 +62,6 @@
mounted() {
let that = this
document.body.style.backgroundColor = '#fff'
- that.getOrderDetail();
setTimeout(function() {
closeLoading()
that.timeOut()
@@ -79,6 +78,7 @@
}, 100)
window.appCallBack = this.appCallBack
}
+ this.getOrderDetail();
let that = this;
that.signVal = window.localStorage.getItem('sign-val')
},
@@ -131,19 +131,13 @@
},
// 获取签名状态
getOrderDetail() {
+ openLoading()
let that = this
let data = {
orderNo: that.$route.query.orderNo
}
- that.$toast.loading({
- duration: 0, // 持续展示 toast
- forbidClick: true, // 禁用背景点击
- loadingType: 'spinner',
- message: '加载中……'
- })
return new Promise((resolve) => {
getOrderDetail1(data).then(res => {
- that.$toast.clear()
if (res.result == '0') {
for(let i = 0;i {
// eslint-disable-next-line no-undef
@@ -113,29 +114,48 @@ export default {
if (this.detailJump != '1') {
// 投被保险人是否同人
that.relationToAppnt = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt
+ // 获取被保险人信息
+ // that.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
}
+ // if (this.detailJump != '1') {
+ // this.getOrderDetail()
+ // }
if (this.isWeixin) {
let imgBase64Data = sessionStorage.getItem('twoimgBase64Data')
let wxSigned = JSON.parse(sessionStorage.getItem('twowxSigned'))
+ // let wxSigned = false
let signInfo = JSON.parse(localStorage.getItem('signInfo'))
+ console.log('`````````````````````````````````')
+
+ console.log('imgBase64Data: twoimgBase64Data:' + imgBase64Data)
+ console.log('wxSigned: ' + wxSigned)
if (wxSigned) {
+ console.log('第二次进入电子保单')
+ console.log('````````````````````````````````')
this.getOrderDetail().then(() => {
this.Time = true
this.isOver = true
this.radio = '1'
this.base64 = imgBase64Data
this.isDisabledComplite = false
+ console.log('signInfo.status:' + signInfo.status)
if (signInfo.status == '0') {
+ // this.appntSign.documentStatus = '3'
+ console.log('``````````````````')
this.$set(this.appntSign, 'documentStatus', '3')
+ console.log('appntSign.documentStatus: ' + this.appntSign.documentStatus)
this.isSign = false
this.isDisabledComplite = false
+ // this.isDisable = false
} else {
this.$set(this.insuredSign, 'documentStatus', '3')
+ // this.insuredSign.documentStatus = '3'
this.isDisabledComplite = false
this.isSign = false
}
})
} else {
+ console.log('第一次进入电子保单')
this.timeOut()
this.getOrderDetail()
}
@@ -145,7 +165,6 @@ export default {
this.getOrderDetail()
}
}
- this.timeOut()
},
methods: {
appCallBack(data) {
@@ -201,15 +220,8 @@ export default {
let data = {
orderNo: that.$route.query.orderNo
}
- that.$toast.loading({
- duration: 0, // 持续展示 toast
- forbidClick: true, // 禁用背景点击
- loadingType: 'spinner',
- message: '加载中……'
- })
return new Promise((resolve, reject) => {
getOrderDetail(data).then(res => {
- that.$toast.clear()
if (res.result == '0') {
// 截取代理人机构号的前六位,用于去判断是否属于柳州代理人
if(res.orderDTO.recmdDTO.managerOrg && res.orderDTO.recmdDTO.managerOrg.length >= 6){