安全性问题处理:'proposalAppnt' 加密处理 --提交人:阳华祥

This commit is contained in:
yang.huaxiang
2020-10-27 11:43:23 +08:00
parent eeb86e9851
commit 4775b8a49b
2 changed files with 3 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ export default {
if (res.result == '0') {
this.chooseList = res.content[0].insuredDTOs
console.log(res.content[0].appntDTO, 'zzz')
localStorage.proposalAppnt = JSON.stringify(res.content[0].appntDTO)
this.$CacheUtils.setLocItem("proposalAppnt",JSON.stringify(res.content[0].appntDTO))
this.proposalInfo = res.content[0]
if (this.chooseList != null) {
this.chooseList.forEach(v => {

View File

@@ -153,7 +153,7 @@ export default {
if (this.insured.relationToAppnt == '1') {
//如果是投被同人 就将投保人信息存入被保险人信息
this.disabled = true
this.insured = Object.assign(this.insured, JSON.parse(localStorage.proposalAppnt))
this.insured = Object.assign(this.insured, JSON.parse(this.$CacheUtils.getLocItem('proposalAppnt')))
this.insured.age = getAge.getAge(this.insured.birthday, new Date())
this.insured.medical = localStorage.orderNoSocialSecurity === '1' ? '1' : '0'
}
@@ -237,7 +237,7 @@ export default {
//localStorage.setItem('proposalMedical', this.insured.medical == '0' ? '1' : '0')
localStorage.proposalMedical = this.insured.medical == '0' ? '1' : '0'
this.insured.age = String(this.insured.age)
let cacheSex = JSON.parse(localStorage.proposalAppnt).sex
let cacheSex = JSON.parse(this.$CacheUtils.getLocItem('proposalAppnt')).sex
let localSex = this.insured.sex
let relation = this.localInfo.relationToAppnt
let resultSex = checkSex(cacheSex, localSex, relation)