mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 11:26:43 +08:00
被保险人年龄18岁判断修改数据来源字段
This commit is contained in:
@@ -297,9 +297,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import UploadImageFile from '@/components/ebiz/sale/UploadImageFile'
|
// import UploadImageFile from '@/components/ebiz/sale/UploadImageFile'
|
||||||
import { Field, Cell, CellGroup, Collapse, CollapseItem, Dialog, NoticeBar } from 'vant'
|
import { Field, Cell, CellGroup, Collapse, CollapseItem, Dialog, NoticeBar } from 'vant'
|
||||||
import {
|
import {
|
||||||
underWrite,
|
underWrite,
|
||||||
getOrderDetail,
|
getOrderDetail,
|
||||||
getSignInvalid,
|
getSignInvalid,
|
||||||
@@ -309,15 +309,15 @@ import {
|
|||||||
getRecognitionUrl,
|
getRecognitionUrl,
|
||||||
getRecognitionResult,
|
getRecognitionResult,
|
||||||
saveCustomerRid
|
saveCustomerRid
|
||||||
} from '@/api/ebiz/sale/sale'
|
} from '@/api/ebiz/sale/sale'
|
||||||
import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
||||||
import { checkPhone } from '@/api/ebiz/customer/customer'
|
import { checkPhone } from '@/api/ebiz/customer/customer'
|
||||||
import { weixinShare } from '@/assets/js/utils/wxShare.js'
|
import { weixinShare } from '@/assets/js/utils/wxShare.js'
|
||||||
import IndexBar from '@/components/ebiz/sale/IndexBar'
|
import IndexBar from '@/components/ebiz/sale/IndexBar'
|
||||||
import Formatter from '@/assets/js/utils/date-utils.js'
|
import Formatter from '@/assets/js/utils/date-utils.js'
|
||||||
import { getWhitelist } from '@/api/ebiz/whitelist'
|
import { getWhitelist } from '@/api/ebiz/whitelist'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||||
return {
|
return {
|
||||||
@@ -796,9 +796,10 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
window.localStorage.setItem('sign-val', val)
|
window.localStorage.setItem('sign-val', val)
|
||||||
window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign))
|
window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign))
|
||||||
|
let thismysaleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
||||||
|
let thismyage = thismysaleInsuredPersonInfo.age?thismysaleInsuredPersonInfo.age:thismysaleInsuredPersonInfo.insuredAge
|
||||||
if (
|
if (
|
||||||
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idType != '1' ||
|
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idType != '1' || thismyage < '18'
|
||||||
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).age < '18'
|
|
||||||
) {
|
) {
|
||||||
that.insuredUrl()
|
that.insuredUrl()
|
||||||
} else {
|
} else {
|
||||||
@@ -897,7 +898,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
window.localStorage.setItem('sign-val', val)
|
window.localStorage.setItem('sign-val', val)
|
||||||
window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign))
|
window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign))
|
||||||
if (this.saleInsuredPersonInfo.idType != '1' || this.saleInsuredPersonInfo.age < '18') {
|
let thismyage = this.saleInsuredPersonInfo.age?this.saleInsuredPersonInfo.age:this.saleInsuredPersonInfo.insuredAge
|
||||||
|
if (this.saleInsuredPersonInfo.idType != '1' || this.saleInsuredPersonInfo.thismyage < '18') {
|
||||||
that.insuredUrl()
|
that.insuredUrl()
|
||||||
} else {
|
} else {
|
||||||
//RID 状态--有效
|
//RID 状态--有效
|
||||||
@@ -1510,6 +1512,7 @@ export default {
|
|||||||
this.$utils.intLocalStorage(res)
|
this.$utils.intLocalStorage(res)
|
||||||
// 获取被保险人信息recmd
|
// 获取被保险人信息recmd
|
||||||
this.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
this.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
||||||
|
this.saleInsuredPersonInfo.age = this.saleInsuredPersonInfo.age?this.saleInsuredPersonInfo.age:this.saleInsuredPersonInfo.insuredAge
|
||||||
// 获取投保人信息
|
// 获取投保人信息
|
||||||
this.saleInsuredInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo'))
|
this.saleInsuredInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo'))
|
||||||
this.relationToAppnt = this.saleInsuredPersonInfo.relationToAppnt //将缓存中的与被保险人关系赋值给页面
|
this.relationToAppnt = this.saleInsuredPersonInfo.relationToAppnt //将缓存中的与被保险人关系赋值给页面
|
||||||
@@ -1927,21 +1930,21 @@ export default {
|
|||||||
document.body.style.backgroundColor = ''
|
document.body.style.backgroundColor = ''
|
||||||
next()
|
next()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import '@/assets/sass/variables.scss';
|
@import '@/assets/sass/variables.scss';
|
||||||
.text {
|
.text {
|
||||||
color: #4a90e2;
|
color: #4a90e2;
|
||||||
}
|
}
|
||||||
.start {
|
.start {
|
||||||
color: #4fc6b3;
|
color: #4fc6b3;
|
||||||
}
|
}
|
||||||
.tips {
|
.tips {
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
.tips {
|
.tips {
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user