[FIX]家庭地址问题修改

This commit is contained in:
zhouna
2019-12-23 15:32:08 +08:00
parent f4d2ae3a35
commit 85722daf7c
2 changed files with 5 additions and 4 deletions

View File

@@ -464,7 +464,7 @@ export default {
}, },
homeNameInfo() { homeNameInfo() {
let area = [{ code: this.userInfo.homeProvince }, { code: this.userInfo.homeCity }, { code: this.userInfo.homeArea }] let area = [{ code: this.userInfo.homeProvince }, { code: this.userInfo.homeCity }, { code: this.userInfo.homeArea }]
this.homeName = getAreaName(area, 'new') this.homeName = getAreaName(area)
}, },
//弹框选择 //弹框选择
toSelect(pickerType, valueKey) { toSelect(pickerType, valueKey) {

View File

@@ -628,7 +628,7 @@ export default {
this.userInfo.idType = '1' this.userInfo.idType = '1'
//国家/地区 //国家/地区
this.userInfo.nativeplace = '1' this.userInfo.nativeplace = '1'
if (this.$route.query.isShow) { // if (this.$route.query.isShow) {
//户籍 //户籍
if (insuredPersonInfo.householdProvince.length) { if (insuredPersonInfo.householdProvince.length) {
this.census = getAreaName([{ code: insuredPersonInfo.householdProvince }, { code: insuredPersonInfo.householdCity }]) this.census = getAreaName([{ code: insuredPersonInfo.householdProvince }, { code: insuredPersonInfo.householdCity }])
@@ -664,7 +664,7 @@ export default {
// { code: saleInsuredPersonInfo.homeCity }, // { code: saleInsuredPersonInfo.homeCity },
// { code: saleInsuredPersonInfo.homeArea } // { code: saleInsuredPersonInfo.homeArea }
// ]) //家庭地址 // ]) //家庭地址
} // }
} }
} else { } else {
return this.$toast(res.resultMessage) return this.$toast(res.resultMessage)
@@ -1310,6 +1310,7 @@ export default {
// let age = utilsAge.getAge(this.userInfo.birthday, new Date()) // let age = utilsAge.getAge(this.userInfo.birthday, new Date())
// this.userInfo.age = age // this.userInfo.age = age
// localStorage.saleInsuredPersonInfo = JSON.stringify(this.userInfo) // localStorage.saleInsuredPersonInfo = JSON.stringify(this.userInfo)
localStorage.relationToAppnt = this.userInfo.relationToAppnt
localStorage.isFrom = 'sale' localStorage.isFrom = 'sale'
//清理计时器 //清理计时器
window.clearInterval(this.timeId) window.clearInterval(this.timeId)
@@ -1338,7 +1339,7 @@ export default {
// this.areaShow = false // this.areaShow = false
// break // break
case '2': //家庭地址 case '2': //家庭地址
this.homeName = getAreaName(area, 'new') this.homeName = getAreaName(area)
;[this.userInfo.homeProvince, this.userInfo.homeCity, this.userInfo.homeArea] = [area[0].code, area[1].code, area[2].code] ;[this.userInfo.homeProvince, this.userInfo.homeCity, this.userInfo.homeArea] = [area[0].code, area[1].code, area[2].code]
this.homeShow = false this.homeShow = false
break break