【fix】 修复在部分情况下,银行卡鉴权的数据取错的问题

This commit is contained in:
tian.guangyuan
2020-05-28 17:09:18 +08:00
parent 903d7cddf9
commit d25a031927

View File

@@ -160,7 +160,8 @@ export default {
changeCard: localStorage.changeCard,
age: null,
productNo: null,
salePageFlag: '6'
salePageFlag: '6',
appntDTO: null
}
},
methods: {
@@ -286,13 +287,25 @@ export default {
this.$toast('本产品年龄大于65岁不能投保')
return
}
let data = {
"account": this.bankId,
"idNo": this.saleInsuredInfo.idNo,
"idType": this.saleInsuredInfo.idType,
"mobile": this.saleInsuredInfo.mobile,
"name": this.saleInsuredInfo.name
let data
if(this.saleInsuredInfo.idNo){
data = {
"account": this.bankId,
"idNo": this.saleInsuredInfo.idNo,
"idType": this.saleInsuredInfo.idType,
"mobile": this.saleInsuredInfo.mobile,
"name": this.saleInsuredInfo.name
}
}else {
data = {
"account": this.bankId,
"idNo": this.appntDTO.idNo,
"idType": this.appntDTO.idType,
"mobile": this.appntDTO.mobile,
"name": this.appntDTO.name
}
}
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
@@ -453,6 +466,9 @@ export default {
getOrderDetail({ orderNo: localStorage.orderNo }).then(res => {
console.log(res)
if (res.result == 0) {
this.appntDTO = res.orderDTO.appntDTO
//如果是从编辑进来的
if (this.$route.query.edit) {
//投被保险人关系