mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 01:56:44 +08:00
Merge branch 'release/1226' of http://112.124.100.131/GFRS/ebiz-h5 into release/1226
This commit is contained in:
@@ -391,15 +391,19 @@ export default {
|
|||||||
let that = this
|
let that = this
|
||||||
|
|
||||||
// 获取投被保人是否同一个人
|
// 获取投被保人是否同一个人
|
||||||
|
if (localStorage.saleInsuredPersonInfo) {
|
||||||
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
|
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
|
||||||
// 获取被保人信息
|
// 获取被保人信息
|
||||||
that.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
|
that.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
|
||||||
|
}
|
||||||
|
if (localStorage.saleInsuredInfo) {
|
||||||
// 获取投保人信息
|
// 获取投保人信息
|
||||||
that.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo'))
|
that.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo'))
|
||||||
// 获取银行卡列表
|
|
||||||
that.getBankList()
|
|
||||||
// 默认是投保人名字
|
// 默认是投保人名字
|
||||||
that.name = this.saleInsuredInfo.name
|
that.name = this.saleInsuredInfo.name
|
||||||
|
}
|
||||||
|
// 获取银行卡列表
|
||||||
|
that.getBankList()
|
||||||
// 是否显示自动垫交
|
// 是否显示自动垫交
|
||||||
this.isAutoPay = localStorage.isAutoPay
|
this.isAutoPay = localStorage.isAutoPay
|
||||||
// 是否显示自动续保
|
// 是否显示自动续保
|
||||||
|
|||||||
@@ -361,7 +361,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
//如果是从编辑进来的
|
//如果是从编辑进来的
|
||||||
if (this.$route.query.edit) {
|
if (this.$route.query.edit || localStorage.changeCard) {
|
||||||
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) {
|
||||||
@@ -386,17 +386,22 @@ export default {
|
|||||||
}
|
}
|
||||||
let that = this
|
let that = this
|
||||||
// 投被保人是否同人
|
// 投被保人是否同人
|
||||||
|
if (localStorage.saleInsuredPersonInfo) {
|
||||||
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
|
that.relationToAppnt = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo')).relationToAppnt
|
||||||
|
// 获取被保人信息
|
||||||
|
that.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
|
||||||
|
}
|
||||||
// 获取订单号
|
// 获取订单号
|
||||||
that.orderNo = window.localStorage.getItem('orderNo')
|
that.orderNo = window.localStorage.getItem('orderNo')
|
||||||
// 获取是投保人还是被保人
|
// 获取是投保人还是被保人
|
||||||
that.isAppant = window.localStorage.getItem('accountInformationRadio')
|
that.isAppant = window.localStorage.getItem('accountInformationRadio')
|
||||||
// 数据字典获取
|
// 数据字典获取
|
||||||
that.idType = DataDictionary.idType
|
that.idType = DataDictionary.idType
|
||||||
// 获取被保人信息
|
|
||||||
that.saleInsuredPersonInfo = JSON.parse(window.localStorage.getItem('saleInsuredPersonInfo'))
|
|
||||||
// 获取投保人信息
|
// 获取投保人信息
|
||||||
|
if (localStorage.saleInsuredInfo) {
|
||||||
that.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo'))
|
that.saleInsuredInfo = JSON.parse(window.localStorage.getItem('saleInsuredInfo'))
|
||||||
|
}
|
||||||
// document.body.style.backgroundColor = '#fff'
|
// document.body.style.backgroundColor = '#fff'
|
||||||
// 身份证正面
|
// 身份证正面
|
||||||
if (window.localStorage.getItem('imgfrontPath') != null) {
|
if (window.localStorage.getItem('imgfrontPath') != null) {
|
||||||
@@ -886,16 +891,17 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击下一步
|
// 点击下一步
|
||||||
next() {
|
next() {
|
||||||
|
console.log(888)
|
||||||
let that = this
|
let that = this
|
||||||
this.$toast.loading({
|
// this.$toast.loading({
|
||||||
duration: 0, // 持续展示 toast
|
// duration: 0, // 持续展示 toast
|
||||||
|
|
||||||
forbidClick: true, // 禁用背景点击
|
// forbidClick: true, // 禁用背景点击
|
||||||
|
|
||||||
loadingType: 'spinner',
|
// loadingType: 'spinner',
|
||||||
|
|
||||||
message: '加载中……'
|
// message: '加载中……'
|
||||||
})
|
// })
|
||||||
//注释双录提示
|
//注释双录提示
|
||||||
// let request = {
|
// let request = {
|
||||||
// productList: JSON.parse(localStorage.chooseProductCodes),
|
// productList: JSON.parse(localStorage.chooseProductCodes),
|
||||||
@@ -921,7 +927,7 @@ export default {
|
|||||||
orderDTO: {
|
orderDTO: {
|
||||||
orderInfoDTO: {
|
orderInfoDTO: {
|
||||||
orderNo: window.localStorage.getItem('orderNo'),
|
orderNo: window.localStorage.getItem('orderNo'),
|
||||||
productCode: this.$route.query.edit ? localStorage.productCode : JSON.parse(localStorage.trialList)[0].productCode
|
productCode: this.$route.query.edit || this.changeCard ? localStorage.productCode : JSON.parse(localStorage.trialList)[0].productCode
|
||||||
},
|
},
|
||||||
appntDTO: {
|
appntDTO: {
|
||||||
relationToInsured: that.saleInsuredPersonInfo.relationToAppnt
|
relationToInsured: that.saleInsuredPersonInfo.relationToAppnt
|
||||||
@@ -934,10 +940,12 @@ export default {
|
|||||||
saveInformation(data).then(res => {
|
saveInformation(data).then(res => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.$toast.clear()
|
this.$toast.clear()
|
||||||
|
if (!this.changeCard) {
|
||||||
window.localStorage.setItem('accountInfomation-bank', that.bank)
|
window.localStorage.setItem('accountInfomation-bank', that.bank)
|
||||||
window.localStorage.setItem('accountInformationRadio', that.radio)
|
window.localStorage.setItem('accountInformationRadio', that.radio)
|
||||||
window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
|
window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
|
||||||
window.localStorage.setItem('jumpFromSign', '')
|
window.localStorage.setItem('jumpFromSign', '')
|
||||||
|
}
|
||||||
window.localStorage.removeItem('imgfront')
|
window.localStorage.removeItem('imgfront')
|
||||||
window.localStorage.removeItem('imgBackPath')
|
window.localStorage.removeItem('imgBackPath')
|
||||||
window.localStorage.removeItem('imgfrontPath')
|
window.localStorage.removeItem('imgfrontPath')
|
||||||
|
|||||||
@@ -206,6 +206,10 @@ export default {
|
|||||||
changeCard(order) {
|
changeCard(order) {
|
||||||
let url = ''
|
let url = ''
|
||||||
let orderStatus = order.orderInfoDTO.orderStatus
|
let orderStatus = order.orderInfoDTO.orderStatus
|
||||||
|
localStorage.orderNo = order.orderInfoDTO.orderNo
|
||||||
|
if (order.insuredDTOs[0].riskDTOLst[0]) {
|
||||||
|
localStorage.setItem('productCode', order.insuredDTOs[0].riskDTOLst[0].mainRiskCode)
|
||||||
|
}
|
||||||
localStorage.setItem('changeCard', true)
|
localStorage.setItem('changeCard', true)
|
||||||
switch (orderStatus) {
|
switch (orderStatus) {
|
||||||
case '55': //账户信息页
|
case '55': //账户信息页
|
||||||
|
|||||||
Reference in New Issue
Block a user