【关于附加综合意外伤害保险(乐享版)投保流程增加《个人信息使用授权》阅知勾选的申请】SignatureOfElectronic投保单分享到微信跳转页面

This commit is contained in:
li.yuetong
2022-09-02 11:09:07 +08:00
parent 45f089b886
commit ab2ef4179f
2 changed files with 88 additions and 153 deletions

View File

@@ -45,28 +45,10 @@ export default {
productCode: localStorage.productCode, //获取产品编号
protocol: false,
activeType: '',
isFrom:'',
pdfUrl: '',
src: location.origin + '/pdfjs/web/viewer.html?file=',
cvalidateStr:'', //活动生效日
cvalidateStrToFormat:'',//活动生效日--格式化年月日
cvalidateStrOneDayOff:''//活动生效日--格式化年月日并减少一天
src: location.origin + '/pdfjs/web/viewer.html?file='
}
},
// computed: {
// cvalidateStrToFormat() {
// console.log(this.cvalidateStr,'computed')
// return utils.formatDate(new Date('2021-07-01'), 'yyyy年MM月dd日')
// },
// cvalidateStrOneDayOff() {
// console.log(this.cvalidateStr,'computed1')
// let date = new Date(this.cvalidateStr)
// let dateTime
// dateTime=date.setDate(date.getDate()-1);
// dateTime=utils.formatDate(new Date(dateTime), 'yyyy年MM月dd日');
// return dateTime
// }
// },
components: {
[RadioGroup.name]: RadioGroup,
[Radio.name]: Radio,
@@ -105,18 +87,6 @@ export default {
},
methods: {
async init(){
this.isFrom = window.localStorage.isFrom
const orderNo = this.$CacheUtils.getLocItem('orderNo')
let detailPromise = this.isFrom === 'proposal' ? localStorage.proposalMedical : await getOrderDetail({ orderNo })
if(this.isFrom != 'proposal'){
//活动生效日期
this.cvalidateStr = detailPromise.orderDTO.orderInfoDTO.cvaliDate
}
this.cvalidateStrToFormat = utils.formatDate(new Date(this.cvalidateStr), 'yyyy年MM月dd日')
let date = new Date(this.cvalidateStr)
let dateTime
dateTime=date.setDate(date.getDate()-1);
this.cvalidateStrOneDayOff = utils.formatDate(new Date(dateTime), 'yyyy年MM月dd日');
this.getOrderDetail()
},
timeOut() {
@@ -287,6 +257,7 @@ export default {
})
}
} else {
//在app
let that = this
this.$toast.loading({
duration: 0, // 持续展示 toast

View File

@@ -436,70 +436,52 @@ export default {
if (res.result == '0') {
this.$toast.clear()
window.localStorage.setItem('jumpFromSign', '1')
let url
if(this.isPersonalInformation != '-1'){
url= '/sale/PersonalInformation'
}else{
url= '/sale/signatureConfirmation'
}
if (this.isWeixin) {
localStorage.removeItem('signInfo')
if(this.isPersonalInformation != '-1'){
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/PersonalInformation',
pullRefresh: '1',
backToFirst: '1'
},
routerInfo: {
path:
'/sale/PersonalInformation?orderNo=' +
localStorage.orderNo +
'&token=' +
localStorage.token +
'&saleInsuredInfo=' +
this.$CacheUtils.getLocItem('saleInsuredInfo') +
'&saleInsuredPersonInfo=' +
this.$CacheUtils.getLocItem('saleInsuredPersonInfo') +
'&relationToAppnt=' +
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt +
'&attachmentShow=' +
window.localStorage.getItem('attachmentShow') +
'&signInvalid=' +
sessionStorage.getItem('signInvalid') +
'&airSign=1'
}
})
}else{
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/signatureConfirmation'
},
routerInfo: {
path: '/sale/signatureConfirmation'
}
})
}
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#'+ url,
pullRefresh: '1',
backToFirst: '1'
},
routerInfo: {
path:
url +'?orderNo=' +
localStorage.orderNo +
'&token=' +
localStorage.token +
'&saleInsuredInfo=' +
this.$CacheUtils.getLocItem('saleInsuredInfo') +
'&saleInsuredPersonInfo=' +
this.$CacheUtils.getLocItem('saleInsuredPersonInfo') +
'&relationToAppnt=' +
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt +
'&attachmentShow=' +
window.localStorage.getItem('attachmentShow') +
'&signInvalid=' +
sessionStorage.getItem('signInvalid') +
'&airSign=1'
}
})
} else {
if(this.isPersonalInformation != '-1'){
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/PersonalInformation',
pullRefresh: '1',
backToFirst: '1'
},
routerInfo: {
path: '/sale/PersonalInformation'
}
})
}else{
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/signatureConfirmation'
},
routerInfo: {
path: '/sale/signatureConfirmation'
}
})
}
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#' + url,
pullRefresh: '1',
backToFirst: '1'
},
routerInfo: {
path: url
}
})
}
} else {
that.$toast(res.resultMessage)
@@ -531,70 +513,52 @@ export default {
if (res.result == '0') {
this.$toast.clear()
window.localStorage.setItem('jumpFromSign', '1')
let url
if(this.isPersonalInformation != '-1'){
url= '/sale/PersonalInformation'
}else{
url= '/sale/signatureConfirmation'
}
if (this.isWeixin) {
localStorage.removeItem('signInfo')
if(this.isPersonalInformation != '-1'){
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/PersonalInformation',
pullRefresh: '1',
backToFirst: '1'
},
routerInfo: {
path:
'/sale/PersonalInformation?orderNo=' +
localStorage.orderNo +
'&token=' +
localStorage.token +
'&saleInsuredInfo=' +
this.$CacheUtils.getLocItem('saleInsuredInfo') +
'&saleInsuredPersonInfo=' +
this.$CacheUtils.getLocItem('saleInsuredPersonInfo') +
'&relationToAppnt=' +
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt +
'&attachmentShow=' +
window.localStorage.getItem('attachmentShow') +
'&signInvalid=' +
sessionStorage.getItem('signInvalid') +
'&airSign=1'
}
})
}else{
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/signatureConfirmation'
},
routerInfo: {
path: '/sale/signatureConfirmation'
}
})
}
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#'+ url,
pullRefresh: '1',
backToFirst: '1'
},
routerInfo: {
path:
url +
localStorage.orderNo +
'&token=' +
localStorage.token +
'&saleInsuredInfo=' +
this.$CacheUtils.getLocItem('saleInsuredInfo') +
'&saleInsuredPersonInfo=' +
this.$CacheUtils.getLocItem('saleInsuredPersonInfo') +
'&relationToAppnt=' +
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt +
'&attachmentShow=' +
window.localStorage.getItem('attachmentShow') +
'&signInvalid=' +
sessionStorage.getItem('signInvalid') +
'&airSign=1'
}
})
} else {
if(this.isPersonalInformation != '-1'){
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/PersonalInformation',
pullRefresh: '1',
backToFirst: '1'
},
routerInfo: {
path: '/sale/PersonalInformation'
}
})
}else{
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/signatureConfirmation'
},
routerInfo: {
path: '/sale/signatureConfirmation'
}
})
}
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#'+ url,
pullRefresh: '1',
backToFirst: '1'
},
routerInfo: {
path: url
}
})
}
} else {
that.$toast(res.resultMessage)