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