mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 05:16:44 +08:00
增加20S禁止重复提交的操作逻辑
This commit is contained in:
@@ -1040,129 +1040,145 @@ export default {
|
|||||||
confirmButtonColor: '#E9332E',
|
confirmButtonColor: '#E9332E',
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
let data = {
|
let nowTime = new Date().getTime()
|
||||||
orderDTO: {
|
let localTime = window.localStorage.getItem('serrorTime')
|
||||||
orderInfoDTO: {
|
if(nowTime - localTime < 20000){
|
||||||
orderNo: this.$route.query.orderNo,
|
this.$toast('您操作过于频繁,20s内请勿重复提交')
|
||||||
productCode: JSON.parse(localStorage.mainRiskCodes)[0],
|
}else{
|
||||||
},
|
let data = {
|
||||||
appntDTO: {
|
orderDTO: {
|
||||||
relationToInsured: that.saleInsuredPersonInfo.relationToAppnt,
|
orderInfoDTO: {
|
||||||
},
|
orderNo: this.$route.query.orderNo,
|
||||||
mediaDTOS: that.list,
|
productCode: JSON.parse(localStorage.mainRiskCodes)[0],
|
||||||
},
|
|
||||||
orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER',
|
|
||||||
}
|
|
||||||
saveInformation(data).then((res) => {
|
|
||||||
if (res.result == '0') {
|
|
||||||
this.$toast.clear()
|
|
||||||
if (!this.changeCard) {
|
|
||||||
window.localStorage.setItem('accountInfomation-bank', that.bank)
|
|
||||||
window.localStorage.setItem('accountInformationRadio', that.radio)
|
|
||||||
window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
|
|
||||||
window.localStorage.setItem('jumpFromSign', '')
|
|
||||||
}
|
|
||||||
window.localStorage.removeItem('imgfront')
|
|
||||||
window.localStorage.removeItem('imgBackPath')
|
|
||||||
window.localStorage.removeItem('imgfrontPath')
|
|
||||||
window.localStorage.removeItem('imgfrontInsured')
|
|
||||||
window.localStorage.removeItem('imgfrontInsuredPath')
|
|
||||||
window.localStorage.removeItem('imgBackInsuredPath')
|
|
||||||
window.localStorage.removeItem('bankCardUrl')
|
|
||||||
window.localStorage.removeItem('bankCardUrlPath')
|
|
||||||
window.localStorage.removeItem('bankCardUrlInsured')
|
|
||||||
window.localStorage.removeItem('bankCardUrlInsuredPath')
|
|
||||||
that.$jump({
|
|
||||||
flag: 'h5',
|
|
||||||
extra: {
|
|
||||||
url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
|
||||||
pullRefresh: '1',
|
|
||||||
backToFirst: '1',
|
|
||||||
},
|
},
|
||||||
routerInfo: {
|
appntDTO: {
|
||||||
path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
relationToInsured: that.saleInsuredPersonInfo.relationToAppnt,
|
||||||
},
|
},
|
||||||
})
|
mediaDTOS: that.list,
|
||||||
} else {
|
},
|
||||||
if(res.resultMessage.indexOf('Engine')!= -1){
|
orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER',
|
||||||
this.thisdialogshow = true
|
|
||||||
// let thisdialogcontent = '【Engine】投保人电子邮箱已被其他投保人使用哦~请确认并重新录入,如有疑问请拨打4006946688进行咨询【Engine】被保人与投保人关系需为:本人、配偶、子女、父母,人工审核中,请您耐心等待哦~'
|
|
||||||
this.thisdialogcontent = res.resultMessage.split('【Engine】')
|
|
||||||
this.thisdialogcontent.splice(0,1)
|
|
||||||
}else{
|
|
||||||
Dialog.confirm({
|
|
||||||
title: '提示',
|
|
||||||
message: res.resultMessage,
|
|
||||||
confirmButtonColor:'#FF0000',
|
|
||||||
showCancelButton:false
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
saveInformation(data).then((res) => {
|
||||||
|
if (res.result == '0') {
|
||||||
|
this.$toast.clear()
|
||||||
|
if (!this.changeCard) {
|
||||||
|
window.localStorage.setItem('accountInfomation-bank', that.bank)
|
||||||
|
window.localStorage.setItem('accountInformationRadio', that.radio)
|
||||||
|
window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
|
||||||
|
window.localStorage.setItem('jumpFromSign', '')
|
||||||
|
}
|
||||||
|
window.localStorage.removeItem('imgfront')
|
||||||
|
window.localStorage.removeItem('imgBackPath')
|
||||||
|
window.localStorage.removeItem('imgfrontPath')
|
||||||
|
window.localStorage.removeItem('imgfrontInsured')
|
||||||
|
window.localStorage.removeItem('imgfrontInsuredPath')
|
||||||
|
window.localStorage.removeItem('imgBackInsuredPath')
|
||||||
|
window.localStorage.removeItem('bankCardUrl')
|
||||||
|
window.localStorage.removeItem('bankCardUrlPath')
|
||||||
|
window.localStorage.removeItem('bankCardUrlInsured')
|
||||||
|
window.localStorage.removeItem('bankCardUrlInsuredPath')
|
||||||
|
that.$jump({
|
||||||
|
flag: 'h5',
|
||||||
|
extra: {
|
||||||
|
url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
||||||
|
pullRefresh: '1',
|
||||||
|
backToFirst: '1',
|
||||||
|
},
|
||||||
|
routerInfo: {
|
||||||
|
path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
let thisTime = new Date().getTime()
|
||||||
|
window.localStorage.setItem('serrorTime',thisTime)
|
||||||
|
if(res.resultMessage.indexOf('Engine')!= -1){
|
||||||
|
this.thisdialogshow = true
|
||||||
|
// let thisdialogcontent = '【Engine】投保人电子邮箱已被其他投保人使用哦~请确认并重新录入,如有疑问请拨打4006946688进行咨询【Engine】被保人与投保人关系需为:本人、配偶、子女、父母,人工审核中,请您耐心等待哦~'
|
||||||
|
this.thisdialogcontent = res.resultMessage.split('【Engine】')
|
||||||
|
this.thisdialogcontent.splice(0,1)
|
||||||
|
}else{
|
||||||
|
Dialog.confirm({
|
||||||
|
title: '提示',
|
||||||
|
message: res.resultMessage,
|
||||||
|
confirmButtonColor:'#FF0000',
|
||||||
|
showCancelButton:false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
return
|
return
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
let data = {
|
let nowTime = new Date().getTime()
|
||||||
orderDTO: {
|
let localTime = window.localStorage.getItem('serrorTime')
|
||||||
orderInfoDTO: {
|
if(nowTime - localTime < 20000){
|
||||||
orderNo: this.$route.query.orderNo,
|
this.$toast('您操作过于频繁,20s内请勿重复提交')
|
||||||
productCode: JSON.parse(localStorage.mainRiskCodes)[0],
|
}else {
|
||||||
},
|
let data = {
|
||||||
appntDTO: {
|
orderDTO: {
|
||||||
relationToInsured: that.saleInsuredPersonInfo.relationToAppnt,
|
orderInfoDTO: {
|
||||||
},
|
orderNo: this.$route.query.orderNo,
|
||||||
mediaDTOS: that.list,
|
productCode: JSON.parse(localStorage.mainRiskCodes)[0],
|
||||||
},
|
|
||||||
orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER',
|
|
||||||
}
|
|
||||||
saveInformation(data).then((res) => {
|
|
||||||
if (res.result == '0') {
|
|
||||||
this.$toast.clear()
|
|
||||||
if (!this.changeCard) {
|
|
||||||
window.localStorage.setItem('accountInfomation-bank', that.bank)
|
|
||||||
window.localStorage.setItem('accountInformationRadio', that.radio)
|
|
||||||
window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
|
|
||||||
window.localStorage.setItem('jumpFromSign', '')
|
|
||||||
}
|
|
||||||
window.localStorage.removeItem('imgfront')
|
|
||||||
window.localStorage.removeItem('imgBackPath')
|
|
||||||
window.localStorage.removeItem('imgfrontPath')
|
|
||||||
window.localStorage.removeItem('imgfrontInsured')
|
|
||||||
window.localStorage.removeItem('imgfrontInsuredPath')
|
|
||||||
window.localStorage.removeItem('imgBackInsuredPath')
|
|
||||||
window.localStorage.removeItem('bankCardUrl')
|
|
||||||
window.localStorage.removeItem('bankCardUrlPath')
|
|
||||||
window.localStorage.removeItem('bankCardUrlInsured')
|
|
||||||
window.localStorage.removeItem('bankCardUrlInsuredPath')
|
|
||||||
that.$jump({
|
|
||||||
flag: 'h5',
|
|
||||||
extra: {
|
|
||||||
url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
|
||||||
pullRefresh: '1',
|
|
||||||
backToFirst: '1',
|
|
||||||
},
|
},
|
||||||
routerInfo: {
|
appntDTO: {
|
||||||
path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
relationToInsured: that.saleInsuredPersonInfo.relationToAppnt,
|
||||||
},
|
},
|
||||||
})
|
mediaDTOS: that.list,
|
||||||
} else {
|
},
|
||||||
if(res.resultMessage.indexOf('Engine')!= -1){
|
orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER',
|
||||||
this.thisdialogshow = true
|
|
||||||
// let thisdialogcontent = '【Engine】投保人电子邮箱已被其他投保人使用哦~请确认并重新录入,如有疑问请拨打4006946688进行咨询【Engine】被保人与投保人关系需为:本人、配偶、子女、父母,人工审核中,请您耐心等待哦~'
|
|
||||||
this.thisdialogcontent = res.resultMessage.split('【Engine】')
|
|
||||||
this.thisdialogcontent.splice(0,1)
|
|
||||||
}else{
|
|
||||||
Dialog.confirm({
|
|
||||||
title: '提示',
|
|
||||||
message: res.resultMessage,
|
|
||||||
confirmButtonColor:'#FF0000',
|
|
||||||
showCancelButton:false
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
saveInformation(data).then((res) => {
|
||||||
|
if (res.result == '0') {
|
||||||
|
this.$toast.clear()
|
||||||
|
if (!this.changeCard) {
|
||||||
|
window.localStorage.setItem('accountInfomation-bank', that.bank)
|
||||||
|
window.localStorage.setItem('accountInformationRadio', that.radio)
|
||||||
|
window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
|
||||||
|
window.localStorage.setItem('jumpFromSign', '')
|
||||||
|
}
|
||||||
|
window.localStorage.removeItem('imgfront')
|
||||||
|
window.localStorage.removeItem('imgBackPath')
|
||||||
|
window.localStorage.removeItem('imgfrontPath')
|
||||||
|
window.localStorage.removeItem('imgfrontInsured')
|
||||||
|
window.localStorage.removeItem('imgfrontInsuredPath')
|
||||||
|
window.localStorage.removeItem('imgBackInsuredPath')
|
||||||
|
window.localStorage.removeItem('bankCardUrl')
|
||||||
|
window.localStorage.removeItem('bankCardUrlPath')
|
||||||
|
window.localStorage.removeItem('bankCardUrlInsured')
|
||||||
|
window.localStorage.removeItem('bankCardUrlInsuredPath')
|
||||||
|
that.$jump({
|
||||||
|
flag: 'h5',
|
||||||
|
extra: {
|
||||||
|
url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
||||||
|
pullRefresh: '1',
|
||||||
|
backToFirst: '1',
|
||||||
|
},
|
||||||
|
routerInfo: {
|
||||||
|
path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
let thisTime = new Date().getTime()
|
||||||
|
window.localStorage.setItem('serrorTime',thisTime)
|
||||||
|
if (res.resultMessage.indexOf('Engine') != -1) {
|
||||||
|
this.thisdialogshow = true
|
||||||
|
// let thisdialogcontent = '【Engine】投保人电子邮箱已被其他投保人使用哦~请确认并重新录入,如有疑问请拨打4006946688进行咨询【Engine】被保人与投保人关系需为:本人、配偶、子女、父母,人工审核中,请您耐心等待哦~'
|
||||||
|
this.thisdialogcontent = res.resultMessage.split('【Engine】')
|
||||||
|
this.thisdialogcontent.splice(0, 1)
|
||||||
|
} else {
|
||||||
|
Dialog.confirm({
|
||||||
|
title: '提示',
|
||||||
|
message: res.resultMessage,
|
||||||
|
confirmButtonColor: '#FF0000',
|
||||||
|
showCancelButton: false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user